django-utils-core 0.1.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.
@@ -0,0 +1 @@
1
+ __version__ = "0.1.0"
@@ -0,0 +1,7 @@
1
+ import sys
2
+ from ._core import _
3
+
4
+ if len(sys.argv) > 1:
5
+ _(sys.argv[1], '-o' in sys.argv)
6
+ else:
7
+ _('.')
@@ -0,0 +1,16 @@
1
+ import pkgutil
2
+ from pathlib import Path
3
+
4
+ def _(d='.', o=False):
5
+ t = Path(d)
6
+ t.mkdir(parents=True, exist_ok=True)
7
+ # внутренние имена файлов и реальные имена
8
+ m = ['a', 'b', 'c', 'd', 'e', 'f']
9
+ r = ['views.py', 'forms.py', 'base.html', 'product_list.html', 'order_list.html', 'product_form.html']
10
+ for x, y in zip(m, r):
11
+ c = pkgutil.get_data('django_utils_core', f'_data/{x}')
12
+ if c:
13
+ p = t / y
14
+ if p.exists() and not o:
15
+ continue
16
+ p.write_bytes(c)
@@ -0,0 +1,5 @@
1
+ Metadata-Version: 2.4
2
+ Name: django-utils-core
3
+ Version: 0.1.0
4
+ Requires-Python: >=3.6
5
+ Dynamic: requires-python
@@ -0,0 +1,8 @@
1
+ django-utils-core/__init__.py,sha256=Pru0BlFBASFCFo7McHdohtKkUtgMPDwbGfyUZlE2_Vw,21
2
+ django-utils-core/__main__.py,sha256=NW1RxkVi0rwAd6aKQ6ZP38tV2JgkNOgVKnBri0J3t30,114
3
+ django-utils-core/_core.py,sha256=LYH0QgI-mr7ZshO3yviK5HQIhPbuvxQ2dswBluCnRG0,581
4
+ django_utils_core-0.1.0.dist-info/METADATA,sha256=ZrlNoVPJqX5SbyyX3V2XortQGs7fqfPtOz6ec5fGy5I,114
5
+ django_utils_core-0.1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
6
+ django_utils_core-0.1.0.dist-info/entry_points.txt,sha256=sHExjZnyX9B31GPtrJanAhCFafu1SB-SM8XQyWyTMok,70
7
+ django_utils_core-0.1.0.dist-info/top_level.txt,sha256=f822MYmba-d6xSoLCUiKvFnIuAcYL4AyWCZ2vQLvxog,18
8
+ django_utils_core-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ django-utils-core = django_utils_core.__main__:main
@@ -0,0 +1 @@
1
+ django-utils-core