No project description provided
Project description
grocy-py
Check out source code reference docs
Installation
pip install grocy-py
Usage
Import the package:
from grocy 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 grocy 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.13 to run the tests. Navigate to the root dir of grocy and execute tox to run the tests.
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
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 grocy_py-0.0.1.tar.gz.
File metadata
- Download URL: grocy_py-0.0.1.tar.gz
- Upload date:
- Size: 24.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5a3412e7d8a4615462ba3701ff8218059faa8c0af5af70d9d85ae0326e9ac4b
|
|
| MD5 |
d911d6a801f48694fc64773192e15083
|
|
| BLAKE2b-256 |
8a24362f6083a72b0d9b2a0317cbfae3d624247bc92233676d5d2da990fc1b05
|
File details
Details for the file grocy_py-0.0.1-py3-none-any.whl.
File metadata
- Download URL: grocy_py-0.0.1-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbaf28952bbdb5305de2c8c741f5f82179519a5398537a33abefb3e5a4c29bed
|
|
| MD5 |
63fb401512b13254eaf3d6f6450737eb
|
|
| BLAKE2b-256 |
9ced1d4ba3e032ae51723656e5dd2b65e5fcd8d50cf89b31fa428d4748799177
|