Omnismith Python SDK
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.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| omnismith_sdk-1.0.14.tar.gz | 228.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| omnismith_sdk-1.0.14-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 882.8 kB
Release files / omnismith_sdk-1.0.14.tar.gz
| Download URL | omnismith_sdk-1.0.14.tar.gz |
|---|---|
| Size | 228.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d21a298ef919bf9996e6f5195f12bbce5e0727a458c2fb916f3a67ffc54cd130
|
|
BLAKE2b-256 checksum How to use checksums |
24c8c462a1c395fd312b34785bc35dc212bf0360f6469e4805f811022ebbfc1c
|
| 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.14-py3-none-any.whl
| Download URL | omnismith_sdk-1.0.14-py3-none-any.whl |
|---|---|
| Size | 654.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b65a8312bc77166f7223969fedd6a55bdffd1cdeecb641c3aa1910d941dbbb0f
|
|
BLAKE2b-256 checksum How to use checksums |
54dd9525b1ed0ed1a382a58998dee9f23bfb34bf60a77ae5dbc6aade27b4a212
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|