Continuous Integration Catalog Interface
Project description
saferatday0 cici
cici (Continuous Integration Catalog Interface) is a pipeline component packaging tool. Author one CI configuration enriched with metadata, and cici:
-
Bundles into individual, self-contained job files for distribution
-
Pins pipeline dependencies to their latest releases
-
Documents pipelines automatically
cici helps teams maintain reusable CI templates that are versioned, documented, and distributed as artifacts.
cici is a foundational component of saferatday0 and powers the saferatday0 library.
How It Works
cici introduces a project-level configuration that manages actual CI pipeline files. This config declares:
-
Targets — named pipeline jobs with metadata (descriptions, groups, tags, container images)
-
Variables — input variables with descriptions, defaults, and examples
-
Groups — logical groupings of targets
-
Metadata — project name, repo URL, descriptions
The tool then uses this higher-level config alongside provider-specific CI/CD
files (currently only .gitlab-ci.yml) to bundle, document, and manage pipeline
components.
Installation
pip install cici-tools
Usage
cici bundle
Splits a multi-job CI file into standalone, per-job YAML files — each job gets
its own distributable .yml with all dependencies resolved (extends expanded,
variables merged, containers injected).
cici bundle
Use -o/--output to select an output format (defaults to gitlab:include).
Pass -o multiple times to generate several formats in one invocation:
cici bundle -o gitlab:include
The output format can also be controlled via the CICI_OUTPUTS environment
variable (comma-separated for multiple formats):
CICI_OUTPUTS=gitlab:include cici bundle
$ cici bundle
⚡ python-autoflake.yml
⚡ python-black.yml
⚡ python-build-sdist.yml
⚡ python-build-wheel.yml
⚡ python-import-linter.yml
⚡ python-isort.yml
⚡ python-mypy.yml
⚡ python-pyroma.yml
⚡ python-pytest.yml
⚡ python-setuptools-bdist-wheel.yml
⚡ python-setuptools-sdist.yml
⚡ python-twine-upload.yml
⚡ python-vulture.yml
cici update
Pins GitLab CI include: references to the latest release tag of the included
project. This is fetched from the GitLab API, and results are cached for 12
hours:
cici update
$ cici update
updated saferatday0/library/python to 0.5.1
updated saferatday0/library/gitlab from 0.1.0 to 0.2.2
You can ignore the cache and always pull the latest with -f:
cici update -f
cici readme
Auto-generates a README.md from your .cici/config.yaml using Jinja2
templates:
cici readme
To customize the output, place a README.md.j2 in your project's .cici/ directory:
# {{ name }} pipeline
{%- include "brief.md.j2" %}
{%- include "description.md.j2" %}
{%- include "groups.md.j2" %}
{%- include "targets.md.j2" %}
{%- include "variables.md.j2" %}
cici schema
Emits a JSON Schema for the .cici/config.yaml format, which can be used
for editor validation and autocompletion:
cici schema
cici schema --format yaml -o schema.yaml
Configuration
Project Config (.cici/config.yaml)
Defines pipeline component metadata, targets, and variables:
name: my-pipeline
brief: A reusable CI/CD pipeline component.
targets:
- name: lint
brief: Run linters.
container:
image: python:3.12
- name: test
brief: Run tests.
container:
image: python:3.12
variables:
PYTHON_VERSION:
brief: Python version to use.
default: "3.12"
Targets can also live in separate files under .cici/targets/*.yaml.
User Config (~/.config/cici-tools/config.ini)
Controls GitLab connection and caching:
# ~/.config/cici-tools/config.ini
CICI_GITLAB_URL=https://gitlab.com
CICI_GITLAB_PRIVATE_TOKEN=glpat-...
CICI_CACHE_TIMEOUT=43200
License
Copyright 2026 UL Research Institutes.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Project details
Release history Release notifications | RSS feed
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 cici_tools-0.21.0.tar.gz.
File metadata
- Download URL: cici_tools-0.21.0.tar.gz
- Upload date:
- Size: 104.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88b5ebc8727bf00de0250180e875b662d77ca74d5521e4f263799858757b61b1
|
|
| MD5 |
179c15d40c56f22d82f1b6407f771e53
|
|
| BLAKE2b-256 |
b2000b2eed93991afaff43645e289633f1321bed438c58955ac7f7484ec842a2
|
File details
Details for the file cici_tools-0.21.0-py3-none-any.whl.
File metadata
- Download URL: cici_tools-0.21.0-py3-none-any.whl
- Upload date:
- Size: 63.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
245e8b965204aae3929b893fe523364d4e3c50efdf38a5a5bd2d7cecd8e9d8a4
|
|
| MD5 |
f21cd788376763dc74133bfeac37deab
|
|
| BLAKE2b-256 |
bafe2381acbc36cc43a006a7876ad8b6d7a6375d1f65ab6ac11a46be6d810c84
|