shafikul-cli 2.1.3__tar.gz → 2.1.6__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.
Files changed (24) hide show
  1. {shafikul_cli-2.1.3/shafikul_cli.egg-info → shafikul_cli-2.1.6}/PKG-INFO +4 -4
  2. {shafikul_cli-2.1.3 → shafikul_cli-2.1.6}/README.md +3 -3
  3. {shafikul_cli-2.1.3 → shafikul_cli-2.1.6}/pyproject.toml +1 -1
  4. {shafikul_cli-2.1.3 → shafikul_cli-2.1.6}/shafikul_cli/main.py +1 -0
  5. {shafikul_cli-2.1.3 → shafikul_cli-2.1.6}/shafikul_cli/utility/helper_function.py +3 -2
  6. {shafikul_cli-2.1.3 → shafikul_cli-2.1.6}/shafikul_cli/utility/install_dependicy.py +6 -0
  7. {shafikul_cli-2.1.3 → shafikul_cli-2.1.6/shafikul_cli.egg-info}/PKG-INFO +4 -4
  8. {shafikul_cli-2.1.3 → shafikul_cli-2.1.6}/LICENSE +0 -0
  9. {shafikul_cli-2.1.3 → shafikul_cli-2.1.6}/setup.cfg +0 -0
  10. {shafikul_cli-2.1.3 → shafikul_cli-2.1.6}/shafikul_cli/__init__.py +0 -0
  11. {shafikul_cli-2.1.3 → shafikul_cli-2.1.6}/shafikul_cli/asset/__init__.py +0 -0
  12. {shafikul_cli-2.1.3 → shafikul_cli-2.1.6}/shafikul_cli/asset/logo.png +0 -0
  13. {shafikul_cli-2.1.3 → shafikul_cli-2.1.6}/shafikul_cli/utility/__init__.py +0 -0
  14. {shafikul_cli-2.1.3 → shafikul_cli-2.1.6}/shafikul_cli/utility/create_file_content.py +0 -0
  15. {shafikul_cli-2.1.3 → shafikul_cli-2.1.6}/shafikul_cli/utility/create_file_structure.py +0 -0
  16. {shafikul_cli-2.1.3 → shafikul_cli-2.1.6}/shafikul_cli/utility/create_html_file.py +0 -0
  17. {shafikul_cli-2.1.3 → shafikul_cli-2.1.6}/shafikul_cli/utility/ensure_db.py +0 -0
  18. {shafikul_cli-2.1.3 → shafikul_cli-2.1.6}/shafikul_cli/utility/ensure_main.py +0 -0
  19. {shafikul_cli-2.1.3 → shafikul_cli-2.1.6}/shafikul_cli/utility/env_generate.py +0 -0
  20. {shafikul_cli-2.1.3 → shafikul_cli-2.1.6}/shafikul_cli.egg-info/SOURCES.txt +0 -0
  21. {shafikul_cli-2.1.3 → shafikul_cli-2.1.6}/shafikul_cli.egg-info/dependency_links.txt +0 -0
  22. {shafikul_cli-2.1.3 → shafikul_cli-2.1.6}/shafikul_cli.egg-info/entry_points.txt +0 -0
  23. {shafikul_cli-2.1.3 → shafikul_cli-2.1.6}/shafikul_cli.egg-info/requires.txt +0 -0
  24. {shafikul_cli-2.1.3 → shafikul_cli-2.1.6}/shafikul_cli.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: shafikul_cli
3
- Version: 2.1.3
3
+ Version: 2.1.6
4
4
  Summary: CLI tool for FastAPI scaffolding with router, models, database, and templates.
5
5
  Author-email: Md Shafikul Islam <buildwithshafikul@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/build-with-shafikul/shafikul_cli
@@ -21,7 +21,7 @@ Dynamic: license-file
21
21
 
22
22
  <div align="center">
23
23
 
