Requirements
Python version 3.8, 3.9, 3.10, 3.11, 3.12, 3.13 or PyPy. For better security, we recommend to install Python Requests library, since it supports SSL certs verification. To install Requests, simply run:
$ pip install requests
or using easy_install:
$ easy_install requests
Requests library is optional. If it is not installed, Cub Client will use urllib2 instead. All features of Cub Client will remain fully functional, but it will not verify SSL certificate of Cub API.
Installation
Install using pip:
$ pip install cub
Usage
User Login
import cub
cub.config.api_key = '<your-secret-key>'
user = cub.User.login(
username='<username>',
password='<password>',
)
Get User by token
import cub
user = cub.User.get('<token>')
Report bugs
Report issues to the project’s Issues Tracking on Github.
Development
Run tests with local python:
$ INTEGRATION_TESTS_SECRET_KEY={key} INTEGRATION_TESTS_USER_PASS={password} pytest -v --tb=short tests.py
Install tox:
$ pip install tox
Run tests with tox:
$ INTEGRATION_TESTS_SECRET_KEY={key} INTEGRATION_TESTS_USER_PASS={password} tox
To install additional pythons, you can use pyenv:
$ pyenv install 3.11 $ pyenv install 3.10 ... $ # in project dir run pyenv local, use $ pyenv local system 3.10.x 3.11.x
Metadata
Release files for cub 0.29.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 | |
|---|---|---|---|---|
| cub-0.29.0.tar.gz | 9.3 kB | Without provenance | Details |
Release files / cub-0.29.0.tar.gz
| Download URL | cub-0.29.0.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
27308b6c699b93fce37b17eb18a5f9174cf6b371d1c38e3b1b49eb131aa66961
|
|
BLAKE2b-256 checksum How to use checksums |
a47f40e7fc05fee960867aedc5bed7179bde47e96bf040cb22cdf59f03f4bbae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|
Security for cub 0.29.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.