The Python library that powers Nanci CI pipelines
Project description
nanci is the engine behind Nanci — a CI system where pipelines are plain Python files. Install this package to run Nanci pipelines locally or to build tooling on top of the same runtime the cloud uses.
from nanci import job, ci
import asyncio
@job(image="python:3.12-slim")
async def test():
await ci.upload("src/", "/app/src")
await ci.upload("tests/", "/app/tests")
"cd /app && pip install -e . -q && pytest"
asyncio.run(test())
Each @job-decorated function runs inside an isolated Docker container. String literals in the function body are shell commands. Parallelism is plain asyncio.gather.
Quickstart
pip install nanci
# nanci_ci.py
from nanci import job
import asyncio
@job
async def hello():
"echo Hello, world!"
asyncio.run(hello())
python nanci_ci.py
Full documentation at nanci.dev.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nanci-0.1.4.tar.gz.
File metadata
- Download URL: nanci-0.1.4.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75849710bb8eec14f525259b4a274899e3fee89077c445b5f9ec50fe3f71494a
|
|
| MD5 |
dc3b27d4571d53f9b54076ea5c7d7960
|
|
| BLAKE2b-256 |
431b49d6b4ee9837e115abe62d9c85a964e8d6edc9f9cc9c7f2a440c44e19130
|
File details
Details for the file nanci-0.1.4-py3-none-any.whl.
File metadata
- Download URL: nanci-0.1.4-py3-none-any.whl
- Upload date:
- Size: 23.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b1ca5d00fe57f5f214ba02be0fd0d8922575ab6183e1f8123cae5b9231f2393
|
|
| MD5 |
3142ea54e0c5b3964c97dbf494b1659e
|
|
| BLAKE2b-256 |
637742f862293cdae80c0aa7a744e8f4944496f277a4af47e83aa1e7d38628b1
|