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 pygrocy 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 Distribution

pygrocy-2.1.0.tar.gz (22.8 kB view hashes)

Uploaded Source

Built Distribution

pygrocy-2.1.0-py3-none-any.whl (32.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page