Extensible code concatenator and clipboard tool
Project description
cbler
Concatenate code into your clipboard with filters.
cbler is a CLI tool for extracting source files, filtering them, and copying the result to your clipboard.
- Built with Typer
- Rich output
- Multi-flag filtering
- Regex support
- Designed for piping code into ChatGPT or similar
Install
pip install cbler
Usage
cbler code gml . --contains Step
cbler code py . --not-suffix .test.py .old.py --prefix util_
Filters the files, copies them to your clipboard, prints a tree of what got included, and shows a summary panel.
Filters (all optional)
Each of these accepts multiple values and regex patterns:
--prefix,--not-prefix--suffix,--not-suffix--contains,--not-contains--path-contains,--not-path-contains--parent-contains,--not-parent-contains(matches immediate folder only)
Examples
All .gml and .yy scripts under weather-related GameMaker objects:
cbler code gml . --path-contains Weather
All Python files that aren't test files:
cbler code py . --not-parent-contains test --not-suffix _test.py
Python utility scripts:
cbler code py . --parent-contains utils helpers
Output
- Copies code to your clipboard using
pyperclip - Shows a Rich tree of included files
- Summary panel shows copied and skipped counts
CLI Layout
cbler code gml [path] [filters]
cbler code py [path] [filters]
cbler git log [repo] [count]
Roadmap
-
--max-fileslimit with confirmation - Progress bar
-
--outputfor saving to file - Show skipped files with reasons
Dev install
uv pip install -e .
cbler code py . --suffix .py
License
MIT
Name
"cbler" = clipboard + -ler
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cbler-1.0.0.tar.gz.
File metadata
- Download URL: cbler-1.0.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfe29f690eff992873a16817cd4b0c76d7bd734f3848de9769fea4242b068fa2
|
|
| MD5 |
9ca8513a60f72c208fd40d3d74e04d42
|
|
| BLAKE2b-256 |
25386f7459c47a62e2f6a657012d97c1ef44887b7f093ce2f5414e502f299062
|
Provenance
The following attestation bundles were made for cbler-1.0.0.tar.gz:
Publisher:
workflow.yml on Gaburyuu/CBler
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cbler-1.0.0.tar.gz -
Subject digest:
bfe29f690eff992873a16817cd4b0c76d7bd734f3848de9769fea4242b068fa2 - Sigstore transparency entry: 275636718
- Sigstore integration time:
-
Permalink:
Gaburyuu/CBler@4d142a2f617ded7e274baeba1510666805f2200e -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/Gaburyuu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@4d142a2f617ded7e274baeba1510666805f2200e -
Trigger Event:
push
-
Statement type:
File details
Details for the file cbler-1.0.0-py3-none-any.whl.
File metadata
- Download URL: cbler-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1b8f363fc124b14fa4e3d1aeb3fda5c47d1d75b5c79f4d1fdeee9b80db5a1b0
|
|
| MD5 |
d603a26dcf707785b2cfab9033a72bdb
|
|
| BLAKE2b-256 |
b6e1bc45ca12d9e1e08b8fc7462db8626221b2d8fefd7213330e7922072fc936
|
Provenance
The following attestation bundles were made for cbler-1.0.0-py3-none-any.whl:
Publisher:
workflow.yml on Gaburyuu/CBler
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cbler-1.0.0-py3-none-any.whl -
Subject digest:
d1b8f363fc124b14fa4e3d1aeb3fda5c47d1d75b5c79f4d1fdeee9b80db5a1b0 - Sigstore transparency entry: 275636723
- Sigstore integration time:
-
Permalink:
Gaburyuu/CBler@4d142a2f617ded7e274baeba1510666805f2200e -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/Gaburyuu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@4d142a2f617ded7e274baeba1510666805f2200e -
Trigger Event:
push
-
Statement type: