cardo-sme-sdk-0.3.3
توضیحات
SME Service SDK in Python
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cardo-sme-sdk-0.3.3 |
| نام | cardo-sme-sdk |
| نسخه کتابخانه | 0.3.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Klement Omeri |
| ایمیل نویسنده | hello@cardoai.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/cardo-sme-sdk/ |
| مجوز | MIT |
# SME SDK for Python
## Getting Started
### Install
```bash
pip install -U cardo-sme-sdk
```
### Usage
```python
import sme_sdk
# Create a new api config and s3 config for later use, these objects can be created only once
# in any module and can be reused in other modules.
api_config = sme_sdk.APIConfig(
host='http://localhost:8000',
api_key='<your-api-key>',
)
s3_config = sme_sdk.S3Config(
access_key_id='access_key_id',
secret_access_key='secret_access_key',
bucket_name='bucket_name',
region_name='region_name',
)
# When you want to use SME API, you need to create an APIClient object using the api_config created before.
data = {'key': 'value'}
client = sme_sdk.APIClient(api_config)
s3client = sme_sdk.S3BlobStorageClient(s3_config)
result = client.create_new_batch(data, s3client)
```
- To learn more about how to use the SDK [refer to our docs](https://docs.service.cardoai.com/sme_sdk/index.html)
نیازمندی
| مقدار | نام |
|---|---|
| >=1.20.27 | boto3 |
| >=2.27.1 | requests |
| >=7 | pytest |
| >=3 | pytest-cov |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl cardo-sme-sdk-0.3.3:
pip install cardo-sme-sdk-0.3.3.whl
نصب پکیج tar.gz cardo-sme-sdk-0.3.3:
pip install cardo-sme-sdk-0.3.3.tar.gz