Skip to main content

A light Python wrapper around the METRC Web API

Project description

Python METRC

A light Python wrapper around the METRC Web API

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.


$ pip install python_metrc

Running the tests

cd python_metrc


To generate and call the endpoint - - you can use any of the following combinations:

>>> from python_metrc import METRC
>>> metrc = METRC('', vendor_key={VENDOR_KEY}, user_key={USER_KEY}, license_number={LICENSE_NUMBER})
>>> metrc.transfers('delivery').packages('states').get()
<Response [200]>
<Response [200]>
<Response [200]>
>>> metrc.transfers('delivery', 'packages', 'states').get()
<Response [200]>

The METRC class instance provides the GET, POST and DELETE HTTP methods as binded on itself. The return type is the requests module’s Response object.


Please read the Contribution guidelines for details on our code of conduct, and the process for submitting pull requests to us.


See the list of contributors who participated in this project.


This project is licensed under the MIT License - see the LICENSE file for details


  • Hammock - Used to generate RESTful URLs


0.1.2 (2018-09-26)

  • Convert main class to inherit from Hammock instead.

0.1.1 (2018-09-26)

  • Clean up unnecessary artefacts after setup.

0.1.0 (2018-09-26)

  • First release on PyPI.

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

python_metrc-0.1.4.tar.gz (9.2 kB view hashes)

Uploaded source

Built Distribution

python_metrc-0.1.4-py2.py3-none-any.whl (4.4 kB view hashes)

Uploaded py2 py3

Supported by

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