Skip to main content

pygrocy2

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

Installation

pip install pygrocy2

Usage

Import the package:

from pygrocy2 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.13 to run the tests. Navigate to the root dir of pygrocy2 and execute tox to run the tests.

Metadata

Release files for pygrocy2 2.7.1

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

Source distribution (sdist)

Source distribution for pygrocy2 2.7.1
File Size Uploaded
pygrocy2-2.7.1.tar.gz 24.8 kB Details

Built distribution (wheel)

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

Total release size: 45.5 kB

Release files / pygrocy2-2.7.1.tar.gz

Download URL pygrocy2-2.7.1.tar.gz
Size 24.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ed875970fcd92d2ef863c9c370b076c56f6eeb3de4f8d765755127514cf0ed7c
BLAKE2b-256 checksum
How to use checksums
e5b63e2222bba624bb833074c1263dc8e815b2ab4515ba95f36488fd4b9d9725
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","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}

Release files / pygrocy2-2.7.1-py3-none-any.whl

Download URL pygrocy2-2.7.1-py3-none-any.whl
Size 20.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
34a08244d876b2983dddd1a4ecc37539cb0bf1db3af9c09593853b3866a8c846
BLAKE2b-256 checksum
How to use checksums
57167a8701e6b38ded4baf42c5fa5dbb3b08070bb0b92c228c2ed52a1a95c50b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","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}

Release history Release notifications | RSS feed

This release

2.7.1 This release

2 release files

2.7.0

2 release files

2.6.0

2 release files

2.5.0

2 release files

2.4.2

2 release files

2.4.1

1 release file

2.4.0

1 release file

2.3.3

1 release file

2.3.2

1 release file

2.3.1

1 release file

2.3.0

1 release file

2.2.2

1 release file

2.2.1

1 release file

2.2.0

1 release file

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