Skip to main content

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.

Metadata

Release files for omnismith-sdk 1.0.18

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for omnismith-sdk 1.0.18
File Size Uploaded Provenance Actions
omnismith_sdk-1.0.18.tar.gz 261.3 kB Without provenance Details for omnismith_sdk-1.0.18.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for omnismith-sdk 1.0.18
File Interpreter ABI Platform Actions
omnismith_sdk-1.0.18-py3-none-any.whl Python 3 none any Details for omnismith_sdk-1.0.18-py3-none-any.whl

Total release size: 977.6 kB

Release files / omnismith_sdk-1.0.18.tar.gz

Download URL omnismith_sdk-1.0.18.tar.gz
Size 261.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4f76e74ac202302f1b3b57d32497ece7b727d442fa6b72d00b548a651c8efed0
BLAKE2b-256 checksum
How to use checksums
7949f74984bc791c87876f06ca502d06dbcb2211b68da52009e04d06c87fd95b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / omnismith_sdk-1.0.18-py3-none-any.whl

Download URL omnismith_sdk-1.0.18-py3-none-any.whl
Size 716.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
04ce91639b8aab561b79d992c8d4cdae98b69593080f5509eae6748747c7d40d
BLAKE2b-256 checksum
How to use checksums
4dc5afba017eedaac90bd06e8ca2e7eb870d85760c2a8f93a232100930a56bec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Security for omnismith-sdk 1.0.18

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page