Skip to main content

LCBOAPI - v0.2.1

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)

Source distribution for lcboapi 0.2.1
File Size Uploaded Provenance Actions
lcboapi-0.2.1.tar.gz 4.6 kB Without provenance Details for lcboapi-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lcboapi 0.2.1
File Interpreter ABI Platform Actions
lcboapi-0.2.1-py3-none-any.whl Python 3 none any Details for lcboapi-0.2.1-py3-none-any.whl

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

Security for lcboapi 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page