crpy-tools 0.1.0__py3-none-any.whl → 0.1.1__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.
crpy_tools/__main__.py CHANGED
@@ -701,7 +701,7 @@ def process_file(input_path, output_path=None, remove_docstrings=False):
701
701
  except Exception as e:
702
702
  print(f"Error processing {input_path}: {e}", file=sys.stderr)
703
703
 
704
- if __name__ == "__main__":
704
+ def main():
705
705
  # Check if we should run CLI or GUI
706
706
  if len(sys.argv) > 1:
707
707
  main_cli()
@@ -709,4 +709,7 @@ if __name__ == "__main__":
709
709
  app = QApplication(sys.argv)
710
710
  window = PythonCommentRemoverGUI()
711
711
  window.show()
712
- sys.exit(app.exec())
712
+ sys.exit(app.exec())
713
+
714
+ if __name__ == "__main__":
715
+ main()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: crpy-tools
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: A CLI and GUI tool built with PySide6
5
5
  Author-email: Youness <bouness@live.com>
6
6
  License: MIT License
@@ -33,11 +33,11 @@ License-File: LICENSE
33
33
  Requires-Dist: PySide6
34
34
  Dynamic: license-file
35
35
 
36
- # crpy-tools - Comment Removal Tools for Python
36
+ # crpy - Comment Removal for Python
37
37
 
38
38
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
39
39
 
40
- crpy-tools is a powerful tool for removing comments from Python files while preserving code structure and indentation. It offers both command-line interface (CLI) and graphical user interface (GUI) options for maximum flexibility.
40
+ crpy is a powerful tool for removing comments from Python files while preserving code structure and indentation. It offers both command-line interface (CLI) and graphical user interface (GUI) options for maximum flexibility.
41
41
 
42
42
  ## Features
43
43
 
@@ -56,6 +56,15 @@ crpy-tools is a powerful tool for removing comments from Python files while pres
56
56
  - Python 3.7+
57
57
  - PySide6 (for GUI)
58
58
 
59
- ### Install from PyPI (coming soon)
59
+ ### Install from PyPI
60
60
  ```bash
61
61
  pip install crpy-tools
62
+ ```
63
+ ### Example usage
64
+ ```bash
65
+ # show help
66
+ crpy -h
67
+
68
+ # remove all comments from script.py
69
+ crpy script.py -o script_min.py -d
70
+ ```
@@ -0,0 +1,8 @@
1
+ crpy_tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ crpy_tools/__main__.py,sha256=dfkXCfAqoMQhr2c9mOaTYIfZkaCObiIs0Csm7roYcWM,27884
3
+ crpy_tools-0.1.1.dist-info/licenses/LICENSE,sha256=ycGfGJQReW5XXQVky8McdTrK08nQl-8syyliPWs4um4,1064
4
+ crpy_tools-0.1.1.dist-info/METADATA,sha256=xwRnqgSA4xvfrhCb_9ksafF72mxZgxK_5bl0RsCnwD4,2624
5
+ crpy_tools-0.1.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
+ crpy_tools-0.1.1.dist-info/entry_points.txt,sha256=Ok2tIUIhMWHzgkFb__VcTZrhN_y7VfaUwQAn1udBRpY,50
7
+ crpy_tools-0.1.1.dist-info/top_level.txt,sha256=IhSovdJjsYka5fMk1UtriFWEIA7TEJawqtWeDoLbs_k,11
8
+ crpy_tools-0.1.1.dist-info/RECORD,,
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ crpy = crpy_tools.__main__:main
@@ -1,8 +0,0 @@
1
- crpy_tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- crpy_tools/__main__.py,sha256=PoykFVygE2G_egt6aMEPXcb1mjai9seo2at2FxrFhg0,27860
3
- crpy_tools-0.1.0.dist-info/licenses/LICENSE,sha256=ycGfGJQReW5XXQVky8McdTrK08nQl-8syyliPWs4um4,1064
4
- crpy_tools-0.1.0.dist-info/METADATA,sha256=zqWJv9K2c9AMGDlwX2Ni88wtvyLJdjpaV8srS8L7lqs,2529
5
- crpy_tools-0.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
- crpy_tools-0.1.0.dist-info/entry_points.txt,sha256=Fmll3eYvcMiaJURtKWcYKaU6pmyS--2qFwrMtBUKVkY,44
7
- crpy_tools-0.1.0.dist-info/top_level.txt,sha256=IhSovdJjsYka5fMk1UtriFWEIA7TEJawqtWeDoLbs_k,11
8
- crpy_tools-0.1.0.dist-info/RECORD,,
@@ -1,2 +0,0 @@
1
- [console_scripts]
2
- crpy = crpy.__main__:main