Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

This project is de-facto unmaintained as haven't been using grocy for a while. Feel free to fork and create pygrocy2!

pygrocy

Development Build Status PyPI Python Version Grocy Version Coverage Status CodeFactor pre-commit Documentation

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.

Metadata

Release files for pygrocy 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pygrocy 2.1.0
File Size Uploaded
pygrocy-2.1.0.tar.gz 22.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pygrocy 2.1.0
File Interpreter ABI Platform
pygrocy-2.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 55.0 kB

Release files / pygrocy-2.1.0.tar.gz

Download URL pygrocy-2.1.0.tar.gz
Size 22.8 kB
Tags Source
SHA-256 checksum
How to use checksums
365b31941f18d8485363f7fa75192cf210ae805c7dbdb28dba555d0d8c15f326
BLAKE2b-256 checksum
How to use checksums
e0524135165cee7e25b4014fbe09f5126cf348d3be03caac08cdbb41fe68dec7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.9

Release files / pygrocy-2.1.0-py3-none-any.whl

Download URL pygrocy-2.1.0-py3-none-any.whl
Size 32.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e5bfd8eb75a73064e2429bfe6dc7f7fe562ee29e83595ae633ff4b9e1cb0551f
BLAKE2b-256 checksum
How to use checksums
30ff4f748d585f67817409f2a994307766dbcefbbbe0e772e0cfef16115610a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page