Skip to main content

Python wrapper for the unofficial LCBO API

Project description

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/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lcboapi-0.2.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

lcboapi-0.2.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file lcboapi-0.2.1.tar.gz.

File metadata

  • Download URL: lcboapi-0.2.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for lcboapi-0.2.1.tar.gz
Algorithm Hash digest
SHA256 edd73010341b429da347345b2cc6571ff456748b79421193c6631c2aed77e6c6
MD5 f0d70ac98fa9f21916753816595da7d9
BLAKE2b-256 15160188e5a340a00f9e7d8a17672fa93b0cd092d691c94663b928b5f783f1de

See more details on using hashes here.

File details

Details for the file lcboapi-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: lcboapi-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for lcboapi-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eb518f8ef5ba4a9e8e5fe69d481f326d7c851f111d4f7909375c9d25de9fae38
MD5 68f7cabd21238828876d8ded3c892449
BLAKE2b-256 8e5b5b2658736e2d926a38c47ff1f8ce90ba636adb9ac2b6d12bc0258f34d737

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page