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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
755e2f5c7c9e18cc6869b071736345652fb145d8b9d28b1ef89c01d5cfe4e4e0
|
|
| MD5 |
e929e5382c0ba8280687bd7ff215a0a0
|
|
| BLAKE2b-256 |
6c6bdb403ba53d52161d1ab8f681ea735be0db94d88d14e6690cf0b9f7d6f6b4
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a280cd84c1e0bce8d1560e505778e2625568acd7eacf15243e1d4c4c5598533d
|
|
| MD5 |
bb342173ca7cef31090f1e74b41479b4
|
|
| BLAKE2b-256 |
8b82c181ded6a615c5e9616d195f235a1e735558119405a56f90dd55280ecbbb
|