Skip to content
This repository was archived by the owner on Feb 9, 2026. It is now read-only.
iamkarlsonPublic archive
forked from SebRut/pygrocy
 
 

Repository files navigation

Migrated to grocy-py

Due to naming, this project couldn't follow semver and to solve it by reseting a versioning and slightly changing a name to https://github.com/iamkarlson/grocy-py

Please address all of you questions and concerns there

pygrocy2

Check out source code reference docs

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.

Releases

Sponsor this project

Used by

Contributors

Languages