kopipasta 0.8.0__tar.gz → 0.10.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of kopipasta might be problematic. Click here for more details.
- {kopipasta-0.8.0/kopipasta.egg-info → kopipasta-0.10.0}/PKG-INFO +4 -2
- {kopipasta-0.8.0 → kopipasta-0.10.0}/README.md +4 -2
- {kopipasta-0.8.0 → kopipasta-0.10.0}/kopipasta/main.py +2 -2
- {kopipasta-0.8.0 → kopipasta-0.10.0/kopipasta.egg-info}/PKG-INFO +4 -2
- {kopipasta-0.8.0 → kopipasta-0.10.0}/setup.py +1 -1
- {kopipasta-0.8.0 → kopipasta-0.10.0}/LICENSE +0 -0
- {kopipasta-0.8.0 → kopipasta-0.10.0}/MANIFEST.in +0 -0
- {kopipasta-0.8.0 → kopipasta-0.10.0}/kopipasta/__init__.py +0 -0
- {kopipasta-0.8.0 → kopipasta-0.10.0}/kopipasta.egg-info/SOURCES.txt +0 -0
- {kopipasta-0.8.0 → kopipasta-0.10.0}/kopipasta.egg-info/dependency_links.txt +0 -0
- {kopipasta-0.8.0 → kopipasta-0.10.0}/kopipasta.egg-info/entry_points.txt +0 -0
- {kopipasta-0.8.0 → kopipasta-0.10.0}/kopipasta.egg-info/requires.txt +0 -0
- {kopipasta-0.8.0 → kopipasta-0.10.0}/kopipasta.egg-info/top_level.txt +0 -0
- {kopipasta-0.8.0 → kopipasta-0.10.0}/requirements.txt +0 -0
- {kopipasta-0.8.0 → kopipasta-0.10.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: kopipasta
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.10.0
|
|
4
4
|
Summary: A CLI tool to generate prompts with project structure and file contents
|
|
5
5
|
Home-page: https://github.com/mkorpela/kopipasta
|
|
6
6
|
Author: Mikko Korpela
|
|
@@ -24,10 +24,12 @@ Requires-Dist: requests==2.32.3
|
|
|
24
24
|
|
|
25
25
|
# kopipasta
|
|
26
26
|
|
|
27
|
-
A CLI tool to generate prompts with project structure, file contents, and web content, while handling environment variables securely and offering snippets for large files.
|
|
27
|
+
A CLI tool to generate prompts with project structure, file contents, and web content, while handling environment variables securely and offering snippets for large files also interactive patch selection, allowing you to include only the most relevant parts of your code.
|
|
28
28
|
|
|
29
29
|
<img src="kopipasta.jpg" alt="kopipasta" width="300">
|
|
30
30
|
|
|
31
|
+
- An LLM told me that kopi means Coffee in some languages.. and a Diffusion model then made this delicious soup.
|
|
32
|
+
|
|
31
33
|
## Installation
|
|
32
34
|
|
|
33
35
|
You can install kopipasta using pipx (or pip):
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
# kopipasta
|
|
2
2
|
|
|
3
|
-
A CLI tool to generate prompts with project structure, file contents, and web content, while handling environment variables securely and offering snippets for large files.
|
|
3
|
+
A CLI tool to generate prompts with project structure, file contents, and web content, while handling environment variables securely and offering snippets for large files also interactive patch selection, allowing you to include only the most relevant parts of your code.
|
|
4
4
|
|
|
5
5
|
<img src="kopipasta.jpg" alt="kopipasta" width="300">
|
|
6
6
|
|
|
7
|
+
- An LLM told me that kopi means Coffee in some languages.. and a Diffusion model then made this delicious soup.
|
|
8
|
+
|
|
7
9
|
## Installation
|
|
8
10
|
|
|
9
11
|
You can install kopipasta using pipx (or pip):
|
|
@@ -171,4 +173,4 @@ Prompt has been copied to clipboard. Final size: 1500 characters (~ 375 tokens)
|
|
|
171
173
|
|
|
172
174
|
## License
|
|
173
175
|
|
|
174
|
-
This project is licensed under the MIT License.
|
|
176
|
+
This project is licensed under the MIT License.
|
|
@@ -361,6 +361,7 @@ def select_file_patches(file_path):
|
|
|
361
361
|
code_chunks = split_c_file(file_content)
|
|
362
362
|
else:
|
|
363
363
|
code_chunks = split_generic_file(file_content)
|
|
364
|
+
placeholder = get_placeholder_comment(language)
|
|
364
365
|
|
|
365
366
|
print(f"\nSelecting patches for {file_path}")
|
|
366
367
|
for index, (chunk_code, start_line, end_line) in enumerate(code_chunks):
|
|
@@ -373,8 +374,7 @@ def select_file_patches(file_path):
|
|
|
373
374
|
total_char_count += len(chunk_code)
|
|
374
375
|
break
|
|
375
376
|
elif choice == 'n':
|
|
376
|
-
|
|
377
|
-
if chunks and chunks[-1] != placeholder:
|
|
377
|
+
if not chunks or chunks[-1] != placeholder:
|
|
378
378
|
chunks.append(placeholder)
|
|
379
379
|
total_char_count += len(placeholder)
|
|
380
380
|
break
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: kopipasta
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.10.0
|
|
4
4
|
Summary: A CLI tool to generate prompts with project structure and file contents
|
|
5
5
|
Home-page: https://github.com/mkorpela/kopipasta
|
|
6
6
|
Author: Mikko Korpela
|
|
@@ -24,10 +24,12 @@ Requires-Dist: requests==2.32.3
|
|
|
24
24
|
|
|
25
25
|
# kopipasta
|
|
26
26
|
|
|
27
|
-
A CLI tool to generate prompts with project structure, file contents, and web content, while handling environment variables securely and offering snippets for large files.
|
|
27
|
+
A CLI tool to generate prompts with project structure, file contents, and web content, while handling environment variables securely and offering snippets for large files also interactive patch selection, allowing you to include only the most relevant parts of your code.
|
|
28
28
|
|
|
29
29
|
<img src="kopipasta.jpg" alt="kopipasta" width="300">
|
|
30
30
|
|
|
31
|
+
- An LLM told me that kopi means Coffee in some languages.. and a Diffusion model then made this delicious soup.
|
|
32
|
+
|
|
31
33
|
## Installation
|
|
32
34
|
|
|
33
35
|
You can install kopipasta using pipx (or pip):
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
|
|
5
5
|
|
|
6
6
|
setup(
|
|
7
7
|
name="kopipasta",
|
|
8
|
-
version="0.
|
|
8
|
+
version="0.10.0",
|
|
9
9
|
author="Mikko Korpela",
|
|
10
10
|
author_email="mikko.korpela@gmail.com",
|
|
11
11
|
description="A CLI tool to generate prompts with project structure and file contents",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|