Skip to main content

No project description provided

Project description

grocy-py

Check out source code reference docs

Installation

pip install grocy-py

Usage

Import the package:

from grocy 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.current():
    print(f"{entry.available_amount} in stock for product id {entry.id}")

Support

If you need help using grocy check the discussions section. Feel free to create an issue for feature requests, bugs and errors in the library.

Development testing

You need uv and Python 3.12+ to run the tests:

uv sync --group dev
uv run pytest

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

grocy_py-0.0.2.tar.gz (26.6 kB view details)

Uploaded Source

Built Distribution

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

grocy_py-0.0.2-py3-none-any.whl (27.1 kB view details)

Uploaded Python 3

File details

Details for the file grocy_py-0.0.2.tar.gz.

File metadata

  • Download URL: grocy_py-0.0.2.tar.gz
  • Upload date:
  • Size: 26.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for grocy_py-0.0.2.tar.gz
Algorithm Hash digest
SHA256 03b46d669b1869f7f9ed0fb648ccfa4f5e11d84de8dfa5aaf51dc074ad6cb771
MD5 e1adbc5192d7d4f6afe5e189c222906d
BLAKE2b-256 ee30e78ee77463fd1120ffeb31d0a68e23a426dc2260ed9b7841cbd2944c9d59

See more details on using hashes here.

File details

Details for the file grocy_py-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: grocy_py-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 27.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for grocy_py-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8dd111a06ee42f10363f5e695c6b6f6a9e82dfb63619086ad41bee820a73ec2f
MD5 bacad27fbf99b74d06971f8180497729
BLAKE2b-256 c4318681d67d17aa1a69669859f3d42bb440e33e416999a877560728cf442862

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