pycircleci
Asynchronous Python client for CircleCI API.
Ported from pycircleci, a fork of the discontinued circleci.py project.
Features
- Supports API v1.1 and API v2
- Supports both
circleci.comand self-hosted Enterprise CircleCI
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
- Fork it
- Install poetry (
pip install poetry) - Install dependencies (
poetry install) - Create your feature branch (
git checkout -b my-new-feature) - Make sure
flake8and thepytesttest suite successfully run locally - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
Metadata
Release files for pycircleci-async 0.1.1
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 | Actions |
|---|---|---|---|---|
| pycircleci_async-0.1.1.tar.gz | 12.7 kB | Without provenance | Details for pycircleci_async-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pycircleci_async-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for pycircleci_async-0.1.1-py3-none-any.whl |
Total release size: 24.9 kB
Release files / pycircleci_async-0.1.1.tar.gz
| Download URL | pycircleci_async-0.1.1.tar.gz |
|---|---|
| Size | 12.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2116e05bdccbc0c7b561ecff5ddd51bf6dd1d65f7e87562965427b7ccdb3943b
|
|
BLAKE2b-256 checksum How to use checksums |
0a5edde38e5516b37667e0c7505d82900969cb1e181f750ba042756b376ed4e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.10.7 Linux/5.13.0-52-generic
|
Release files / pycircleci_async-0.1.1-py3-none-any.whl
| Download URL | pycircleci_async-0.1.1-py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
33271a5eecfd315375d5e4907a02e459592dcbc6889fac7c8b90d38c5c4826c1
|
|
BLAKE2b-256 checksum How to use checksums |
a51e82927c7855238c24d8483b3de4ef30aa3ea215b9f64daa601e2abcc435bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.10.7 Linux/5.13.0-52-generic
|
Security for pycircleci-async 0.1.1
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.