Skip to main content

repodb

Keep a SQLite database of git project clone URLs, and clone from it.

Each project is stored as (owner, name, url), keyed by (owner, name). The owner is the first path component after the host (alice in github.com/alice/r or git@gitlab.com:alice/r), for any host.

Install

uv tool install git+https://github.com/shakfu/repodb

This installs repodb, and listrepos as an alias for repodb list.

Usage

repodb scan ~/src                         # add origin URLs of local projects
repodb github USER [--source] [--ssh]     # add USER's GitHub repos (needs gh)
repodb list [-g] [-u] [--owner USER]      # names, grouped by owner, or URLs
repodb export [-g] [--owner USER] -o projects.json
repodb import projects.json
repodb clone DEST [-g] [--owner USER | --json projects.json]
repodb remove OWNER/NAME [NAME ...] | --owner USER --all
repodb info                               # format, counts, hosts; read-only
  • The JSON form is {name: url}, or with -g {owner: {name: url}}. Both round-trip byte for byte.

  • clone writes DEST/<name>, or with -g DEST/<owner>/<name>, and skips targets that exist.

  • The flat forms refuse a name held by two owners, ignoring case; use -g.

  • The database defaults to ~/.local/share/repodb/repos.sqlite; override with --db.

Development

make qa     # ruff lint and format check, mypy, pytest

Metadata

Release files for repodb 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for repodb 0.1.0
File Size Uploaded Provenance
repodb-0.1.0.tar.gz 16.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for repodb 0.1.0
File Interpreter ABI Platform
repodb-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.0 kB

Release files / repodb-0.1.0.tar.gz

Download URL repodb-0.1.0.tar.gz
Size 16.2 kB
Tags Source
SHA-256 checksum
How to use checksums
163da7e8267d57c5ed8a93cd170ffcaf4db8b035345b342dd304d585d8a81462
BLAKE2b-256 checksum
How to use checksums
22b8e24ef68d5636fd04fb7463aa733f376b67cd1f7fef817e0231c413572ab0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / repodb-0.1.0-py3-none-any.whl

Download URL repodb-0.1.0-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
135d65c2fb4355ccd0bee74c8f5249c9c393a833232a94ad76a4c39c5cc07d78
BLAKE2b-256 checksum
How to use checksums
81f6a6b3dd0a653d47a79c43d5f102928b4579e03e7278a46311fe1fa36ff922
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for repodb 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page