Skip to main content

TPL Python API

A Python wrapper for the 3PL Central REST API

Usage

set up a .env file in the root of the project:

BASE_URL="https://secure-wms.com"
AUTH_PATH="AuthServer/api/Token"
CLIENT_ID="your-id"
CLIENT_SECRET="your-secret"
FACILITY_ID=99
TPL_KEY="your-tpl-key"
GRANT_TYPE="client_credentials"
USER_LOGIN_ID="name-this-whatever-you-want"
ROUTING_INFO_ACCOUNT_NUMBER="ups-account-number"

Verify that you can access the api by running

python3 -m verify_credentials

Then, run the following get a list of methods you can try out, with a handy run-in-place CLI:

python3 -m examples
Which endpoint do you want to try?
1) cancel_test_order

2) create_test_item

3) create_test_order

4) get_carriers_list

5) get_order

Enter a number:

License

MIT

See LICENSE for more details

Metadata

Release files for tplcentral 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tplcentral 0.1.2
File Size Uploaded Provenance Actions
tplcentral-0.1.2.tar.gz 4.2 kB Without provenance Details for tplcentral-0.1.2.tar.gz

Release files / tplcentral-0.1.2.tar.gz

Download URL tplcentral-0.1.2.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
29a6cf249c251f7f89189111b09a7d3275d1fa5c21e8b4ba20112e401ed07208
BLAKE2b-256 checksum
How to use checksums
4407de33a3b8e16841df094357b51e6b380b865484b03b8fc6b3fdc075819589
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Security for tplcentral 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file No provenance

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