You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Something else happened, which can be unrelated to ImageKit; the reason will be indicated in the message field
1231
1232
```
1232
1233
1234
+
## Development
1235
+
1236
+
To integrate ImageKit in the Python, the code samples covered here are hosted on Github - https://github.com/imagekit-samples/quickstart/tree/master/python.
1237
+
## How to run locally
1238
+
1239
+
You will find `sample.py` in root folder.
1240
+
1241
+
Open `python/sample.py` file and replace placeholder credentials with actual values. You can get the value of [URL-endpoint](https://imagekit.io/dashboard#url-endpoints) from your ImageKit dashboard. API keys can be obtained from the [developer](https://imagekit.io/dashboard/developer/api-keys) section in your ImageKit dashboard.
1242
+
1243
+
In `sample.py` file, set the following parameters for authentication:
1244
+
1245
+
```python
1246
+
from imagekitio import ImageKit
1247
+
imagekit = ImageKit(
1248
+
private_key='your private_key',
1249
+
public_key='your public_key',
1250
+
url_endpoint='your url_endpoint'
1251
+
)
1252
+
```
1253
+
1254
+
- You will find the dependencies in `python/requirements.txt` file.
1255
+
1256
+
## Install dependencies
1257
+
1258
+
To install dependencies that are in the `requirements.txt` file can fire this command to install them:
1259
+
1260
+
```shell
1261
+
pip install -r requirements.txt
1262
+
```
1263
+
1264
+
Now run `sample.py`. If you are using CLI Tool (Terminal/Command prompt), open the project in CLI and execute it.
1265
+
1266
+
```shell
1267
+
cd project-name
1268
+
pip install imagekitio # if not installed already
1269
+
python sample.py # to run sample.py file
1270
+
```
1233
1271
## Support
1234
1272
1235
1273
For any feedback or to report any issues or general implementation support, please reach out
0 commit comments