.. image:: https://travis-ci.org/qba73/circleclient.svg?branch=master :target: https://travis-ci.org/qba73/circleclient :alt: Travis CI Build Status
.. image:: https://img.shields.io/pypi/v/circleclient.svg :target: https://pypi.python.org/pypi/circleclient :alt: Latest Version
.. image:: https://img.shields.io/pypi/l/circleclient.svg :target: https://pypi.python.org/pypi/circleclient/ :alt: License
.. image:: https://readthedocs.org/projects/circleclient/badge/?version=latest :target: http://circleclient.readthedocs.io/en/latest/ :alt: Documentation Status
Python client library for CircleCI API.
.. code:: python
pip install circleclient
.. code:: python
import os
from circleclient import circleclient
token = os.environ['API_TOKEN']
client = circleclient.CircleClient(token)
# Retrieve User data
client.user.info()
.. code:: python
import os from circleclient import circleclient
token = os.environ['API_TOKEN'] client = circleclient.CircleClient(token)
client.projects.list_projects()
.. code:: python
import os from circleclient import circleclient
token = os.environ['API_TOKEN'] client = circleclient.CircleClient(token)
client.build.trigger('
.. code:: python
import os from circleclient import circleclient
token = os.environ['API_TOKEN'] client = circleclient.CircleClient(token)
client.build.trigger('
.. code:: python
import os from circleclient import circleclient
token = os.environ['API_TOKEN'] client = circleclient.CircleClient(token)
client.build.cancel('
.. code:: python
import os from circleclient import circleclient
token = os.environ['API_TOKEN'] client = circleclient.CircleClient(token)
client.build.retry('
.. code:: python
import os from circleclient import circleclient
token = os.environ['API_TOKEN'] client = circleclient.CircleClient(token)
client.build.artifacts('
.. code:: python
import os from circleclient import circleclient
token = os.environ['API_TOKEN'] client = circleclient.CircleClient(token)
client.build.status('
.. code:: python
import os from circleclient import circleclient
token = os.environ['API_TOKEN'] client = circleclient.CircleClient(token)
client.build.recent_all_projects(limit=
.. code:: python
import os from circleclient import circleclient
token = os.environ['API_TOKEN'] client = circleclient.CircleClient(token)
client.build.recent('
client.build.recent('
client.build.recent('
.. code:: python
import os from circleclient import circleclient
token = os.environ['API_TOKEN'] client = circleclient.CircleClient(token)
client.build.recent('
client.build.recent('
client.build.recent('
client.build.recent('
.. code:: python
import os from circleclient import circleclient
token = os.environ['API_TOKEN'] client = circleclient.CircleClient(api_token=token)
client.cache.clear(username='
.. code:: python
import os from circleclient import circleclient
token = os.environ['API_TOKEN'] client = circleclient.CircleClient(api_token=token, endpoint='https://cci.example.com/api/v1')
client.user.info()