No project description provided
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
This project is de-facto unmaintained as haven't been using grocy for a while. Feel free to fork and create pygrocy2!
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.8/9/10 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pygrocy-2.1.0.tar.gz.
File metadata
- Download URL: pygrocy-2.1.0.tar.gz
- Upload date:
- Size: 22.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
365b31941f18d8485363f7fa75192cf210ae805c7dbdb28dba555d0d8c15f326
|
|
| MD5 |
6b1642e5a73ae1df0ad0cb2917bfd6de
|
|
| BLAKE2b-256 |
e0524135165cee7e25b4014fbe09f5126cf348d3be03caac08cdbb41fe68dec7
|
File details
Details for the file pygrocy-2.1.0-py3-none-any.whl.
File metadata
- Download URL: pygrocy-2.1.0-py3-none-any.whl
- Upload date:
- Size: 32.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5bfd8eb75a73064e2429bfe6dc7f7fe562ee29e83595ae633ff4b9e1cb0551f
|
|
| MD5 |
543c96ebefdb6f2bb9dad481060d0502
|
|
| BLAKE2b-256 |
30ff4f748d585f67817409f2a994307766dbcefbbbe0e772e0cfef16115610a1
|