Code repositories conductor
Project description
Repo Maestro
Repo Maestro is a code repositories configuration file manager.
It fetches repositories data from GitHub, stored in a Repo Maestro configuration file, and then generates output files using Jinja2 templates rendered with the repositories data.
Installation
pip3 install repomaestro
Usage
Initialise a Repo Maestro configuration file with GitHub repositories data:
GITHUB_TOKEN=<github_token> repomaestro init --conf-file .repomaestro.yaml --github-id cliffano
Please note that the fetched GitHub repositories data are based on the ones accessible using the provided GITHUB_TOKEN, which can include repositories owned by multiple users and orgs.
When --github-ids flag is provided, only the repositories owned by the specified user or org will be included in Repo Maestro configuration file.
Generate output file based on a Jinja2 template:
repomaestro gen --conf-file path/to/.repomaestro.yaml --template-file path/to/some-template.j2 --out-file path/to/some-output.json
Show help guide:
repomaestro --help
Templates
Template parameters:
| Parameter | Description |
|---|---|
repos |
Repositories data with repository name as key and a map of repository properties git_url, homepage, keywords, and ssh_url as values. |
The repos parameter can then be used in Jinja2 templates like this:
{
"repos": {
{% for repo_name, repo_data in repos.items() %}
"{{ repo_name }}": {
"git_url": "{{ repo_data.git_url }}",
"homepage": "{{ repo_data.homepage }}",
"keywords": {{ repo_data.keywords }}
}{% if not loop.last %},{% endif %}
{% endfor %}
}
}
Colophon
Build reports:
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 repomaestro-2.0.0.tar.gz.
File metadata
- Download URL: repomaestro-2.0.0.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.12.10 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ddcd0bc815d3a1d1d3bb44ea47360c88ffa0bfb9001d912012b09867194d81e0
|
|
| MD5 |
541c849db656c7e9588c822060e5768a
|
|
| BLAKE2b-256 |
46a96f722096c2eb435a88dcf85eb3f3a10893285efa4d73303e3d7bcc873461
|
File details
Details for the file repomaestro-2.0.0-py3-none-any.whl.
File metadata
- Download URL: repomaestro-2.0.0-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.12.10 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1f5ca89bdffac1c2e1b14cdb5c7e5de03da1168a3890ef6b4c655f4685e47d0
|
|
| MD5 |
37bc452f3d7f8d8da332ba08bb859d46
|
|
| BLAKE2b-256 |
15e6354a28220eef22cbfca68590ee62b07a77b69a61413c80bc9a64f94e925c
|