Skip to main content

Python client library for the Noyes API

Project description

NysClient

A Python client library for the Noyes API.

Installation

pip install nys-client

Usage

from nys_client import NysClient, RequestType, TriggerStatus

# Initialize client
client = NysClient(api_key="your_api_key")

# Get requests with filtering
requests = client.requests.search(
    filters={"status": "ACCEPTED", "type": "FULFILLMENT"},
    sort_by="-created_at"
)

# Create a new request
new_request = client.requests.create_fulfillment(
    entities=[("SKU123", 1)],
    priority=10
)

# Get jobs with search
jobs = client.jobs.search(
    filters={"status__eq": "EXECUTING", "type__eq": "PICKING"}
)

# Trigger a job
client.jobs.trigger(
    job_id="job-uuid",
    trigger_status=TriggerStatus.SUCCEEDED_TRIGGER
)

Project details


Download files

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

Source Distribution

nys_client-0.1.1.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

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

nys_client-0.1.1-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file nys_client-0.1.1.tar.gz.

File metadata

  • Download URL: nys_client-0.1.1.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for nys_client-0.1.1.tar.gz
Algorithm Hash digest
SHA256 755e2f5c7c9e18cc6869b071736345652fb145d8b9d28b1ef89c01d5cfe4e4e0
MD5 e929e5382c0ba8280687bd7ff215a0a0
BLAKE2b-256 6c6bdb403ba53d52161d1ab8f681ea735be0db94d88d14e6690cf0b9f7d6f6b4

See more details on using hashes here.

File details

Details for the file nys_client-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: nys_client-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for nys_client-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a280cd84c1e0bce8d1560e505778e2625568acd7eacf15243e1d4c4c5598533d
MD5 bb342173ca7cef31090f1e74b41479b4
BLAKE2b-256 8b82c181ded6a615c5e9616d195f235a1e735558119405a56f90dd55280ecbbb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page