Skip to main content

No project description provided

Project description

pygrocy2

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

Installation

pip install pygrocy2

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.13 to run the tests. Navigate to the root dir of pygrocy2 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

pygrocy2-2.7.0.tar.gz (24.7 kB view details)

Uploaded Source

Built Distribution

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

pygrocy2-2.7.0-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

Details for the file pygrocy2-2.7.0.tar.gz.

File metadata

  • Download URL: pygrocy2-2.7.0.tar.gz
  • Upload date:
  • Size: 24.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pygrocy2-2.7.0.tar.gz
Algorithm Hash digest
SHA256 1b9fb718c84690674a036d4137f265c1e826774b6d996dd0e4c8936910649c24
MD5 a9133a0502c5a8f145f17b5d1c6856d2
BLAKE2b-256 10066685ec217894c208b27ce6969ebf706e12daa07bc6509b142b018eb9156f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pygrocy2-2.7.0-py3-none-any.whl
  • Upload date:
  • Size: 20.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pygrocy2-2.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f4ada6641262655ed737af7f082dc6e32490669bcc68408fb1c73bd31f668e03
MD5 b561ac18e3cbfb5fc45ee4e4b871bff0
BLAKE2b-256 c0a818b6940c2d34535652f2923f887b7339af54f42ca2edbae10fcad852cde4

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