Skip to main content

No project description provided

Project description

This project is de-facto unmaintained as haven't been using grocy for a while. Feel free to fork and create pygrocy2!

pygrocy

Development Build Status PyPI Python Version Grocy Version Coverage Status CodeFactor pre-commit Documentation

Installation

pip install pygrocy

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.8/9/10 to run the tests. Navigate to the root dir of pygrocy 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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

pygrocy2-2.3.0-py3-none-any.whl (93.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pygrocy2-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 93.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for pygrocy2-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 67210343cb778c66eb14ec3c9e724ec938b86cbe77a1f410acb5bbf40916f45c
MD5 5d5b67a7b44f4bde417fadd74cf9f3c1
BLAKE2b-256 0b859b18b0f448471f17aa2e1cd2a5b7ecda26349755a7d580fcb6696f608ca6

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