Metadata-Version: 2.1
Name: pygrocy
Version: 0.16.0
Summary: UNKNOWN
Home-page: https://github.com/sebrut/pygrocy
Author: Sebastian Rutofski
Author-email: kontakt@sebastian-rutofski.de
License: MIT
Description: # pygrocy
        [![Development Build Status](https://api.travis-ci.com/SebRut/pygrocy.svg?branch=develop)](https://travis-ci.com/SebRut/pygrocy)
        [![PyPI](https://img.shields.io/pypi/v/pygrocy.svg)](https://pypi.org/project/pygrocy/)
        [![Coverage Status](https://coveralls.io/repos/github/SebRut/pygrocy/badge.svg?branch=master)](https://coveralls.io/github/SebRut/pygrocy?branch=master)
        [![CodeFactor](https://www.codefactor.io/repository/github/sebrut/pygrocy/badge)](https://www.codefactor.io/repository/github/sebrut/pygrocy)
        [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FSebRut%2Fpygrocy.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FSebRut%2Fpygrocy?ref=badge_shield)
        
        [Documentation](https://sebrut.github.io/pygrocy/)
        
        ## Installation
        
        `pip install pygrocy`
        
        ## Usage
        Import the package: 
        ```python
        from pygrocy import Grocy
        ```
        
        Obtain a grocy instance:
        ```python
        grocy = Grocy("https://example.com", "GROCY_API_KEY")
        ```
        or
        ```python
        grocy = Grocy("https://example.com", "GROCY_API_KEY", port = 9192, verify_ssl = True)
        ```
        
        Get current stock:
        ```python
        for entry in grocy.stock():
            print("{} in stock for product id {}".format(entry.id, entry.amount))
        ```
        
        ## 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
        ```
        
        ## License
        [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FSebRut%2Fpygrocy.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2FSebRut%2Fpygrocy?ref=badge_large)
        
        ---
        
        [![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/X8X1LYUK)
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
