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 map of git_url, homepage, and keywords, as value.

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-0.10.1.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

repomaestro-0.10.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file repomaestro-0.10.1.tar.gz.

File metadata

  • Download URL: repomaestro-0.10.1.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.8 Linux/6.8.0-1017-azure

File hashes

Hashes for repomaestro-0.10.1.tar.gz
Algorithm Hash digest
SHA256 0cc3a5e26190945e39262ab717fcc490d7f97dfa5688db460283ccf05568ef43
MD5 b648d964b2e622662ee042e887f47049
BLAKE2b-256 90dd9dd99613dd043984c7775e6e02bc119389c0a97da2f7901507cc8f698e56

See more details on using hashes here.

File details

Details for the file repomaestro-0.10.1-py3-none-any.whl.

File metadata

  • Download URL: repomaestro-0.10.1-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.8 Linux/6.8.0-1017-azure

File hashes

Hashes for repomaestro-0.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7ac0270cf869c922f8d19a18ff0194c5f19fda9af55cbfa253efcd4c2502de7a
MD5 13ef0eb17790a435fb10a71062de4bb6
BLAKE2b-256 93ad8121e4c8efd78933300eecf2e21424e8e5879e23376ab67c82620f1a0cf5

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