Skip to main content

Omnismith API

Project description

Omnismith Python SDK

npm version PyPI version Packagist version Go Report Card

The Omnismith Python SDK is generated from the central OpenAPI contract for the Omnismith platform, a flexible data management system built around templates, entities, and attribute-driven schemas. Use it to automate workflows against the Omnismith API and pair it with the web app at app.omnismith.io.

Quick Start

import os

from omnismith_sdk import ApiClient, Configuration
from omnismith_sdk.api.entity_api import EntityApi
from omnismith_sdk.api.templates_api import TemplatesApi
from omnismith_sdk.models.create_entity_request import CreateEntityRequest

configuration = Configuration(
    host="https://api.omnismith.io/v1",
    access_token=os.environ["OMNISMITH_ACCESS_TOKEN"],
)

with ApiClient(configuration) as api_client:
    templates_api = TemplatesApi(api_client)
    entity_api = EntityApi(api_client)

    template_id = "your-template-id"
    template = templates_api.get_template(template_id)

    entity = entity_api.create_entity(
        create_entity_request=CreateEntityRequest.from_dict(
            {
                "template_id": template.id,
                "attribute_values": [
                    {
                        "attribute_id": template.attribute_ids[0],
                        "value": "SKU-1001",
                    }
                ],
            }
        )
    )

    print(template.name, entity.id)

Set OMNISMITH_ACCESS_TOKEN to an access token created in Omnismith before running the snippet.

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

omnismith_sdk-1.0.10.tar.gz (95.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

omnismith_sdk-1.0.10-py3-none-any.whl (310.7 kB view details)

Uploaded Python 3

File details

Details for the file omnismith_sdk-1.0.10.tar.gz.

File metadata

  • Download URL: omnismith_sdk-1.0.10.tar.gz
  • Upload date:
  • Size: 95.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for omnismith_sdk-1.0.10.tar.gz
Algorithm Hash digest
SHA256 b553b87a1291b8e0195bd84695a6dd5efead596353e042bdc4872bea22339b6f
MD5 fbd1e5a57f5222d30a928bb243bb2e5e
BLAKE2b-256 eee65461dceb42a95e43750d11479b2d7fe956c9ef6a330a3e860e8df39cfd54

See more details on using hashes here.

File details

Details for the file omnismith_sdk-1.0.10-py3-none-any.whl.

File metadata

  • Download URL: omnismith_sdk-1.0.10-py3-none-any.whl
  • Upload date:
  • Size: 310.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for omnismith_sdk-1.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 e6d2769b16032333c72828521e7233c45083890ecbad4f646cd738378efaff6a
MD5 298494d170e92318b8b7f41d56d2fc24
BLAKE2b-256 967599c6aedae8ad53b4c94cbe2844cc29d294e5a2b59c5e245075812cb2b03c

See more details on using hashes here.

Supported by

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