A client for the leanbase API.
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
leanbase-1.0.0-py3-none-any.whl
(13.1 kB
view details)
File details
Details for the file leanbase-1.0.0-py3-none-any.whl.
File metadata
- Download URL: leanbase-1.0.0-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.5.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7773abf6ad19209a8a958cc9af52e88c1c15e6786f8bb4b57aa3821f0c3c270f
|
|
| MD5 |
ff69b9bb4b22c0da4a7afac1e48a18fb
|
|
| BLAKE2b-256 |
cfbeed1a175117f394da098c14e85e438b47e4b2467d4535585ae0f44a122f8e
|