Skip to main content

High-level ThunkMetrc Python SDK

Project description

ThunkMetrc

High-level Python SDK for Metrc with convenience functions like active_packages_inventory_sync.

Installation

pip install thunkmetrc

Usage

from thunkmetrc import active_packages_inventory_sync
from thunkmetrc_wrapper import MetrcWrapper

wrapper = MetrcWrapper("https://api.metrc.com", "vendor_key", "user_key")

# Sync active packages inventory
packages = active_packages_inventory_sync(
    wrapper,
    "license_number",
    last_known_sync=None,
    buffer_minutes=5
)

License

MIT

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

thunkmetrc-0.2.2.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

thunkmetrc-0.2.2-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file thunkmetrc-0.2.2.tar.gz.

File metadata

  • Download URL: thunkmetrc-0.2.2.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for thunkmetrc-0.2.2.tar.gz
Algorithm Hash digest
SHA256 4683486d0371fb670d1cdc0d1d53602de59540e8bb3f893ee911c851039fd516
MD5 b40c6ca33cf088020b79187bfcaf3f71
BLAKE2b-256 811403ca222de3b020f2978c72522346b813b7f545b4ed0625befbb2f924e384

See more details on using hashes here.

File details

Details for the file thunkmetrc-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: thunkmetrc-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for thunkmetrc-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4d67a56c0b3ac6904395825671ebaae4aa42adf7b29c6049d69ae2467e9c043c
MD5 e70cfc7f50eb765ec85198d2db794e0f
BLAKE2b-256 5544fb216bf197c326980f06ae039f2f05c5eddb8f5e5c9bfe06f751631123ba

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