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))
Support
If you need help using pygrocy check the discussions section. Feel free to create an issue for feature requests, bugs and errors in the library.
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-ext-1.0.10.tar.gz
(20.0 kB
view details)
Built Distribution
File details
Details for the file pygrocy-ext-1.0.10.tar.gz
.
File metadata
- Download URL: pygrocy-ext-1.0.10.tar.gz
- Upload date:
- Size: 20.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97157bc473f32f64359ef240a74ab27ca4fb38649c08f39843f44c150b4aed4c |
|
MD5 | 225b8830fb4fd313709654348161eaa1 |
|
BLAKE2b-256 | 128b9d7fbd61116dddf480aa08e44be3ff3b9157280c454cd689fffe28cc1172 |
File details
Details for the file pygrocy_ext-1.0.10-py3-none-any.whl
.
File metadata
- Download URL: pygrocy_ext-1.0.10-py3-none-any.whl
- Upload date:
- Size: 30.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8b536438ff438871f297046a32cab49be2f8426c253bfa4ae37f364e782a676 |
|
MD5 | ea708bac834462dd34f38fd9e96adcdf |
|
BLAKE2b-256 | abf6ced0c1579d229d5c39295e3774f6c137f644492998b09068dedf14dc2b59 |