Skip to main content

SME Service SDK in Python

Project description

SME SDK for Python

Getting Started

Install

pip install -U cardo-sme-sdk

Usage

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cardo-sme-sdk-0.3.3.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

cardo_sme_sdk-0.3.3-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file cardo-sme-sdk-0.3.3.tar.gz.

File metadata

  • Download URL: cardo-sme-sdk-0.3.3.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for cardo-sme-sdk-0.3.3.tar.gz
Algorithm Hash digest
SHA256 778710b3178e0f7e002b2ec1434b54412d00289b6fad5c5df4699fca0bd48ec4
MD5 78eb7747665de71746042d54189523b8
BLAKE2b-256 a9d40b42ea43fc4b9d122dd1a2e1c5bdd12d93022b0b937a219a9b99bcecc05e

See more details on using hashes here.

File details

Details for the file cardo_sme_sdk-0.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for cardo_sme_sdk-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1506893f18c8b7fcb3c969ce4269db0f8ec8a808b908f49d2476ab57bde72cba
MD5 f837c149cde1e3374ddb4d59148c32e6
BLAKE2b-256 e01490e0c910053807be4ac14a1c51e49c8c22da0f4cccc6f574de6f09ef5e17

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page