Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.8.0 instead.

RepoSnap

Overview

reposnap is a Python script designed to generate a Markdown file that documents the structure and contents of a git project. This tool is particularly useful for creating a quick overview of a project's file hierarchy, including optional syntax-highlighted code snippets.

Features

  • Syntax Highlighting: Includes syntax highlighting for known file types in the generated Markdown file.
  • Structure Only Option: The --structure-only flag can be used to generate the Markdown file with just the directory structure, omitting the contents of the files.

Usage

Command-Line Interface

To use reposnap, run it with the following options:

reposnap [-h] [-o OUTPUT] [--structure-only] [--debug] path
  • path: Path to the Git repository root folder
  • -h, --help: show help message and exit
  • -o, --output: The name of the output Markdown file. Defaults to output.md.
  • --structure-only: Generate a Markdown file that includes only the project structure, without file contents.
  • --debug: Enable debug-level logging.

Examples

  1. Generate a full project structure with file contents:

    reposnap .
    
  2. Generate a project structure only:

    reposnap my_project/ --structure-only
    
  3. Generate a Markdown file excluding certain files and directories:

    reposnap my_project/ -o output.md
    

Testing

To run the tests, use rye:

rye test

License

This project is licensed under the MIT License.

Metadata

Release files for reposnap 0.2.3

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

Source distribution (sdist)

Source distribution for reposnap 0.2.3
File Size Uploaded Provenance
reposnap-0.2.3.tar.gz 7.4 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 15.0 kB

Release files / reposnap-0.2.3.tar.gz

Download URL reposnap-0.2.3.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5fececd658329c2841130b3748d0161835b20385ad6a067858eb2aec06997832
BLAKE2b-256 checksum
How to use checksums
350842a19618acd57ef5a321333267e7360115bb8180055038ebe835f5628ab3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / reposnap-0.2.3-py3-none-any.whl

Download URL reposnap-0.2.3-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5de373999d24ab8fb06333790ea07fbd59c625d3dbca557f9b4f59f01ee2280a
BLAKE2b-256 checksum
How to use checksums
d8e73154dd55cf5ca77c88f1ee6f6e513c944cfb511f48a17bfea8409932b0ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Security for reposnap 0.2.3

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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