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.1.0.tar.gz (8.1 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.1.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: repomaestro-2.1.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.12.12 Linux/6.14.0-1017-azure

File hashes

Hashes for repomaestro-2.1.0.tar.gz
Algorithm Hash digest
SHA256 a13cd82c59998c90eea96f65770848316a8ab03084aa5b28a040c2001dd10fcf
MD5 a35653206e5733501c0fc8e1ce0051b1
BLAKE2b-256 8a1487353812e1e2c2df5af500ab3256cf6969c4965a201ade24005fb1e3cd62

See more details on using hashes here.

File details

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

File metadata

  • Download URL: repomaestro-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.12.12 Linux/6.14.0-1017-azure

File hashes

Hashes for repomaestro-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 898f1cfea57877499b74a899d4e524a1ed2c63326cf086202efaeb0bfb0fa6ee
MD5 ded57914bbb3f3a373db54ac24e189d2
BLAKE2b-256 81d045faaadc9de2fc3c1930a003c3d5c4e551c6c5459c2e382eadcc8840959a

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