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 from LCBO API.
Initialize API wrapper:
from lcboapi import LCBOAPI
api = LCBOAPI('your_API_access_key')
Get data for store #614:
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:
$ export LCBOAPI_ACCESS_KEY='your_API_access_key'
Finally, run tests:
$ py.test
Versioning and Publishing
Requirements:
bumpversion <https://pypi.org/project/bumpversion/>
twine <https://pypi.org/project/twine/>
Run:
$ . env/bin/activate $ pytest tests/ $ bumpversion [patch/minor/major] $ python setup.py sdist bdist_wheel $ python -m twine upload dist/*
Metadata
Release files for lcboapi 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lcboapi-0.2.1.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lcboapi-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.9 kB
Release files / lcboapi-0.2.1.tar.gz
| Download URL | lcboapi-0.2.1.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
edd73010341b429da347345b2cc6571ff456748b79421193c6631c2aed77e6c6
|
|
BLAKE2b-256 checksum How to use checksums |
15160188e5a340a00f9e7d8a17672fa93b0cd092d691c94663b928b5f783f1de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0
|
Release files / lcboapi-0.2.1-py3-none-any.whl
| Download URL | lcboapi-0.2.1-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eb518f8ef5ba4a9e8e5fe69d481f326d7c851f111d4f7909375c9d25de9fae38
|
|
BLAKE2b-256 checksum How to use checksums |
8e5b5b2658736e2d926a38c47ff1f8ce90ba636adb9ac2b6d12bc0258f34d737
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0
|