Plinx 0.0.1__tar.gz → 1.0.1__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.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: Plinx
3
- Version: 0.0.1
3
+ Version: 1.0.1
4
4
  Summary: Plinx is an experimental, minimalistic, and extensible web framework and ORM written in Python.
5
5
  Home-page: https://github.com/dhavalsavalia/plinx
6
6
  Author: Dhaval Savalia
@@ -15,12 +15,27 @@ Classifier: Programming Language :: Python :: Implementation :: PyPy
15
15
  Requires-Python: >=3.11.0
16
16
  Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
+ Requires-Dist: webob
19
+ Requires-Dist: parse
20
+ Requires-Dist: requests
21
+ Requires-Dist: requests-wsgi-adapter
22
+ Dynamic: author
23
+ Dynamic: author-email
24
+ Dynamic: classifier
25
+ Dynamic: description
26
+ Dynamic: description-content-type
27
+ Dynamic: home-page
28
+ Dynamic: license
29
+ Dynamic: license-file
30
+ Dynamic: requires-dist
31
+ Dynamic: requires-python
32
+ Dynamic: summary
18
33
 
19
34
 
20
35
  # Plinx
21
36
 
22
37
  ![purpose](https://img.shields.io/badge/purpose-learning-green.svg)
23
- ![PyPI](https://img.shields.io/pypi/v/bumbo.svg)
38
+ ![PyPI](https://img.shields.io/pypi/v/Plinx.svg)
24
39
 
25
40
  **Plinx** is an experimental, minimalistic, and extensible WSGI-based web framework and ORM written in Python.
26
41
  It is designed to be simple, fast, and easy to extend, making it ideal for rapid prototyping and educational purposes.
@@ -29,8 +44,9 @@ It is designed to be simple, fast, and easy to extend, making it ideal for rapid
29
44
 
30
45
  ## Features
31
46
 
32
- - 🚀 Minimal and fast web framework
33
- - 🛣️ Intuitive routing system
47
+ - 🚀 Minimal and fast WSGI web framework
48
+ - 💾 Integrated Object-Relational Mapper (ORM)
49
+ - 🛣️ Intuitive routing system (including parameterized and class-based routes)
34
50
  - 🧩 Extensible middleware support
35
51
  - 🧪 Simple, readable codebase for learning and hacking
36
52
  - 📝 Type hints and modern Python best practices
@@ -39,6 +55,12 @@ It is designed to be simple, fast, and easy to extend, making it ideal for rapid
39
55
 
40
56
  ## Installation
41
57
 
58
+ Install from PyPI:
59
+
60
+ ```bash
61
+ pip install Plinx
62
+ ```
63
+
42
64
  Install directly from the git source:
43
65
 
44
66
  ```bash
@@ -52,19 +74,30 @@ pip install git+https://github.com/dhavalsavalia/plinx.git
52
74
  Create a simple web application in seconds:
53
75
 
54
76
  ```python
77
+ # myapp.py
55
78
  from plinx import Plinx
56
79
 
57
80
  app = Plinx()
58
81
 
59
82
  @app.route("/")
60
83
  def index(request, response):
61
- response.text = "Hello, world!"
84
+ response.text = "Hello, Plinx 1.0.1!"
85
+
86
+ # Example using the ORM (requires database setup)
87
+ # from plinx.orm import Database, Table, Column
88
+ # db = Database("my_database.db")
89
+ # class Item(Table):
90
+ # name = Column(str)
91
+ # count = Column(int)
92
+ # db.create(Item)
93
+ # db.save(Item(name="Example", count=1))
62
94
  ```
63
95
 
64
- Run your app (example, assuming you have an ASGI server like `uvicorn`):
96
+ Run your app using a WSGI server (like `gunicorn`):
65
97
 
66
98
  ```bash
67
- uvicorn myapp:app
99
+ pip install gunicorn
100
+ gunicorn myapp:app
68
101
  ```
69
102
 
70
103
  ## Testing
@@ -77,19 +110,6 @@ pytest --cov=.
77
110
 
78
111
  ---
79
112
 
80
- ## Roadmap
81
-
82
- - [x] Web Framework
83
- - [x] Routing
84
- - [x] Explicit Routing Methods (GET, POST, etc.)
85
- - [x] Parameterized Routes
86
- - [x] Class Based Routes
87
- - [x] Django-like Routes
88
- - [x] Middleware Support
89
- - [ ] ORM
90
-
91
- ---
92
-
93
113
  ## Contributing
94
114
 
95
115
  Contributions are welcome! Please open issues or submit pull requests for improvements, bug fixes, or new features.
@@ -104,7 +124,7 @@ This project is licensed under the MIT License. See [LICENSE](LICENSE) for detai
104
124
 
105
125
  ## Author & Contact
106
126
 
107
- Created and maintained by [Dhaval Savalia](https://github.com/dhavalsavalia).
127
+ Created and maintained by [Dhaval Savalia](https://github.com/dhavalsavalia).
108
128
  For questions or opportunities, feel free to reach out via [LinkedIn](https://www.linkedin.com/in/dhavalsavalia/) or open an issue.
109
129
 
110
130
  ---
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: Plinx
3
- Version: 0.0.1
3
+ Version: 1.0.1
4
4
  Summary: Plinx is an experimental, minimalistic, and extensible web framework and ORM written in Python.
5
5
  Home-page: https://github.com/dhavalsavalia/plinx
6
6
  Author: Dhaval Savalia
@@ -15,12 +15,27 @@ Classifier: Programming Language :: Python :: Implementation :: PyPy
15
15
  Requires-Python: >=3.11.0
16
16
  Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
+ Requires-Dist: webob
19
+ Requires-Dist: parse
20
+ Requires-Dist: requests
21
+ Requires-Dist: requests-wsgi-adapter
22
+ Dynamic: author
23
+ Dynamic: author-email
24
+ Dynamic: classifier
25
+ Dynamic: description
26
+ Dynamic: description-content-type
27
+ Dynamic: home-page
28
+ Dynamic: license
29
+ Dynamic: license-file
30
+ Dynamic: requires-dist
31
+ Dynamic: requires-python
32
+ Dynamic: summary
18
33
 
19
34
 
20
35
  # Plinx
21
36
 
22
37
  ![purpose](https://img.shields.io/badge/purpose-learning-green.svg)
23
- ![PyPI](https://img.shields.io/pypi/v/bumbo.svg)
38
+ ![PyPI](https://img.shields.io/pypi/v/Plinx.svg)
24
39
 
25
40
  **Plinx** is an experimental, minimalistic, and extensible WSGI-based web framework and ORM written in Python.
26
41
  It is designed to be simple, fast, and easy to extend, making it ideal for rapid prototyping and educational purposes.
@@ -29,8 +44,9 @@ It is designed to be simple, fast, and easy to extend, making it ideal for rapid
29
44
 
30
45
  ## Features
31
46
 
32
- - 🚀 Minimal and fast web framework
33
- - 🛣️ Intuitive routing system
47
+ - 🚀 Minimal and fast WSGI web framework
48
+ - 💾 Integrated Object-Relational Mapper (ORM)
49
+ - 🛣️ Intuitive routing system (including parameterized and class-based routes)
34
50
  - 🧩 Extensible middleware support
35
51
  - 🧪 Simple, readable codebase for learning and hacking
36
52
  - 📝 Type hints and modern Python best practices
@@ -39,6 +55,12 @@ It is designed to be simple, fast, and easy to extend, making it ideal for rapid
39
55
 
40
56
  ## Installation
41
57
 
58
+ Install from PyPI:
59
+
60
+ ```bash
61
+ pip install Plinx
62
+ ```
63
+
42
64
  Install directly from the git source:
43
65
 
44
66
  ```bash
@@ -52,19 +74,30 @@ pip install git+https://github.com/dhavalsavalia/plinx.git
52
74
  Create a simple web application in seconds:
53
75
 
54
76
  ```python
77
+ # myapp.py
55
78
  from plinx import Plinx
56
79
 
57
80
  app = Plinx()
58
81
 
59
82
  @app.route("/")
60
83
  def index(request, response):
61
- response.text = "Hello, world!"
84
+ response.text = "Hello, Plinx 1.0.1!"
85
+
86
+ # Example using the ORM (requires database setup)
87
+ # from plinx.orm import Database, Table, Column
88
+ # db = Database("my_database.db")
89
+ # class Item(Table):
90
+ # name = Column(str)
91
+ # count = Column(int)
92
+ # db.create(Item)
93
+ # db.save(Item(name="Example", count=1))
62
94
  ```
63
95
 
64
- Run your app (example, assuming you have an ASGI server like `uvicorn`):
96
+ Run your app using a WSGI server (like `gunicorn`):
65
97
 
66
98
  ```bash
67
- uvicorn myapp:app
99
+ pip install gunicorn
100
+ gunicorn myapp:app
68
101
  ```
69
102
 
70
103
  ## Testing
@@ -77,19 +110,6 @@ pytest --cov=.
77
110
 
78
111
  ---
79
112
 
80
- ## Roadmap
81
-
82
- - [x] Web Framework
83
- - [x] Routing
84
- - [x] Explicit Routing Methods (GET, POST, etc.)
85
- - [x] Parameterized Routes
86
- - [x] Class Based Routes
87
- - [x] Django-like Routes
88
- - [x] Middleware Support
89
- - [ ] ORM
90
-
91
- ---
92
-
93
113
  ## Contributing
94
114
 
95
115
  Contributions are welcome! Please open issues or submit pull requests for improvements, bug fixes, or new features.
@@ -104,7 +124,7 @@ This project is licensed under the MIT License. See [LICENSE](LICENSE) for detai
104
124
 
105
125
  ## Author & Contact
106
126
 
107
- Created and maintained by [Dhaval Savalia](https://github.com/dhavalsavalia).
127
+ Created and maintained by [Dhaval Savalia](https://github.com/dhavalsavalia).
108
128
  For questions or opportunities, feel free to reach out via [LinkedIn](https://www.linkedin.com/in/dhavalsavalia/) or open an issue.
109
129
 
110
130
  ---
@@ -4,6 +4,7 @@ setup.py
4
4
  Plinx.egg-info/PKG-INFO
5
5
  Plinx.egg-info/SOURCES.txt
6
6
  Plinx.egg-info/dependency_links.txt
7
+ Plinx.egg-info/requires.txt
7
8
  Plinx.egg-info/top_level.txt
8
9
  plinx/__init__.py
9
10
  plinx/applications.py
@@ -12,8 +13,8 @@ plinx/middleware.py
12
13
  plinx/response.py
13
14
  plinx/status_codes.py
14
15
  plinx/utils.py
15
- plinx.egg-info/PKG-INFO
16
- plinx.egg-info/SOURCES.txt
17
- plinx.egg-info/dependency_links.txt
18
- plinx.egg-info/top_level.txt
19
- tests/test_application.py
16
+ plinx/orm/__init__.py
17
+ plinx/orm/orm.py
18
+ plinx/orm/utils.py
19
+ tests/test_application.py
20
+ tests/test_orm.py
@@ -0,0 +1,4 @@
1
+ webob
2
+ parse
3
+ requests
4
+ requests-wsgi-adapter
@@ -1,7 +1,7 @@
1
1
  # Plinx
2
2
 
3
3
  ![purpose](https://img.shields.io/badge/purpose-learning-green.svg)
4
- ![PyPI](https://img.shields.io/pypi/v/bumbo.svg)
4
+ ![PyPI](https://img.shields.io/pypi/v/Plinx.svg)
5
5
 
6
6
  **Plinx** is an experimental, minimalistic, and extensible WSGI-based web framework and ORM written in Python.
7
7
  It is designed to be simple, fast, and easy to extend, making it ideal for rapid prototyping and educational purposes.
@@ -10,8 +10,9 @@ It is designed to be simple, fast, and easy to extend, making it ideal for rapid
10
10
 
11
11
  ## Features
12
12
 
13
- - 🚀 Minimal and fast web framework
14
- - 🛣️ Intuitive routing system
13
+ - 🚀 Minimal and fast WSGI web framework
14
+ - 💾 Integrated Object-Relational Mapper (ORM)
15
+ - 🛣️ Intuitive routing system (including parameterized and class-based routes)
15
16
  - 🧩 Extensible middleware support
16
17
  - 🧪 Simple, readable codebase for learning and hacking
17
18
  - 📝 Type hints and modern Python best practices
@@ -20,6 +21,12 @@ It is designed to be simple, fast, and easy to extend, making it ideal for rapid
20
21
 
21
22
  ## Installation
22
23
 
24
+ Install from PyPI:
25
+
26
+ ```bash
27
+ pip install Plinx
28
+ ```
29
+
23
30
  Install directly from the git source:
24
31
 
25
32
  ```bash
@@ -33,19 +40,30 @@ pip install git+https://github.com/dhavalsavalia/plinx.git
33
40
  Create a simple web application in seconds:
34
41
 
35
42
  ```python
43
+ # myapp.py
36
44
  from plinx import Plinx
37
45
 
38
46
  app = Plinx()
39
47
 
40
48
  @app.route("/")
41
49
  def index(request, response):
42
- response.text = "Hello, world!"
50
+ response.text = "Hello, Plinx 1.0.1!"
51
+
52
+ # Example using the ORM (requires database setup)
53
+ # from plinx.orm import Database, Table, Column
54
+ # db = Database("my_database.db")
55
+ # class Item(Table):
56
+ # name = Column(str)
57
+ # count = Column(int)
58
+ # db.create(Item)
59
+ # db.save(Item(name="Example", count=1))
43
60
  ```
44
61
 
45
- Run your app (example, assuming you have an ASGI server like `uvicorn`):
62
+ Run your app using a WSGI server (like `gunicorn`):
46
63
 
47
64
  ```bash
48
- uvicorn myapp:app
65
+ pip install gunicorn
66
+ gunicorn myapp:app
49
67
  ```
50
68
 
51
69
  ## Testing
@@ -58,19 +76,6 @@ pytest --cov=.
58
76
 
59
77
  ---
60
78
 
61
- ## Roadmap
62
-
63
- - [x] Web Framework
64
- - [x] Routing
65
- - [x] Explicit Routing Methods (GET, POST, etc.)
66
- - [x] Parameterized Routes
67
- - [x] Class Based Routes
68
- - [x] Django-like Routes
69
- - [x] Middleware Support
70
- - [ ] ORM
71
-
72
- ---
73
-
74
79
  ## Contributing
75
80
 
76
81
  Contributions are welcome! Please open issues or submit pull requests for improvements, bug fixes, or new features.
@@ -85,7 +90,7 @@ This project is licensed under the MIT License. See [LICENSE](LICENSE) for detai
85
90
 
86
91
  ## Author & Contact
87
92
 
88
- Created and maintained by [Dhaval Savalia](https://github.com/dhavalsavalia).
93
+ Created and maintained by [Dhaval Savalia](https://github.com/dhavalsavalia).
89
94
  For questions or opportunities, feel free to reach out via [LinkedIn](https://www.linkedin.com/in/dhavalsavalia/) or open an issue.
90
95
 
91
96
  ---
@@ -1 +1,3 @@
1
1
  from .applications import Plinx
2
+
3
+ __version__ = "1.0.1"