Skip to main content

Code repositories conductor

Project description

Avatar

Build Status Security Status Dependencies Status Published Version

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

Developer's Guide

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

repomaestro-2.0.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

repomaestro-2.0.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

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

Hashes for repomaestro-2.0.0.tar.gz
Algorithm Hash digest
SHA256 ddcd0bc815d3a1d1d3bb44ea47360c88ffa0bfb9001d912012b09867194d81e0
MD5 541c849db656c7e9588c822060e5768a
BLAKE2b-256 46a96f722096c2eb435a88dcf85eb3f3a10893285efa4d73303e3d7bcc873461

See more details on using hashes here.

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

Hashes for repomaestro-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b1f5ca89bdffac1c2e1b14cdb5c7e5de03da1168a3890ef6b4c655f4685e47d0
MD5 37bc452f3d7f8d8da332ba08bb859d46
BLAKE2b-256 15e6354a28220eef22cbfca68590ee62b07a77b69a61413c80bc9a64f94e925c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page