reposnap 0.2.1__tar.gz → 0.2.3__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.
Files changed (29) hide show
  1. {reposnap-0.2.1 → reposnap-0.2.3}/PKG-INFO +5 -26
  2. {reposnap-0.2.1 → reposnap-0.2.3}/README.md +4 -25
  3. {reposnap-0.2.1 → reposnap-0.2.3}/pyproject.toml +2 -2
  4. reposnap-0.2.1/tests/reposnap/__init__.py +0 -0
  5. {reposnap-0.2.1 → reposnap-0.2.3}/.gitignore +0 -0
  6. {reposnap-0.2.1 → reposnap-0.2.3}/.python-version +0 -0
  7. {reposnap-0.2.1 → reposnap-0.2.3}/LICENSE +0 -0
  8. {reposnap-0.2.1 → reposnap-0.2.3}/requirements-dev.lock +0 -0
  9. {reposnap-0.2.1 → reposnap-0.2.3}/requirements.lock +0 -0
  10. /reposnap-0.2.1/src/collect.py → /reposnap-0.2.3/src/reposnap/__init__.py +0 -0
  11. {reposnap-0.2.1/src/reposnap → reposnap-0.2.3/src/reposnap/core}/__init__.py +0 -0
  12. {reposnap-0.2.1 → reposnap-0.2.3}/src/reposnap/core/collector.py +0 -0
  13. {reposnap-0.2.1 → reposnap-0.2.3}/src/reposnap/core/file_system.py +0 -0
  14. {reposnap-0.2.1 → reposnap-0.2.3}/src/reposnap/core/git_repo.py +0 -0
  15. {reposnap-0.2.1 → reposnap-0.2.3}/src/reposnap/core/markdown_generator.py +0 -0
  16. {reposnap-0.2.1/src/reposnap/core → reposnap-0.2.3/src/reposnap/interfaces}/__init__.py +0 -0
  17. {reposnap-0.2.1 → reposnap-0.2.3}/src/reposnap/interfaces/cli.py +0 -0
  18. {reposnap-0.2.1/src/reposnap/interfaces → reposnap-0.2.3/src/reposnap/utils}/__init__.py +0 -0
  19. {reposnap-0.2.1 → reposnap-0.2.3}/src/reposnap/utils/path_utils.py +0 -0
  20. {reposnap-0.2.1/src/reposnap/utils → reposnap-0.2.3/tests}/__init__.py +0 -0
  21. {reposnap-0.2.1/tests → reposnap-0.2.3/tests/reposnap}/__init__.py +0 -0
  22. {reposnap-0.2.1 → reposnap-0.2.3}/tests/reposnap/test_cli.py +0 -0
  23. {reposnap-0.2.1 → reposnap-0.2.3}/tests/reposnap/test_collector.py +0 -0
  24. {reposnap-0.2.1 → reposnap-0.2.3}/tests/reposnap/test_file_system.py +0 -0
  25. {reposnap-0.2.1 → reposnap-0.2.3}/tests/reposnap/test_git_repo.py +0 -0
  26. {reposnap-0.2.1 → reposnap-0.2.3}/tests/reposnap/test_markdown_generator.py +0 -0
  27. {reposnap-0.2.1 → reposnap-0.2.3}/tests/reposnap/test_path_utils.py +0 -0
  28. {reposnap-0.2.1 → reposnap-0.2.3}/tests/resources/another_existing_file.py +0 -0
  29. {reposnap-0.2.1 → reposnap-0.2.3}/tests/resources/existing_file.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: reposnap
3
- Version: 0.2.1
3
+ Version: 0.2.3
4
4
  Summary: Generate a Markdown file with all contents of your project
5
5
  Author: agoloborodko
6
6
  License-File: LICENSE
@@ -18,8 +18,6 @@ Description-Content-Type: text/markdown
18
18
 
19
19
  ## Features
20
20
 
21
- - **Recursive Directory Traversal**: Automatically traverses through all subdirectories of the specified project root.
22
- - **File Exclusion**: Supports excluding specific files and directories using patterns similar to `.gitignore`.
23
21
  - **Syntax Highlighting**: Includes syntax highlighting for known file types in the generated Markdown file.
24
22
  - **Structure Only Option**: The `--structure-only` flag can be used to generate the Markdown file with just the directory structure, omitting the contents of the files.
25
23
 
@@ -27,7 +25,7 @@ Description-Content-Type: text/markdown
27
25
 
28
26
  ### Command-Line Interface
29
27
 
30
- To use the `collect.py` script, run it with the following options:
28
+ To use `reposnap`, run it with the following options:
31
29
 
32
30
  ```bash
33
31
  reposnap [-h] [-o OUTPUT] [--structure-only] [--debug] path
@@ -44,48 +42,29 @@ reposnap [-h] [-o OUTPUT] [--structure-only] [--debug] path
44
42
  1. **Generate a full project structure with file contents**:
45
43
 
46
44
  ```bash
