Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:SebRut/pygrocy
Browse files Browse the repository at this point in the history
  • Loading branch information
SebRut committed Apr 23, 2019
2 parents cc3345f + 37ab46d commit 220a32f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
# pygrocy
[![Build Status](https://travis-ci.com/SebRut/pygrocy.svg?branch=master)](https://travis-ci.com/SebRut/pygrocy)
[![Coverage Status](https://coveralls.io/repos/github/SebRut/pygrocy/badge.svg?branch=master)](https://coveralls.io/github/SebRut/pygrocy?branch=master)
![PyPI](https://img.shields.io/pypi/v/pygrocy.svg)

## Example
```
from pygrocy import Grocy
# get a grocy instance
grocy = Grocy("https://example.com/api/", "GROCY_API_KEY")
# get current stock
for entry in grocy.stock():
print("{} in stock for product id {}".format(entry.product_id, entry.amount))
```

0 comments on commit 220a32f

Please sign in to comment.