No project description provided
Project description
pygrocy
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))
Development testing
You need a Grocy instance running in demo mode at localhost with https (docker or a php server) You can setup url, port and ssl in test/test_const.py
curl -L https://github.com/grocy/grocy-docker/raw/master/Dockerfile-grocy > Dockerfile-grocy
docker-compose build grocy
docker pull grocy/grocy-docker:nginx
docker-compose up -d
curl -kX GET https://localhost
Project details
Release history Release notifications | RSS feed
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.4.tar.gz
(15.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pygrocy-ext-1.0.4.tar.gz.
File metadata
- Download URL: pygrocy-ext-1.0.4.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
247c97c7b33be9abe5621f3d4c5fffb3eebbd65a9d492f677b1a644094651abb
|
|
| MD5 |
46adf4ae026874f4e48da2d17afcdbea
|
|
| BLAKE2b-256 |
d42a57b1b1d11b3370dcfe6c3c017c4340f3c97ec86b952e947d6f99e9317cfa
|
File details
Details for the file pygrocy_ext-1.0.4-py3-none-any.whl.
File metadata
- Download URL: pygrocy_ext-1.0.4-py3-none-any.whl
- Upload date:
- Size: 22.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2aadace690839d9dcdba1c1048bc32904f5b27194c17012fd38531b1c1b96e77
|
|
| MD5 |
b8a71763f2add14ef6bb73adf58718d5
|
|
| BLAKE2b-256 |
71b0c4b36a115b01b37e27e97869b28fc870d254c847476e3f7a8225bde7c0f4
|