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

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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pygrocy-2.1.0.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for pygrocy-2.1.0.tar.gz
Algorithm Hash digest
SHA256 365b31941f18d8485363f7fa75192cf210ae805c7dbdb28dba555d0d8c15f326
MD5 6b1642e5a73ae1df0ad0cb2917bfd6de
BLAKE2b-256 e0524135165cee7e25b4014fbe09f5126cf348d3be03caac08cdbb41fe68dec7

See more details on using hashes here.

File details

Details for the file pygrocy-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: pygrocy-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 32.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for pygrocy-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5bfd8eb75a73064e2429bfe6dc7f7fe562ee29e83595ae633ff4b9e1cb0551f
MD5 543c96ebefdb6f2bb9dad481060d0502
BLAKE2b-256 30ff4f748d585f67817409f2a994307766dbcefbbbe0e772e0cfef16115610a1

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