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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file pycircleci_async-0.1.1.tar.gz.

File metadata

  • Download URL: pycircleci_async-0.1.1.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.7 Linux/5.13.0-52-generic

File hashes

Hashes for pycircleci_async-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2116e05bdccbc0c7b561ecff5ddd51bf6dd1d65f7e87562965427b7ccdb3943b
MD5 3b0018db56a0786227e637339a568a8d
BLAKE2b-256 0a5edde38e5516b37667e0c7505d82900969cb1e181f750ba042756b376ed4e4

See more details on using hashes here.

File details

Details for the file pycircleci_async-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pycircleci_async-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.7 Linux/5.13.0-52-generic

File hashes

Hashes for pycircleci_async-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 33271a5eecfd315375d5e4907a02e459592dcbc6889fac7c8b90d38c5c4826c1
MD5 cc83cc8ccfdf8e3b69f60f8d09552ba1
BLAKE2b-256 a51e82927c7855238c24d8483b3de4ef30aa3ea215b9f64daa601e2abcc435bc

See more details on using hashes here.

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