django-app-Parfaite 0.1.0__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.
@@ -0,0 +1,41 @@
1
+ Metadata-Version: 2.4
2
+ Name: django-app-Parfaite
3
+ Version: 0.1.0
4
+ Summary: Générateur de structure d'app Django personnalisée
5
+ Author: ParfaiteSekongo
6
+ Author-email: p88971582@gmail.com
7
+ License: MIT
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Framework :: Django
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Description-Content-Type: text/markdown
12
+ Dynamic: author
13
+ Dynamic: author-email
14
+ Dynamic: classifier
15
+ Dynamic: description
16
+ Dynamic: description-content-type
17
+ Dynamic: license
18
+ Dynamic: summary
19
+
20
+ # django-app-creator
21
+
22
+ `django-app-creator` est un outil en ligne de commande qui permet de générer rapidement la structure d'une application Django avec une organisation de fichiers personnalisée.
23
+
24
+ ## Fonctionnalités
25
+
26
+ - Crée automatiquement une application Django avec la structure suivante :
27
+ - Un dossier `models/` contenant un fichier `__init__.py`
28
+ - Un dossier `views/` contenant un fichier `__init__.py`
29
+ - Un dossier `migrations/` contenant un fichier `__init__.py`
30
+ - Un fichier `urls.py` prêt à l'emploi
31
+ - Les fichiers standards : `admin.py`, `apps.py`, `tests.py`, `__init__.py`
32
+
33
+ ## Installation
34
+
35
+ Assurez-vous d’avoir Python 3 et `pip` installés, puis exécutez :
36
+
37
+ ```bash
38
+ pip install django-app-Parfaite
39
+
40
+ ## Utilisation
41
+ createapp <nom_de_l_app>
@@ -0,0 +1,22 @@
1
+ # django-app-creator
2
+
3
+ `django-app-creator` est un outil en ligne de commande qui permet de générer rapidement la structure d'une application Django avec une organisation de fichiers personnalisée.
4
+
5
+ ## Fonctionnalités
6
+
7
+ - Crée automatiquement une application Django avec la structure suivante :
8
+ - Un dossier `models/` contenant un fichier `__init__.py`
9
+ - Un dossier `views/` contenant un fichier `__init__.py`
10
+ - Un dossier `migrations/` contenant un fichier `__init__.py`
11
+ - Un fichier `urls.py` prêt à l'emploi
12
+ - Les fichiers standards : `admin.py`, `apps.py`, `tests.py`, `__init__.py`
13
+
14
+ ## Installation
15
+
16
+ Assurez-vous d’avoir Python 3 et `pip` installés, puis exécutez :
17
+
18
+ ```bash
19
+ pip install django-app-Parfaite
20
+
21
+ ## Utilisation
22
+ createapp <nom_de_l_app>
File without changes
@@ -0,0 +1,54 @@
1
+ import os
2
+ import sys
3
+
4
+ def create_app(app_name):
5
+ os.makedirs(app_name, exist_ok=True)
6
+ os.makedirs(f"{app_name}/models", exist_ok=True)
7
+ os.makedirs(f"{app_name}/views", exist_ok=True)
8
+ os.makedirs(f"{app_name}/migrations", exist_ok=True)
9
+
10
+ # Fichiers de base
11
+ with open(f"{app_name}/__init__.py", "w"): pass
12
+
13
+ with open(f"{app_name}/models/__init__.py", "w") as f:
14
+ f.write("# models here\n")
15
+
16
+ with open(f"{app_name}/views/__init__.py", "w") as f:
17
+ f.write("# views here\n")
18
+
19
+ with open(f"{app_name}/migrations/__init__.py", "w") as f:
20
+ pass # Fichier vide requis pour marquer le dossier comme un package Python
21
+
22
+ with open(f"{app_name}/urls.py", "w") as f:
23
+ f.write(
24
+ "from django.urls import path\n\n"
25
+ "urlpatterns = [\n"
26
+ " # path('', views.index, name='index'),\n"
27
+ "]\n"
28
+ )
29
+
30
+ with open(f"{app_name}/admin.py", "w") as f:
31
+ f.write("from django.contrib import admin\n\n# Register your models here.\n")
32
+
33
+ with open(f"{app_name}/apps.py", "w") as f:
34
+ class_name = app_name.capitalize() + "Config"
35
+ f.write(
36
+ "from django.apps import AppConfig\n\n"
37
+ f"class {class_name}(AppConfig):\n"
38
+ f" default_auto_field = 'django.db.models.BigAutoField'\n"
39
+ f" name = '{app_name}'\n"
40
+ )
41
+
42
+ with open(f"{app_name}/tests.py", "w") as f:
43
+ f.write(
44
+ "from django.test import TestCase\n\n"
45
+ "# Create your tests here.\n"
46
+ )
47
+
48
+ print(f"App Django '{app_name}' créée avec succès !")
49
+
50
+ def main():
51
+ if len(sys.argv) < 2:
52
+ print("Usage : django-create-app <nom_app>")
53
+ else:
54
+ create_app(sys.argv[1])
@@ -0,0 +1,41 @@
1
+ Metadata-Version: 2.4
2
+ Name: django-app-Parfaite
3
+ Version: 0.1.0
4
+ Summary: Générateur de structure d'app Django personnalisée
5
+ Author: ParfaiteSekongo
6
+ Author-email: p88971582@gmail.com
7
+ License: MIT
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Framework :: Django
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Description-Content-Type: text/markdown
12
+ Dynamic: author
13
+ Dynamic: author-email
14
+ Dynamic: classifier
15
+ Dynamic: description
16
+ Dynamic: description-content-type
17
+ Dynamic: license
18
+ Dynamic: summary
19
+
20
+ # django-app-creator
21
+
22
+ `django-app-creator` est un outil en ligne de commande qui permet de générer rapidement la structure d'une application Django avec une organisation de fichiers personnalisée.
23
+
24
+ ## Fonctionnalités
25
+
26
+ - Crée automatiquement une application Django avec la structure suivante :
27
+ - Un dossier `models/` contenant un fichier `__init__.py`
28
+ - Un dossier `views/` contenant un fichier `__init__.py`
29
+ - Un dossier `migrations/` contenant un fichier `__init__.py`
30
+ - Un fichier `urls.py` prêt à l'emploi
31
+ - Les fichiers standards : `admin.py`, `apps.py`, `tests.py`, `__init__.py`
32
+
33
+ ## Installation
34
+
35
+ Assurez-vous d’avoir Python 3 et `pip` installés, puis exécutez :
36
+
37
+ ```bash
38
+ pip install django-app-Parfaite
39
+
40
+ ## Utilisation
41
+ createapp <nom_de_l_app>
@@ -0,0 +1,12 @@
1
+ README.md
2
+ setup.py
3
+ app_creator/__init__.py
4
+ app_creator/cli.py
5
+ django_app_Parfaite.egg-info/PKG-INFO
6
+ django_app_Parfaite.egg-info/SOURCES.txt
7
+ django_app_Parfaite.egg-info/dependency_links.txt
8
+ django_app_Parfaite.egg-info/entry_points.txt
9
+ django_app_Parfaite.egg-info/top_level.txt
10
+ migrations/__init__.py
11
+ models/__init__.py
12
+ views/__init__.py
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ createapp = app_creator.cli:main
@@ -0,0 +1,4 @@
1
+ app_creator
2
+ migrations
3
+ models
4
+ views
File without changes
File without changes
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,25 @@
1
+ from setuptools import setup, find_packages
2
+
3
+ setup(
4
+ name='django-app-Parfaite',
5
+ version='0.1.0',
6
+ packages=find_packages(),
7
+ include_package_data=True,
8
+ license='MIT',
9
+ description='Générateur de structure d\'app Django personnalisée',
10
+ long_description=open('README.md', encoding='utf-8').read(),
11
+ long_description_content_type='text/markdown',
12
+ author='ParfaiteSekongo',
13
+ author_email='p88971582@gmail.com',
14
+ entry_points={
15
+ 'console_scripts': [
16
+ 'createapp = app_creator.cli:main',
17
+ ],
18
+ },
19
+ classifiers=[
20
+ 'Programming Language :: Python :: 3',
21
+ 'Framework :: Django',
22
+ 'License :: OSI Approved :: MIT License',
23
+ ],
24
+ install_requires=[],
25
+ )
File without changes