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.4.2.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.4.2-py3-none-any.whl (32.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pygrocy2-2.4.2.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.4.2.tar.gz
Algorithm Hash digest
SHA256 52e55f4059f0144810d53f067eb89ff5550f3271ccda6d1ae1ea3dd5b32e359b
MD5 52100d928c2780edde16a418b9efde6a
BLAKE2b-256 858eb195897675f7e8b131d3b06a53a5e6b65c0a3d909bd13108f914d8a0c486

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pygrocy2-2.4.2-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.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 738a924bd2844e61c3dc085595edfb2d107dcfea17d08a0b1fae010fe382f487
MD5 e1a7dbe1a9c8249d02d60de932e693b0
BLAKE2b-256 a8afd5b2dd6955892e6fbb982790cfcbbaf310617493c29e58c3a91b4c0d1dd0

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