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
-
Stringify all Python files in the current directory:
rstring --include="*.py" --exclude="*" .
-
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"
-
Use a saved preset:
rstring -p my_preset
-
Enter interactive mode:
rstring -i
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b9e61932c9209a4660bd5857d7d975e674501f60250098163c404a82b84010e |
|
MD5 | d289edfe5572486482d266d2a8f4c280 |
|
BLAKE2b-256 | aa01cd8e8f4aaf84dcc781852b05605e662e226a331405cc95fa8697aebaf589 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e29df616f5905212bd8b78313cc74f29aa76a5d2825287b8c0c45aa6c724c9c |
|
MD5 | ab9fe875249a18ab56dd0b31e3119337 |
|
BLAKE2b-256 | 80b4f28862f721e6703062c1e04ac7700a892e8a42929b3b34a650e391d0c017 |