Skip to main content

A tool to stringify code using rsync and manage presets

Project description

Rstring

Rstring is a developer-friendly tool that uses Rsync to gather and stringify code and other text from specified files and directories. It offers features like preset management, interactive mode, and easy clipboard integration.

Features

  • Use Rsync to efficiently filter files and gather their contents
  • Save and manage presets for quick access to common configurations
  • Interactive mode for fine-tuning file selection
  • Automatic clipboard copying (with option to disable)
  • File preview options
  • Summary view with file tree

Developers

Create a venv and install dependencies:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt -r requirements-dev.txt

Installation

pip install rstring

Usage

Basic usage:

rstring [rsync_options]

For more options:

rstring --help

Examples

  1. Stringify all Python files in the current directory:

    rstring --include="*.py" --exclude="*" .
    
  2. Stringify a Next.js project and save a preset:

    rstring  --save-as-preset="nextjs" --include="*.js" --include="*.jsx" --include="*.ts" --include="*.tsx" \
    --exclude="node_modules" --exclude=".next" --exclude=".vercel" \
    --exclude=".git" --exclude=".vscode" --exclude=".idea" --exclude=".DS_Store" \
    --exclude="*.log"
    
  3. Use a saved preset:

    rstring -p my_preset
    
  4. Enter interactive mode:

    rstring -i
    

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

rstring-0.2.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

rstring-0.2.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file rstring-0.2.0.tar.gz.

File metadata

  • Download URL: rstring-0.2.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.9

File hashes

Hashes for rstring-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9b9e61932c9209a4660bd5857d7d975e674501f60250098163c404a82b84010e
MD5 d289edfe5572486482d266d2a8f4c280
BLAKE2b-256 aa01cd8e8f4aaf84dcc781852b05605e662e226a331405cc95fa8697aebaf589

See more details on using hashes here.

File details

Details for the file rstring-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: rstring-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.9

File hashes

Hashes for rstring-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0e29df616f5905212bd8b78313cc74f29aa76a5d2825287b8c0c45aa6c724c9c
MD5 ab9fe875249a18ab56dd0b31e3119337
BLAKE2b-256 80b4f28862f721e6703062c1e04ac7700a892e8a42929b3b34a650e391d0c017

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page