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
ImageKit Python SDK allows you to use [Image Resizing](https://docs.imagekit.io/features/image-transformations), [Optimization](https://docs.imagekit.io/features/image-optimization), [File Uploading](https://docs.imagekit.io/api-reference/upload-file-api)and
12
-
other [ImageKit APIs](https://docs.imagekit.io/api-reference/api-introduction) from software written in the Python
13
-
language.
11
+
Python SDK for [ImageKit](https://imagekit.io/) implements the new APIs and interface for different file operations.
12
+
13
+
ImageKit is complete media storage, optimization, and transformation solution that comes with an [image and video CDN](https://imagekit.io/features/imagekit-infrastructure). It can be integrated with your existing infrastructure - storage like AWS S3, web servers, your CDN, and custom domain names, allowing you to deliver optimized images in minutes with minimal code changes.
14
14
15
15
Supported Python Versions: >=3.6
16
16
@@ -91,7 +91,8 @@ endpoint(url_endpoint) you want to use to access the image. You can refer to the
91
91
[here](https://docs.imagekit.io/integration/url-endpoints) to read more about URL endpoints
92
92
in ImageKit and the section about [image origins](https://docs.imagekit.io/integration/configure-origin) to understand
93
93
about paths with different kinds of origins.
94
-
The File can be an image, video, or any other static file supported by ImageKit.
94
+
95
+
The file can be an image, video, or any other static file supported by ImageKit.
**2. Sharpening and contrast transform and a progressive JPG image**
177
+
**2. Sharpening, contrast transform and progressive JPG image**
177
178
178
179
Add transformations like [Sharpening](https://docs.imagekit.io/features/image-transformations/image-enhancement-and-color-manipulation) to the URL with or without any other value. To use such transforms without specifying a value, set it as "-" in the transformation object. Otherwise, use the value that one wants to add to this transformation.
179
180
@@ -192,7 +193,7 @@ image_url = imagekit.url({
192
193
Sample Result URL -
193
194
194
195
```
195
-
# Note that because `src` parameter is in effect, the transformation string gets added as a query parameter `tr`
196
+
# Note that because the `src` parameter is in effect, the transformation string gets added as a query parameter `tr`
the [API documentation here](https://docs.imagekit.io/api-reference/media-api/restore-file-version).
699
-
The method accepts `file_id` and `version_id` of the File that has to be restored.
700
+
The method accepts the `file_id` and `version_id` of the file that has to be restored.
700
701
701
702
```python
702
703
result = imagekit.restore_file_version(file_id="file_id", version_id="version_id")
@@ -898,10 +899,10 @@ can be passed as it is with the correct values to get the results.
898
899
899
900
Check for the [allowed values in the schema](https://docs.imagekit.io/api-reference/custom-metadata-fields-api/create-custom-metadata-field#allowed-values-in-the-schema-object).
900
901
901
-
**example:**
902
+
**Example:**
902
903
903
904
```python
904
-
# Example for type number
905
+
# Example for the type number
905
906
906
907
from imagekitio.models.CreateCustomMetadataFieldsRequestOptions import CreateCustomMetadataFieldsRequestOptions
907
908
from imagekitio.models.CustomMetadataFieldsSchema import CustomMetadataFieldsSchema
To run `sample` code go to the code samples here are hosted on Github - https://github.com/imagekit-samples/quickstart/tree/master/python and run
1172
+
To run `sample` code go to the code samples here are hosted on GitHub - https://github.com/imagekit-samples/quickstart/tree/master/python and run.
1172
1173
1173
1174
```shell
1174
1175
python sample.py
@@ -1254,11 +1255,11 @@ $ pip install -e .
1254
1255
1255
1256
#### Get samples
1256
1257
1257
-
To integrate ImageKit Samples in the Python, the code samples covered here are hosted on Github - https://github.com/imagekit-samples/quickstart/tree/master/python.
1258
+
To integrate ImageKit Samples in the Python, the code samples covered here are hosted on GitHub - https://github.com/imagekit-samples/quickstart/tree/master/python.
1258
1259
1259
-
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.
1260
+
Open the `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.
1260
1261
1261
-
In `python/sample.py` file, set the following parameters for authentication:
1262
+
In the `python/sample.py` file, set the following parameters for authentication:
1262
1263
1263
1264
```python
1264
1265
from imagekitio import ImageKit
@@ -1269,7 +1270,7 @@ imagekit = ImageKit(
1269
1270
)
1270
1271
```
1271
1272
1272
-
To install dependencies that are in the `python/requirements.txt` file can fire this command to install them:
1273
+
To install dependencies that are in the `python/requirements.txt` file, can fire this command to install them:
0 commit comments