Skip to main content

No project description provided

Project description

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.

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

pygrocy2-2.7.1.tar.gz (24.8 kB view details)

Uploaded Source

Built Distribution

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

pygrocy2-2.7.1-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

Details for the file pygrocy2-2.7.1.tar.gz.

File metadata

  • Download URL: pygrocy2-2.7.1.tar.gz
  • Upload date:
  • Size: 24.8 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for pygrocy2-2.7.1.tar.gz
Algorithm Hash digest
SHA256 ed875970fcd92d2ef863c9c370b076c56f6eeb3de4f8d765755127514cf0ed7c
MD5 91ee522147cc0d04cd4cec1d47bb7334
BLAKE2b-256 e5b63e2222bba624bb833074c1263dc8e815b2ab4515ba95f36488fd4b9d9725

See more details on using hashes here.

File details

Details for the file pygrocy2-2.7.1-py3-none-any.whl.

File metadata

  • Download URL: pygrocy2-2.7.1-py3-none-any.whl
  • Upload date:
  • Size: 20.8 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for pygrocy2-2.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 34a08244d876b2983dddd1a4ecc37539cb0bf1db3af9c09593853b3866a8c846
MD5 f892bd4b00d5a6dc881d80a54c45d6f2
BLAKE2b-256 57167a8701e6b38ded4baf42c5fa5dbb3b08070bb0b92c228c2ed52a1a95c50b

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