47
- python -m collect my_project/
45
+ reposnap .
48
46
  ```
49
47
 
50
48
  2. **Generate a project structure only**:
51
49
 
52
50
  ```bash
53
- python -m collect my_project/ --structure-only
51
+ reposnap my_project/ --structure-only
54
52
  ```
55
53
 
56
54
  3. **Generate a Markdown file excluding certain files and directories**:
57
55
 
58
56
  ```bash
59
- python -m collect my_project/ -e '*.log' -e 'build/' -o output.md
60
- ```
61
-
62
- 4. **Use exclusion patterns from a `.gitignore` file**:
63
-
64
- ```bash
65
- python -m collect my_project/ -x .gitignore
57
+ reposnap my_project/ -o output.md
66
58
  ```
67
59
 
68
60
  ## Testing
69
61
 
70
- This project includes unit tests to ensure the correctness of the code:
71
-
72
- - **`test_collect.py`**: Tests the `file_extension_to_language` function, verifying that file extensions are correctly mapped to programming languages for syntax highlighting in the Markdown file.
73
- - **`test_cli.py`**: Tests the command-line interface of the `collect.py` script, including the `--structure-only` flag.
74
-
75
- ### Running the Tests
76
-
77
62
  To run the tests, use `rye`:
78
63
 
79
64
  ```bash
80
65
  rye test
81
66
  ```
82
67
 
83
- This will execute all test cases and provide a summary of the results.
84
-
85
- ## Dependencies
86
-
87
- This project uses standard Python libraries and does not require any external dependencies.
88
-
89
68
  ## License
90
69
 
91
70
  This project is licensed under the MIT License.
@@ -6,8 +6,6 @@
6
6
 
7
7
  ## Features
8
8
 
9
- - **Recursive Directory Traversal**: Automatically traverses through all subdirectories of the specified project root.
10
- - **File Exclusion**: Supports excluding specific files and directories using patterns similar to `.gitignore`.
11
9
  - **Syntax Highlighting**: Includes syntax highlighting for known file types in the generated Markdown file.
12
10
  - **Structure Only Option**: The `--structure-only` flag can be used to generate the Markdown file with just the directory structure, omitting the contents of the files.
13
11
 
@@ -15,7 +13,7 @@
15
13
 
16
14
  ### Command-Line Interface
17
15
 
18
- To use the `collect.py` script, run it with the following options:
16
+ To use `reposnap`, run it with the following options:
19
17
 
20
18
  ```bash
21
19
  reposnap [-h] [-o OUTPUT] [--structure-only] [--debug] path
@@ -32,48 +30,29 @@ reposnap [-h] [-o OUTPUT] [--structure-only] [--debug] path
32
30
  1. **Generate a full project structure with file contents**:
33
31
 
34
32
  ```bash
35
- python -m collect my_project/
33
+ reposnap .
36
34
  ```
37
35
 
38
36
  2. **Generate a project structure only**:
39
37
 
40
38
  ```bash
41
- python -m collect my_project/ --structure-only
39
+ reposnap my_project/ --structure-only
42
40
  ```
43
41
 
44
42
  3. **Generate a Markdown file excluding certain files and directories**:
45
43
 
46
44
  ```bash
47
- python -m collect my_project/ -e '*.log' -e 'build/' -o output.md
48
- ```
49
-
50
- 4. **Use exclusion patterns from a `.gitignore` file**:
51
-
52
- ```bash
53
- python -m collect my_project/ -x .gitignore
45
+ reposnap my_project/ -o output.md
54
46
  ```
55
47
 
56
48
  ## Testing
57
49
 
58
- This project includes unit tests to ensure the correctness of the code:
59
-
60
- - **`test_collect.py`**: Tests the `file_extension_to_language` function, verifying that file extensions are correctly mapped to programming languages for syntax highlighting in the Markdown file.
61
- - **`test_cli.py`**: Tests the command-line interface of the `collect.py` script, including the `--structure-only` flag.
62
-
63
- ### Running the Tests
64
-
65
50
  To run the tests, use `rye`:
66
51
 
67
52
  ```bash
68
53
  rye test
69
54
  ```
70
55
 
71
- This will execute all test cases and provide a summary of the results.
72
-
73
- ## Dependencies
74
-
75
- This project uses standard Python libraries and does not require any external dependencies.
76
-
77
56
  ## License
78
57
 
79
58
  This project is licensed under the MIT License.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "reposnap"
3
- version = "0.2.1"
3
+ version = "0.2.3"
4
4
  description = "Generate a Markdown file with all contents of your project"
5
5
  authors = [
6
6
  { name = "agoloborodko" }
@@ -30,4 +30,4 @@ allow-direct-references = true
30
30
  packages = ["src/reposnap"]
31
31
 
32
32
  [project.scripts]
33
- reposnap = "collect:main"
33
+ reposnap = "reposnap:main"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes