instant-python 0.5.0__py3-none-any.whl → 0.5.2__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.
@@ -1,3 +1,4 @@
1
+ import sys
1
2
  from collections.abc import Callable
2
3
 
3
4
  import typer
@@ -26,5 +27,8 @@ class InstantPythonTyper(typer.Typer):
26
27
  try:
27
28
  super().__call__(*args, **kwargs)
28
29
  except Exception as error:
29
- callback = self.error_handlers.get(error.__class__.__base__)
30
- callback(error)
30
+ for registered_exc_type, handler in self.error_handlers.items():
31
+ if isinstance(error, registered_exc_type):
32
+ handler(error)
33
+ sys.exit(1)
34
+ raise
@@ -1,4 +1,4 @@
1
- # {{ project-slug }}
1
+ # {{ project_slug }}
2
2
 
3
3
  ## Description
4
4
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: instant-python
3
- Version: 0.5.0
3
+ Version: 0.5.2
4
4
  Summary: Instant boilerplate generation for Python projects
5
5
  Project-URL: documentation, https://dimanu-py.github.io/instant-python/
6
6
  Project-URL: repository, https://github.com/dimanu-py/instant-python/
@@ -1,7 +1,7 @@
1
1
  instant_python/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  instant_python/cli.py,sha256=seXa5ejBGG8dtEGakXRQLwurDKoRIZzEGWTY3gMcTZ4,957
3
3
  instant_python/folder_cli.py,sha256=kEVCuhq08v8ahdUTa3sA1v5B96xoMO4U6cGEcXHrZLo,1748
4
- instant_python/intant_python_typer.py,sha256=y5NUkpOXagH-9nEnb-APhwMZQyRPNAZITRCNDWJKQmE,966
4
+ instant_python/intant_python_typer.py,sha256=pUf29NDC2-EySEYK4mpsTSi7Ku6lS8LXo9S1_F6VUxs,1096
5
5
  instant_python/project_cli.py,sha256=aDYZZwpkMFN-J7UEKgvZQ9lXlKtr5e3ttdNzEtGslbw,3446
6
6
  instant_python/errors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  instant_python/errors/application_error.py,sha256=A2XOPci4b0gkpr0EEqSxpo6gWpPxGm2VjJksZRX3KOY,212
@@ -55,7 +55,7 @@ instant_python/templates/boilerplate/.gitignore,sha256=uViK8iDiHZGpnnvM3TpgrDwXl
55
55
  instant_python/templates/boilerplate/.pre-commit-config.yml,sha256=bOJLrQ_0LqFxHDZeJKbs2FDKE2lxnHzWtYM1CgLSDjM,823
56
56
  instant_python/templates/boilerplate/.python-version,sha256=YZMxU5G2EgDP3ZURqLP5qFjhq7-fqpQX7IUL9stt8_0,20
57
57
  instant_python/templates/boilerplate/LICENSE,sha256=rQvLuj_wsQA7R72dWoE9dgrJbeOlcFTzgJP6i4irhzM,47356
58
- instant_python/templates/boilerplate/README.md,sha256=N_UvKMIcfQSK7dQOk3xgqfY95iedSCMQXo7_n9PEnoQ,56
58
+ instant_python/templates/boilerplate/README.md,sha256=sVJCNZas-bBZLDQ3c-dFFN5KPxxFJrfx4kCdOKprX0c,56
59
59
  instant_python/templates/boilerplate/mypy.ini,sha256=RWGydwoR9HwmqIT3wzAqaQQ4qo_m2T3cwFIX6MmJ3YE,865
60
60
  instant_python/templates/boilerplate/pyproject.toml,sha256=zkfECqqNetKszcY9azjjFKuzpgpO5PATTQXB4cRoHMc,736
61
61
  instant_python/templates/boilerplate/pytest.ini,sha256=UKGay9Gune7ft1FAy1O4VyVmnuLunQW5YeZfcuOKTZg,249
@@ -155,8 +155,8 @@ instant_python/templates/project_structure/domain_driven_design/test.yml.j2,sha2
155
155
  instant_python/templates/project_structure/standard_project/main_structure.yml.j2,sha256=Tger29wWSQRqJ4NF8aIq5a3cb1sIm8CL5fyTAv-ZcbU,1306
156
156
  instant_python/templates/project_structure/standard_project/source.yml.j2,sha256=tqD9AsAAzPhulWmRrUW7k3F0eguhAKvNc_p5faQCfRg,1586
157
157
  instant_python/templates/project_structure/standard_project/test.yml.j2,sha256=wadDyJsuDlUecFPNu4RU2v34gOAlKFCQSL5z5U8rgdU,372
158
- instant_python-0.5.0.dist-info/METADATA,sha256=QUDokGny6-yiPPsMxqJ2Xhum8umkvI_2UdN_oDNMgX8,16211
159
- instant_python-0.5.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
160
- instant_python-0.5.0.dist-info/entry_points.txt,sha256=EdBTj3b3N9Pa4oNzPLPivE_AnMcQIFsmRC3RsSkoLLA,47
161
- instant_python-0.5.0.dist-info/licenses/LICENSE,sha256=kf7wA-1IsqXkzXjlsG95sdQJtsqUON_lNXombfPlklo,11353
162
- instant_python-0.5.0.dist-info/RECORD,,
158
+ instant_python-0.5.2.dist-info/METADATA,sha256=N2dQKDfRgU6ixG6mOxLyeICOwzvHatUa48tKIRe-KYo,16211
159
+ instant_python-0.5.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
160
+ instant_python-0.5.2.dist-info/entry_points.txt,sha256=EdBTj3b3N9Pa4oNzPLPivE_AnMcQIFsmRC3RsSkoLLA,47
161
+ instant_python-0.5.2.dist-info/licenses/LICENSE,sha256=kf7wA-1IsqXkzXjlsG95sdQJtsqUON_lNXombfPlklo,11353
162
+ instant_python-0.5.2.dist-info/RECORD,,