Skip to main content

No project description provided

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.6/8/9 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-ext-1.0.9.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

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

pygrocy_ext-1.0.9-py3-none-any.whl (30.6 kB view details)

Uploaded Python 3

File details

Details for the file pygrocy-ext-1.0.9.tar.gz.

File metadata

  • Download URL: pygrocy-ext-1.0.9.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for pygrocy-ext-1.0.9.tar.gz
Algorithm Hash digest
SHA256 ede7702ab080a81600121c87a6a53636b4ae5963e6fe2ce363fbdc4d6c481564
MD5 4f06177093a9006c15b3e047a9eb3da8
BLAKE2b-256 fd78b21f6ece443122fee04a93aeaf79d3222a119f82069edcdcb90b9cf09f7f

See more details on using hashes here.

File details

Details for the file pygrocy_ext-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: pygrocy_ext-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 30.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for pygrocy_ext-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 920aa8ab3d68b53b56566bbf4ad191add6fae28752f7bdec2169b42880bdd9dd
MD5 c0ce4a4a558d01c5aa389c15f39c1030
BLAKE2b-256 065aadcc4aad5aa00aff19ee3a90bbe70f312a18c459f71d66ec75063f43c534

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