Skip to main content

render-lab-tasks-shopify

Unreleased Python port: 12 registered tasks from render-lab/render-tasks. Python 3.12+, Render SDK 1.0.1. Requires core 0.1.1 or later.

From the repository root:

uv sync --all-packages --locked

Import render_lab_tasks_shopify.tasks to register tasks. The package root is inert. Compose the exported app with Workflows.from_workflows; call tasks through ctx.run. Every operation also exports *_impl(ctx, input, *, deps=None) for injection. Client(http, env) accepts a caller-owned HTTPX client, and Deps(shopify=client) injects it. Default dependencies open and close the HTTP client per invocation; credentials are read lazily at use. No HTTP retries or background vendor polling occur; retry.py owns the durable retry policies.

Task surface

Registered task Python export
shopify.cancelOrder cancel_order
shopify.createProduct create_product
shopify.fulfillOrder fulfill_order
shopify.getCustomer get_customer
shopify.getOrder get_order
shopify.getProduct get_product
shopify.listOrders list_orders
shopify.listProducts list_products
shopify.refundOrder refund_order
shopify.searchCustomers search_customers
shopify.updateInventory update_inventory
shopify.updateProduct update_product

Typed JSON inputs and results are in types.py. Task names and JSON field names match the pinned source; Python function names use snake_case.

Environment

Variable Requirement
SHOPIFY_STORE Required store hostname, e.g. example.myshopify.com; no scheme.
SHOPIFY_ACCESS_TOKEN Required Admin API access token.

Behavior and limits

Preserves the source Admin REST API version 2024-10 and its request shapes. Shopify can fall forward from retired versions; current compatibility is not established. Legacy order fulfillment, minimal refund transaction fields, and inventory permissions require test-store verification. The source retries inventory adjustments and refunds despite non-idempotent effects; do not treat a retry as exactly-once behavior. These inherited risks are tracked in the testing backlog.

Verification

All registered tasks have hermetic contract fixtures executed independently against the pinned TS implementation. SDK-backed tasks also have explicit HTTP request fixtures. See tests/test_batch3_contracts.py and tests/test_batch3_edges.py. These are not live vendor results.

Vendor webhooks subpaths and other registration-free TS exports are outside this batch unless explicitly listed above. Full registered-task coverage does not imply all supporting exports are ported.

Pending scopes, test resources, replay, and hosted checks are in the live-testing backlog and verification tracker.

Webhook adapter

render_lab_tasks_shopify.webhooks.shopify_adapter(on_event, ...) returns a registration-free adapter for render_lab_triggers. The callback receives the verified event and returns {"task": "namespace.task", "args": [event]} or None. The signing credential SHOPIFY_WEBHOOK_SECRET is read inside verification unless provided explicitly. Importing this module does not register tasks. Signature checks use the raw body; live delivery remains in the testing backlog.

Installation

pip install render-lab-tasks-shopify==0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

render_lab_tasks_shopify-0.1.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

render_lab_tasks_shopify-0.1.0-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file render_lab_tasks_shopify-0.1.0.tar.gz.

File metadata

  • Download URL: render_lab_tasks_shopify-0.1.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for render_lab_tasks_shopify-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b8e076ab988eda80bdba89c2ac9e0181cf567770efa17b2eaac458cdaada2466
MD5 f1aba5a4f153f9adc6900f2c1ede1c6e
BLAKE2b-256 659156810db4b1088a2e5df2d1b0b836bc67f452efa1da685f6ce7e854e81e5c

See more details on using hashes here.

Provenance

The following attestation bundles were made for render_lab_tasks_shopify-0.1.0.tar.gz:

Publisher: publish.yml on render-lab/render-tasks-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file render_lab_tasks_shopify-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for render_lab_tasks_shopify-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c8ad8af0970a68fec78a90e2d3aa6ef4180a1e67f364340acb3696afb301e2e
MD5 b14a4803606a84b852f5454f5b1d826b
BLAKE2b-256 9c44ddb1cf61470b0d742e424f5c672db5dd27b679c687d2ee0889a4ca260e5f

See more details on using hashes here.

Provenance

The following attestation bundles were made for render_lab_tasks_shopify-0.1.0-py3-none-any.whl:

Publisher: publish.yml on render-lab/render-tasks-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 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