Skip to main content

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

grocy_py-0.0.8.tar.gz (164.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

grocy_py-0.0.8-py3-none-any.whl (34.1 kB view details)

Uploaded Python 3

File details

Details for the file grocy_py-0.0.8.tar.gz.

File metadata

  • Download URL: grocy_py-0.0.8.tar.gz
  • Upload date:
  • Size: 164.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for grocy_py-0.0.8.tar.gz
Algorithm Hash digest
SHA256 a80440e937ae02def27c2f3d83fd8ead0ed1ad00676ab575b2879f2d6a60051f
MD5 652a29a160d715fbeae0769704415bcb
BLAKE2b-256 a1d3b94e0918292e9601588b6d38813a87af6ef0102f63b0342acffda3d969f9

See more details on using hashes here.

File details

Details for the file grocy_py-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: grocy_py-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 34.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for grocy_py-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 31788239cac4c8e99d1b745b11795ca313f820f77c605f65ec1ed414efdc93af
MD5 cfce30c73407f2ccb95f8a922e6f326b
BLAKE2b-256 a068455a0bf8d2c4b3b07a8fc2f9b28bc64f4bea1ba9900ae9dc2d6c90719e7d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page