No project description provided
Project description
grocy-py
A Python client library for the Grocy ERP system API.
Check out the documentation.
Installation
pip install grocy-py
Usage
from grocy import Grocy
grocy = Grocy("https://example.com", "GROCY_API_KEY")
With custom port and SSL options:
grocy = Grocy("https://example.com", "GROCY_API_KEY", port=9192, verify_ssl=True)
Get current stock:
for product in grocy.stock.current():
print(f"{product.name}: {product.available_amount} in stock")
Features
All features are accessed through manager objects on the Grocy instance:
| Manager | Access | Description |
|---|---|---|
| Stock | grocy.stock |
Query, add, consume, open, transfer products |
| Shopping List | grocy.shopping_list |
View and manage shopping list items |
| Chores | grocy.chores |
List, execute, and track chores |
| Tasks | grocy.tasks |
Manage and complete tasks |
| Batteries | grocy.batteries |
Track battery charge cycles |
| Equipment | grocy.equipment |
Manage household equipment |
| Meal Plan | grocy.meal_plan |
View meal plans and sections |
| Recipes | grocy.recipes |
Get recipes, check fulfillment, consume |
| Users | grocy.users |
Manage users and settings |
| System | grocy.system |
Server info, time, config |
| Calendar | grocy.calendar |
iCalendar export and sharing |
| Files | grocy.files |
Upload, download, delete files |
| Generic | grocy.generic |
CRUD any Grocy entity type |
Development
# Install dependencies
uv sync --group dev
# Run tests
uv run pytest
# Lint and format
uv run ruff check .
uv run ruff format .
# Build docs
uv run mkdocs serve
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.
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.7.tar.gz.
File metadata
- Download URL: grocy_py-0.0.7.tar.gz
- Upload date:
- Size: 164.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","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 |
5ee6b7e4a852970626a14ef9769b2477b5e07cb622387a67a5890a9a77e731fd
|
|
| MD5 |
4edf841aa154f551768279b3ebaa61a9
|
|
| BLAKE2b-256 |
e6793d63179f1e87ddb2187dbcba742e1f3ffa9f8f0ebbafe755f46784890501
|
File details
Details for the file grocy_py-0.0.7-py3-none-any.whl.
File metadata
- Download URL: grocy_py-0.0.7-py3-none-any.whl
- Upload date:
- Size: 34.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","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 |
7f29c995c8109a3996688fe3ab426a772679b75f8184ffa7212287fef1ddbb83
|
|
| MD5 |
4370076ab46caf92a49b02aa811dccb8
|
|
| BLAKE2b-256 |
5c9d0945889af04eefee9913a219ea1abd95c35ae089398b5ce03665cfbf1777
|