No project description provided
Project description
pygrocy
Installation
pip install pygrocy
Usage
Import the package:
from pygrocy import Grocy
Obtain a grocy instance:
grocy = Grocy("https://example.com", "GROCY_API_KEY")
or
grocy = Grocy("https://example.com", "GROCY_API_KEY", port = 9192, verify_ssl = True)
Get current stock:
for entry in grocy.stock():
print("{} in stock for product id {}".format(entry.available_amount, entry.id))
Development testing
You need tox and Python 3.6/8/9 to run the tests. Navigate to the root dir of pygrocy
and execute tox
to run the tests.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pygrocy-0.29.0.tar.gz
(18.3 kB
view hashes)