kopipasta 0.9.0__py3-none-any.whl → 0.10.0__py3-none-any.whl
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/main.py +1 -1
- {kopipasta-0.9.0.dist-info → kopipasta-0.10.0.dist-info}/METADATA +4 -2
- kopipasta-0.10.0.dist-info/RECORD +8 -0
- kopipasta-0.9.0.dist-info/RECORD +0 -8
- {kopipasta-0.9.0.dist-info → kopipasta-0.10.0.dist-info}/LICENSE +0 -0
- {kopipasta-0.9.0.dist-info → kopipasta-0.10.0.dist-info}/WHEEL +0 -0
- {kopipasta-0.9.0.dist-info → kopipasta-0.10.0.dist-info}/entry_points.txt +0 -0
- {kopipasta-0.9.0.dist-info → kopipasta-0.10.0.dist-info}/top_level.txt +0 -0
kopipasta/main.py
CHANGED
|
@@ -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,7 +374,6 @@ def select_file_patches(file_path):
|
|
|
373
374
|
total_char_count += len(chunk_code)
|
|
374
375
|
break
|
|
375
376
|
elif choice == 'n':
|
|
376
|
-
placeholder = get_placeholder_comment(language)
|
|
377
377
|
if not chunks or chunks[-1] != placeholder:
|
|
378
378
|
chunks.append(placeholder)
|
|
379
379
|
total_char_count += len(placeholder)
|
|
@@ -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):
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
kopipasta/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
kopipasta/main.py,sha256=JBVB1IEVs11XYZ0K98WACDTAH9CYSdVtehvX4Z8tmYU,28029
|
|
3
|
+
kopipasta-0.10.0.dist-info/LICENSE,sha256=xw4C9TAU7LFu4r_MwSbky90uzkzNtRwAo3c51IWR8lk,1091
|
|
4
|
+
kopipasta-0.10.0.dist-info/METADATA,sha256=TZx-QEJGaEvF-kuPQRr1E1HKTADb37H3salKkj6o_Do,5646
|
|
5
|
+
kopipasta-0.10.0.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
6
|
+
kopipasta-0.10.0.dist-info/entry_points.txt,sha256=but54qDNz1-F8fVvGstq_QID5tHjczP7bO7rWLFkc6Y,50
|
|
7
|
+
kopipasta-0.10.0.dist-info/top_level.txt,sha256=iXohixMuCdw8UjGDUp0ouICLYBDrx207sgZIJ9lxn0o,10
|
|
8
|
+
kopipasta-0.10.0.dist-info/RECORD,,
|
kopipasta-0.9.0.dist-info/RECORD
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
kopipasta/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
kopipasta/main.py,sha256=93Fl1ofRap1ttgXCku9U_pDNwMFYAQE-Xlh-6SJoDcc,28041
|
|
3
|
-
kopipasta-0.9.0.dist-info/LICENSE,sha256=xw4C9TAU7LFu4r_MwSbky90uzkzNtRwAo3c51IWR8lk,1091
|
|
4
|
-
kopipasta-0.9.0.dist-info/METADATA,sha256=uXaquwx6at46Y8OP92jsoX3dO63yNTtLTy00p0FP3mw,5431
|
|
5
|
-
kopipasta-0.9.0.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
6
|
-
kopipasta-0.9.0.dist-info/entry_points.txt,sha256=but54qDNz1-F8fVvGstq_QID5tHjczP7bO7rWLFkc6Y,50
|
|
7
|
-
kopipasta-0.9.0.dist-info/top_level.txt,sha256=iXohixMuCdw8UjGDUp0ouICLYBDrx207sgZIJ9lxn0o,10
|
|
8
|
-
kopipasta-0.9.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|