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.6.0.tar.gz (23.4 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.6.0-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pygrocy2-2.6.0.tar.gz
  • Upload date:
  • Size: 23.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","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.6.0.tar.gz
Algorithm Hash digest
SHA256 3cde080705500e8a2014f8ab9a4a6e71ceb0ead252822e628144215c44cab465
MD5 e7e546a6a67914c73a875d6e7c05b11a
BLAKE2b-256 44f2ab38d811b2cddebc6b72f060e6a0f03c9d096821d441e21efa1babbeb2f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pygrocy2-2.6.0-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","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.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 691cc51100d47f648439550e9f52ac3fe43415ca0f0d409cc2d16532ea60b104
MD5 d59d1b1b20f598c6e4d5525a718b2f19
BLAKE2b-256 4929ab91da31ab9e6553377a28c424d5dd73eef5d2215ecfaaae5d8cf334de1a

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