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.16

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.16
File Size Uploaded Provenance Actions
omnismith_sdk-1.0.16.tar.gz 260.6 kB Without provenance Details for omnismith_sdk-1.0.16.tar.gz

Built distribution (wheel)

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

Total release size: 976.1 kB

Release files / omnismith_sdk-1.0.16.tar.gz

Download URL omnismith_sdk-1.0.16.tar.gz
Size 260.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ea0ae543c971fef570a15c4cfc330f547d6bc140187646fefdabd50b058962e0
BLAKE2b-256 checksum
How to use checksums
7bf5c5c85c1b80728fbbe364a16c4f288e5fc6760e697e447c91d2e44b50cfd1
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.16-py3-none-any.whl

Download URL omnismith_sdk-1.0.16-py3-none-any.whl
Size 715.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7782a8af566cbc495a4bbbe934262c2b6f3c5156e10713e5b9346bcf3ef0f8b0
BLAKE2b-256 checksum
How to use checksums
3e4fc65b172d18d30ab0f39ec5c9272fc1c52cb2bbb89a6e797412788011aba5
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.16

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