Skip to main content

No project description provided

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

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-1.5.0.tar.gz (22.4 kB view details)

Uploaded Source

File details

Details for the file pygrocy-1.5.0.tar.gz.

File metadata

  • Download URL: pygrocy-1.5.0.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for pygrocy-1.5.0.tar.gz
Algorithm Hash digest
SHA256 d9ef8816fa732bef409ac0666fc745c49b63a831929b617aa2bc6fac3945c327
MD5 8d2a8cc121af65e77627924bd91b8722
BLAKE2b-256 c57aa88f1caa309480196bbc628c9b7ada0baa2725399d0846bc5c3f0f864303

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