leanbase-python
A client for the Leanbase API in python.
Usage
import leanbase as lb
lb.configure(api_key='api_key')
lb.await_initialisation(timeout=0.25) # optional
if lb.user(user).can_access('quarter_pounds'):
# Do this
else:
# Do that.
lb.user(user).completed('arduous_goal') # optional, recommended.
Architecture
The code and the runtime is divided into the following modules. Storage, Client, Models and API.
Using the client is effectively using the API provided with it. At configuration,
- a client and stores are created
- stores are connected to the client (for auto-updates)
- the client requests for the first payload and updates the store accordingly.
During usage,
- the stores are queried for the feature along with its segments definitions
- the evaluation algorithm is invoked.
- the client and stores ensure that the feature definition is always up-to-date
Metadata
Release files for leanbase 1.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| leanbase-1.6.0.tar.gz | 12.1 kB | Without provenance | Details for leanbase-1.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| leanbase-1.6.0-py3-none-any.whl | Python 3 | none | any | Details for leanbase-1.6.0-py3-none-any.whl |
Total release size: 30.0 kB
Release files / leanbase-1.6.0.tar.gz
| Download URL | leanbase-1.6.0.tar.gz |
|---|---|
| Size | 12.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e8a237fbe9f4ec6f616d1bd4512be2c3f60e2a0e4ed3ffe90ce514f912984fb
|
|
BLAKE2b-256 checksum How to use checksums |
5d9707b146f6400c399c420aa04344eaae21a5115c38041038c97a9720b7b65e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.9
|
Release files / leanbase-1.6.0-py3-none-any.whl
| Download URL | leanbase-1.6.0-py3-none-any.whl |
|---|---|
| Size | 17.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c64748e84152edba085fcc1d06c6ba08c5a396ff5d803e3573ecaee402b6e5b1
|
|
BLAKE2b-256 checksum How to use checksums |
50a3a0cbde85385917017837c086b4ed2933abb9c645466fd17b19dbaedbac7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.9
|
Security for leanbase 1.6.0
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.