circleci-to-sqlite
Save data from CircleCI to a SQLite database.
How to install
$ pip install circleci-to-sqlite
Authentication
Create a CircleCI personal access token: https://app.circleci.com/settings/user/tokens
Run this command and paste in your new token:
$ circleci-to-sqlite auth
This will create a file called auth.json in your current directory containing the required value. To save the file at a different path or filename, use the --auth=myauth.json option.
As an alternative to using an auth.json file you can add your access token to an environment variable called CIRCLECI_TOKEN.
Fetching all data for the current user
The circleci_to_sqlite.sh example script shows how to download all data for the current user's followed projects, skipping jobs that already have steps.
$ ./circleci_to_sqlite.sh
Fetching followed projects for the current user
The projects command retrieves all of the projects for the current user.
$ circleci-to-sqlite projects circleci.db
Fetching jobs for a project
The jobs command retrieves all of the jobs belonging to a project. A project is specified by its slug, which has the form {vcs_type}/{username}/{reponame}.
$ circleci-to-sqlite jobs circleci.db github/seem/circleci-to-sqlite
Fetching steps for a job
The steps command retrieves all of the steps and their actions belonging to a job.
$ circleci-to-sqlite steps circleci.db github/seem/circleci-to-sqlite 8
Development
To contribute to this tool, first checkout the code. Then create a new virtual environment:
cd circleci-to-sqlite
python -mvenv venv
source venv/bin/activate
Or if you are using pipenv:
pipenv shell
Now install the dependencies and tests:
pip install -e '.[test]'
To run the tests:
pytest
Metadata
Release files for circleci-to-sqlite 0.3.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 |
|---|---|---|---|---|
| circleci-to-sqlite-0.3.1.tar.gz | 8.8 kB | Without provenance | Details for circleci-to-sqlite-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| circleci_to_sqlite-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for circleci_to_sqlite-0.3.1-py3-none-any.whl |
Total release size: 18.5 kB
Release files / circleci-to-sqlite-0.3.1.tar.gz
| Download URL | circleci-to-sqlite-0.3.1.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6dbaa14f1268c438cd1547d067f126b040e36d35de0215eef8893bbebb025b37
|
|
BLAKE2b-256 checksum How to use checksums |
dd8b25fd64497aff0ae8def689a6e134c095179ef582e535b46dd44c4f61e4fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
|
Release files / circleci_to_sqlite-0.3.1-py3-none-any.whl
| Download URL | circleci_to_sqlite-0.3.1-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9d2f375b19f272e738a4b240314f98e5133828f3fae96ffe7e2d164e828ab58a
|
|
BLAKE2b-256 checksum How to use checksums |
c184af2787eaee5a604432d6289c41378ed6e7c9be247bcc4974fb1af3e37421
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
|
Security for circleci-to-sqlite 0.3.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.