Skip to main content

Async Python client for CircleCI API

Project description

pycircleci

PyPI version Build Status

Asynchronous Python client for CircleCI API.

Ported from pycircleci, a fork of the discontinued circleci.py project.

Features

Installation

$ pip install pycircleci-async

Usage

Create a personal API token.

Set up the expected env vars:

CIRCLE_TOKEN           # CircleCI API access token
CIRCLE_API_URL         # CircleCI API base url. Defaults to https://circleci.com/api
import asyncio
from pycircleci_async import CircleCIClient


async def main():
    async with CircleCIClient(token='<access-token-uuid>') as circle_client:
        # get current user info
        await circle_client.get_user_info()

        # get list of projects
        results = await circle_client.get_projects()


asyncio.run(main())

Contributing

  1. Fork it
  2. Install poetry (pip install poetry)
  3. Install dependencies (poetry install)
  4. Create your feature branch (git checkout -b my-new-feature)
  5. Make sure flake8 and the pytest test suite successfully run locally
  6. Commit your changes (git commit -am 'Add some feature')
  7. Push to the branch (git push origin my-new-feature)
  8. Create new Pull Request

Project details


Download files

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

Source Distribution

pycircleci_async-0.1.1.tar.gz (12.7 kB view hashes)

Uploaded Source

Built Distribution

pycircleci_async-0.1.1-py3-none-any.whl (12.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page