Metadata-Version: 2.1
Name: lcboapi
Version: 0.2.0
Summary: Python wrapper for the unofficial LCBO API
Home-page: https://github.com/shamrt/LCBOAPI
Author: Shane Martin
Author-email: dev.sh@nemart.in
License: MIT License
Download-URL: https://github.com/shamrt/LCBOAPI/archive/v0.2.0.tar.gz
Keywords: api,lcbo
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Environment :: Web Environment

LCBOAPI - v0.2.0
================

Python 3 wrapper for the unofficial LCBO API

Full API documentation for LCBO API can be found at:
[https://lcboapi.com/docs\ ]

Installation
------------

Via PyPI:

::

    $ pip install lcboapi

Via Github:

::

    $ git clone https://github.com/shamrt/LCBOAPI.git
    $ cd LCBOAPI
    $ python setup.py install

Usage
-----

Obtain an `access key <https://lcboapi.com/sign-up>`__ from LCBO API.

Initialize API wrapper:

.. code:: python

    from lcboapi import LCBOAPI

    api = LCBOAPI('your_API_access_key')

Get data for store #614:

.. code:: python

    print api.stores(614)

Testing
-------

First setup your virtual environment:

::

    $ virtualenv env
    $ . env/bin/activate
    $ pip install -r requirements.txt

Then set an environment variable for your API access key:

.. code:: bash

    $ export LCBOAPI_ACCESS_KEY='your_API_access_key'

Finally, run tests:

::

    $ py.test



