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 Provenance Actions
pygrocy2-2.7.1.tar.gz 24.8 kB Without provenance Details for pygrocy2-2.7.1.tar.gz

Built distribution (wheel)

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

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}

Security for pygrocy2 2.7.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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