24
- ![Version](https://img.shields.io/badge/version-2.1.2-blue?style=flat-square)
24
+ ![Version](https://img.shields.io/badge/version-2.1.6-blue?style=flat-square)
25
25
  ![Python](https://img.shields.io/badge/python-3.9+-green?style=flat-square)
26
26
  ![License](https://img.shields.io/badge/license-MIT-purple?style=flat-square)
27
27
  [![GitHub](https://img.shields.io/badge/GitHub-build--with--shafikul-black?style=flat-square&logo=github)](https://github.com/build-with-shafikul/shafikul_cli)
@@ -311,7 +311,7 @@ pip install shafikul_cli
311
311
  ### Port 8000 already in use
312
312
  Change the port in `main.py`:
313
313
  ```python
314
- uvicorn.run("main:app", host="127.0.0.1", port=8001, reload=True)
314
+ uvicorn.run("main:app", host="127.0.0.1", port=8000, reload=True)
315
315
  ```
316
316
 
317
317
  ### Database migration failed
@@ -325,7 +325,7 @@ alembic upgrade head
325
325
 
326
326
  ## 📄 License
327
327
 
328
- MIT License — See [LICENSE](LICENSE) for details.
328
+ MIT License — See [LICENSE](https://github.com/build-with-shafikul/shafikul_cli?tab=MIT-1-ov-file) for details.
329
329
 
330
330
  ---
331
331
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  <div align="center">
6
6
 
7
- ![Version](https://img.shields.io/badge/version-2.1.2-blue?style=flat-square)
7
+ ![Version](https://img.shields.io/badge/version-2.1.6-blue?style=flat-square)
8
8
  ![Python](https://img.shields.io/badge/python-3.9+-green?style=flat-square)
9
9
  ![License](https://img.shields.io/badge/license-MIT-purple?style=flat-square)
10
10
  [![GitHub](https://img.shields.io/badge/GitHub-build--with--shafikul-black?style=flat-square&logo=github)](https://github.com/build-with-shafikul/shafikul_cli)
@@ -294,7 +294,7 @@ pip install shafikul_cli
294
294
  ### Port 8000 already in use
295
295
  Change the port in `main.py`:
296
296
  ```python
297
- uvicorn.run("main:app", host="127.0.0.1", port=8001, reload=True)
297
+ uvicorn.run("main:app", host="127.0.0.1", port=8000, reload=True)
298
298
  ```
299
299
 
300
300
  ### Database migration failed
@@ -308,7 +308,7 @@ alembic upgrade head
308
308
 
309
309
  ## 📄 License
310
310
 
311
- MIT License — See [LICENSE](LICENSE) for details.
311
+ MIT License — See [LICENSE](https://github.com/build-with-shafikul/shafikul_cli?tab=MIT-1-ov-file) for details.
312
312
 
313
313
  ---
314
314
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "shafikul_cli"
7
- version = "2.1.3"
7
+ version = "2.1.6"
8
8
  description = "CLI tool for FastAPI scaffolding with router, models, database, and templates."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -146,6 +146,7 @@ def create_app():
146
146
  "passlib[bcrypt]",
147
147
  "argon2-cffi",
148
148
  "python-multipart",
149
+ "alembic",
149
150
  ])
150
151
 
151
152
  # ==========================================
@@ -69,12 +69,13 @@ def requirements(file_nm: str):
69
69
  sqlalchemy
70
70
  fastapi
71
71
  jinja2
72
- uvicorn[standerd]
72
+ uvicorn[standard]
73
73
  python-dotenv
74
74
  itsdangerous
75
75
  python-multipart
76
76
  argon2-cffi
77
77
  passlib[bcrypt]
78
+ alembic
78
79
  """)
79
80
 
80
81
  # ==========================================
@@ -121,7 +122,7 @@ async def debug(request: Request):
121
122
  }
122
123
 
123
124
  if __name__ == "__main__":
124
- uvicorn.run(app, host="127.0.0.1", port=8000, reload=True)
125
+ uvicorn.run("main:app", host="127.0.0.1", port=8000, reload=True)
125
126
  """)
126
127
 
127
128
  # ==========================================
@@ -36,6 +36,12 @@ def alembic_init():
36
36
  ["alembic", "init", "migrations"],
37
37
  check=True
38
38
  )
39
+ subprocess.run([
40
+ sys.executable,
41
+ "alembic",
42
+ "init",
43
+ "migrations"
44
+ ])
39
45
  console.print("[green]Alembic initialized successfully[/]")
40
46
  except subprocess.CalledProcessError as e:
41
47
  console.print(f"[red]Failed to initialize Alembic: {e}[/]")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: shafikul_cli
3
- Version: 2.1.3
3
+ Version: 2.1.6
4
4
  Summary: CLI tool for FastAPI scaffolding with router, models, database, and templates.
5
5
  Author-email: Md Shafikul Islam <buildwithshafikul@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/build-with-shafikul/shafikul_cli
@@ -21,7 +21,7 @@ Dynamic: license-file
21
21
 
22
22
  <div align="center">
23
23
 
24
- ![Version](https://img.shields.io/badge/version-2.1.2-blue?style=flat-square)
24
+ ![Version](https://img.shields.io/badge/version-2.1.6-blue?style=flat-square)
25
25
  ![Python](https://img.shields.io/badge/python-3.9+-green?style=flat-square)
26
26
  ![License](https://img.shields.io/badge/license-MIT-purple?style=flat-square)
27
27
  [![GitHub](https://img.shields.io/badge/GitHub-build--with--shafikul-black?style=flat-square&logo=github)](https://github.com/build-with-shafikul/shafikul_cli)
@@ -311,7 +311,7 @@ pip install shafikul_cli
311
311
  ### Port 8000 already in use
312
312
  Change the port in `main.py`:
313
313
  ```python
314
- uvicorn.run("main:app", host="127.0.0.1", port=8001, reload=True)
314
+ uvicorn.run("main:app", host="127.0.0.1", port=8000, reload=True)
315
315
  ```
316
316
 
317
317
  ### Database migration failed
@@ -325,7 +325,7 @@ alembic upgrade head
325
325
 
326
326
  ## 📄 License
327
327
 
328
- MIT License — See [LICENSE](LICENSE) for details.
328
+ MIT License — See [LICENSE](https://github.com/build-with-shafikul/shafikul_cli?tab=MIT-1-ov-file) for details.
329
329
 
330
330
  ---
331
331
 
File without changes
File without changes