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.
Metadata
Release files for pygrocy-ext 1.0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pygrocy-ext-1.0.10.tar.gz | 20.0 kB | Without provenance | Details for pygrocy-ext-1.0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pygrocy_ext-1.0.10-py3-none-any.whl | Python 3 | none | any | Details for pygrocy_ext-1.0.10-py3-none-any.whl |
Total release size: 50.6 kB
Release files / pygrocy-ext-1.0.10.tar.gz
| Download URL | pygrocy-ext-1.0.10.tar.gz |
|---|---|
| Size | 20.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97157bc473f32f64359ef240a74ab27ca4fb38649c08f39843f44c150b4aed4c
|
|
BLAKE2b-256 checksum How to use checksums |
128b9d7fbd61116dddf480aa08e44be3ff3b9157280c454cd689fffe28cc1172
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pygrocy_ext-1.0.10-py3-none-any.whl
| Download URL | pygrocy_ext-1.0.10-py3-none-any.whl |
|---|---|
| Size | 30.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a8b536438ff438871f297046a32cab49be2f8426c253bfa4ae37f364e782a676
|
|
BLAKE2b-256 checksum How to use checksums |
abf6ced0c1579d229d5c39295e3774f6c137f644492998b09068dedf14dc2b59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for pygrocy-ext 1.0.10
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.