keith-django-app-creator 0.4.0__py3-none-any.whl → 0.5.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.
app_creator/cli.py CHANGED
@@ -1,8 +1,12 @@
1
1
  import os
2
2
  import sys
3
+ import re
3
4
 
4
- def to_camel_case(snake_str):
5
- return ''.join(word.capitalize() for word in snake_str.split('_'))
5
+ def to_camel_case(value):
6
+ # Remplace tous les séparateurs non alphanumériques par un espace
7
+ value = re.sub(r'[^a-zA-Z0-9]', ' ', value)
8
+ # Découpe par espace et capitalise chaque mot
9
+ return ''.join(word.capitalize() for word in value.split())
6
10
 
7
11
  def create_app(app_name):
8
12
  os.makedirs(app_name, exist_ok=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: keith-django-app-creator
3
- Version: 0.4.0
3
+ Version: 0.5.0
4
4
  Summary: Générateur de structure d'app Django personnalisée
5
5
  Author: Keith44
6
6
  Author-email: keitamohamed1432@gmail.com
@@ -1,5 +1,5 @@
1
1
  app_creator/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- app_creator/cli.py,sha256=ks6Ui1VbGmwM9vjAOR1sV8GGNv-PNLrf5j0d1Nkis5E,1753
2
+ app_creator/cli.py,sha256=R2mn0bjEt1BmvDYt5CZ_DRsbg-e-JvWk4eVX2VjIohc,1923
3
3
  keita/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  keita/admin.py,sha256=suMo4x8I3JBxAFBVIdE-5qnqZ6JAZV0FESABHOSc-vg,63
5
5
  keita/apps.py,sha256=9IvzXtmMUbnCJiQ7FqWh0D2ccMoRBtZQyOyDQBOSTpQ,141
@@ -11,8 +11,8 @@ keita/views/__init__.py,sha256=3IylRHwsJ1fBLYV0JXkaa8Ai4nAyRGfsFPFBodaHxes,13
11
11
  migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  views/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
- keith_django_app_creator-0.4.0.dist-info/METADATA,sha256=WRMeM5v8cD9cw6oRAoXYhuMvq-W-xu74Q1XGOcH64rQ,1296
15
- keith_django_app_creator-0.4.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
16
- keith_django_app_creator-0.4.0.dist-info/entry_points.txt,sha256=dK2S_U_9kTbZWt-m1qw3JCdZrcsJbblg1krP8Ju5fRA,48
17
- keith_django_app_creator-0.4.0.dist-info/top_level.txt,sha256=fqkyUMAoXs-vdWHGewTkwBaCWwkn-eqmiwQZrpyty08,42
18
- keith_django_app_creator-0.4.0.dist-info/RECORD,,
14
+ keith_django_app_creator-0.5.0.dist-info/METADATA,sha256=xZmsBdQmz-bWtqknGRUEzi-kdiHeDhgzW2LvdsP4aHM,1296
15
+ keith_django_app_creator-0.5.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
16
+ keith_django_app_creator-0.5.0.dist-info/entry_points.txt,sha256=dK2S_U_9kTbZWt-m1qw3JCdZrcsJbblg1krP8Ju5fRA,48
17
+ keith_django_app_creator-0.5.0.dist-info/top_level.txt,sha256=fqkyUMAoXs-vdWHGewTkwBaCWwkn-eqmiwQZrpyty08,42
18
+ keith_django_app_creator-0.5.0.dist-info/RECORD,,