Skip to main content

Cub Client for Python

Project description


Python version 2.7, 3.5, 3.6, 3.7, 3.8, 3.9 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.


Install using pip, recommended (why?):

$ pip install cub

or using easy_install:

$ easy_install cub


User Login

import cub
import cub.config

cub.config.api_key = '<your-secret-key>'

user = cub.User.login(

Get User by token

import cub

user = cub.User.get('<token>')

Report bugs

Report issues to the project’s Issues Tracking on Github.


Run tests with local python:


Install tox:

$ pip install tox

Run tests with tox:


To install additional pythons, you can use pyenv:

$ pyenv install 3.5.10
$ pyenv install 3.6.12
$ # in project dir run pyenv local
$ pyenv local system 3.5.10 3.6.12

Project details

Download files

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

Files for cub, version 0.28.0
Filename, size File type Python version Upload date Hashes
Filename, size cub-0.28.0-py2.py3-none-any.whl (9.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size cub-0.28.0.tar.gz (9.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page