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

Uploaded Source

Built Distribution

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

repomaestro-1.1.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: repomaestro-1.1.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.9 Linux/6.8.0-1021-azure

File hashes

Hashes for repomaestro-1.1.0.tar.gz
Algorithm Hash digest
SHA256 40a4eba983884e3a63b673d26e42659f4b81419089c96489c6fb659939d0efcb
MD5 3d78e84e7099fd48cf3f4e8aafe07408
BLAKE2b-256 a1b0c77a910814d890d81c46835dddf4608fc268a0ca21ab0cd22b471a9f3c0b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for repomaestro-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1d733efcf23702e90183a5762d1179e7f5b973267910c85511e427043a338f9
MD5 2ed9dd59f6311c640e4d8e9815aae839
BLAKE2b-256 5543726b878b3af9e340f77bbb9b91cb2e5f34ee8bb2cac8bf7c93671922ed81

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