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

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.11
File Size Uploaded
omnismith_sdk-1.0.11.tar.gz 196.4 kB Details

Built distribution (wheel)

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

Total release size: 723.3 kB

Release files / omnismith_sdk-1.0.11.tar.gz

Download URL omnismith_sdk-1.0.11.tar.gz
Size 196.4 kB
Tags Source
SHA-256 checksum
How to use checksums
72e2efc4834bb24d859506f4acc26c4772d2e3440d84a3bb44e7bc37830ef235
BLAKE2b-256 checksum
How to use checksums
eae956a2a76eb03034cc055e5838aacdb6d863c7a8e9316092428421cccf2e6a
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.11-py3-none-any.whl

Download URL omnismith_sdk-1.0.11-py3-none-any.whl
Size 526.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
54c45696904c39abe3483eb210a9a92d0baedeb566df6f0613d797bd71297ed5
BLAKE2b-256 checksum
How to use checksums
8c37559b819221511f9c9858f0b7cab181d66aeef2efb26bbe1e0b0c85d44577
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

1.0.12

2 release files

This release

1.0.11 This release

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