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.5.0.tar.gz (22.5 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.5.0-py3-none-any.whl (32.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pygrocy2-2.5.0.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pygrocy2-2.5.0.tar.gz
Algorithm Hash digest
SHA256 84af4eee26006c2865702e8855e15c425af9ff97d6920c397e55a836313e4b7f
MD5 c29cba527705d5d2d9825e78d127807b
BLAKE2b-256 de9e0323406af3aaf71c860105659a946ff56118677ddfe46aeca92237933558

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pygrocy2-2.5.0-py3-none-any.whl
  • Upload date:
  • Size: 32.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pygrocy2-2.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f5d328ce5539a2eade826d36a61beb1018fc0786b0df178ea1c9f5b59c0b3f45
MD5 c5699e1355c643f011d6c16b4f39c409
BLAKE2b-256 84b86778ad5d05d4f9a5c859eddce64cc0550fdb1e3593b0caff26b5a4063dce

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