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

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.13
File Size Uploaded
omnismith_sdk-1.0.13.tar.gz 234.7 kB Details

Built distribution (wheel)

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

Total release size: 893.8 kB

Release files / omnismith_sdk-1.0.13.tar.gz

Download URL omnismith_sdk-1.0.13.tar.gz
Size 234.7 kB
Tags Source
SHA-256 checksum
How to use checksums
905dee9c880d3caae9a287d679efa9a9aa7f846cf072d0c29f53216f5bb4e8aa
BLAKE2b-256 checksum
How to use checksums
2546cbffa57d0ff4d426548da6b69059da97f528c6cdcd3f532bebb7afee036f
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.13-py3-none-any.whl

Download URL omnismith_sdk-1.0.13-py3-none-any.whl
Size 659.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0527a08246e7ff4eff3a0cd02af531a86b05c3102b0c68fd3db33ba5e1f7810a
BLAKE2b-256 checksum
How to use checksums
8c2cc12caef195f4beba739fe575ec0b7b086ba69563b89c7a0b9e2767b775fd
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

This release

1.0.13 This release

2 release files

1.0.12

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