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.

Release files for omnismith-sdk 1.0.12

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.12
File Size Uploaded
omnismith_sdk-1.0.12.tar.gz 166.9 kB Details

Built distribution (wheel)

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

Total release size: 661.5 kB

Release files / omnismith_sdk-1.0.12.tar.gz

Download URL omnismith_sdk-1.0.12.tar.gz
Size 166.9 kB
Tags Source
SHA-256 checksum
How to use checksums
86388e259d04c41eb9ca2022c0b821c4c6b7e68cfeea58c768f018d6626af528
BLAKE2b-256 checksum
How to use checksums
3a21888a83622c011babda4150bfa8652ce2f6c42206865ee6c73bb0782eacc9
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.12-py3-none-any.whl

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

Release history Release notifications | RSS feed

1.0.14

2 release files

1.0.13

2 release files

This release

1.0.12 This release

2 release files

1.0.11

2 release files

1.0.10

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

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