future-framework 1.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.
Files changed (63) hide show
  1. future_framework-1.1.0/LICENSE +21 -0
  2. future_framework-1.1.0/PKG-INFO +68 -0
  3. future_framework-1.1.0/README.md +38 -0
  4. future_framework-1.1.0/future/__init__.py +3 -0
  5. future_framework-1.1.0/future/application.py +656 -0
  6. future_framework-1.1.0/future/authentication/Auth0Authentication.py +9 -0
  7. future_framework-1.1.0/future/authentication/Authentication.py +11 -0
  8. future_framework-1.1.0/future/authentication/AzureADAuthentication.py +9 -0
  9. future_framework-1.1.0/future/authentication/BasicAuthentication.py +9 -0
  10. future_framework-1.1.0/future/authentication/KerberosAuthentication.py +9 -0
  11. future_framework-1.1.0/future/authentication/KeycloakAuthentication.py +9 -0
  12. future_framework-1.1.0/future/authentication/OAuth2Authentication.py +9 -0
  13. future_framework-1.1.0/future/authentication/OpenIdConnectAuthentication.py +9 -0
  14. future_framework-1.1.0/future/authentication/SAMLAuthentication.py +9 -0
  15. future_framework-1.1.0/future/cli/__init__.py +1 -0
  16. future_framework-1.1.0/future/cli/main.py +608 -0
  17. future_framework-1.1.0/future/cli/stubs.py +114 -0
  18. future_framework-1.1.0/future/controllers/__init__.py +4 -0
  19. future_framework-1.1.0/future/controllers/base.py +8 -0
  20. future_framework-1.1.0/future/controllers/builtins.py +41 -0
  21. future_framework-1.1.0/future/controllers/graphql.py +23 -0
  22. future_framework-1.1.0/future/controllers/openapi.py +224 -0
  23. future_framework-1.1.0/future/databases/Clickhouse.py +176 -0
  24. future_framework-1.1.0/future/databases/Connections.py +20 -0
  25. future_framework-1.1.0/future/databases/Database.py +66 -0
  26. future_framework-1.1.0/future/databases/Elasticsearch.py +146 -0
  27. future_framework-1.1.0/future/databases/MongoDB.py +177 -0
  28. future_framework-1.1.0/future/databases/MySQL.py +215 -0
  29. future_framework-1.1.0/future/databases/Postgres.py +214 -0
  30. future_framework-1.1.0/future/databases/Redis.py +146 -0
  31. future_framework-1.1.0/future/databases/SQLite.py +219 -0
  32. future_framework-1.1.0/future/exceptions.py +27 -0
  33. future_framework-1.1.0/future/graphql/__init__.py +1 -0
  34. future_framework-1.1.0/future/graphql/schema.py +148 -0
  35. future_framework-1.1.0/future/lifespan.py +70 -0
  36. future_framework-1.1.0/future/logger.py +53 -0
  37. future_framework-1.1.0/future/middleware/Middleware.py +201 -0
  38. future_framework-1.1.0/future/middleware/SessionMiddleware.py +77 -0
  39. future_framework-1.1.0/future/middleware/__init__.py +21 -0
  40. future_framework-1.1.0/future/migrations/Blueprint.py +54 -0
  41. future_framework-1.1.0/future/migrations/Column.py +33 -0
  42. future_framework-1.1.0/future/migrations/Migration.py +11 -0
  43. future_framework-1.1.0/future/migrations/MigrationGenerator.py +137 -0
  44. future_framework-1.1.0/future/migrations/Migrator.py +72 -0
  45. future_framework-1.1.0/future/migrations/Schema.py +21 -0
  46. future_framework-1.1.0/future/models/__init__.py +1 -0
  47. future_framework-1.1.0/future/models/model.py +224 -0
  48. future_framework-1.1.0/future/openapi.py +233 -0
  49. future_framework-1.1.0/future/plugins/ElasticsearchPlugin.py +496 -0
  50. future_framework-1.1.0/future/plugins/__init__.py +9 -0
  51. future_framework-1.1.0/future/request.py +143 -0
  52. future_framework-1.1.0/future/response.py +201 -0
  53. future_framework-1.1.0/future/routing.py +342 -0
  54. future_framework-1.1.0/future/seeds/SeedGenerator.py +95 -0
  55. future_framework-1.1.0/future/seeds/SeedRunner.py +42 -0
  56. future_framework-1.1.0/future/seeds/Seeder.py +9 -0
  57. future_framework-1.1.0/future/settings.py +94 -0
  58. future_framework-1.1.0/future/tasks/__init__.py +14 -0
  59. future_framework-1.1.0/future/tasks/scheduler.py +267 -0
  60. future_framework-1.1.0/future/testing/__init__.py +1 -0
  61. future_framework-1.1.0/future/testing/client.py +135 -0
  62. future_framework-1.1.0/future/types.py +47 -0
  63. future_framework-1.1.0/pyproject.toml +109 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 nicolaipre
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,68 @@
1
+ Metadata-Version: 2.4
2
+ Name: future-framework
3
+ Version: 1.1.0
4
+ Summary: Next Gen. ASGI Framework for minimal Web APIs
5
+ License: LICENSE
6
+ License-File: LICENSE
7
+ Author: nicolaipre
8
+ Requires-Python: >=3.12,<4.0
9
+ Classifier: License :: Other/Proprietary License
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.12
12
+ Classifier: Programming Language :: Python :: 3.13
13
+ Classifier: Programming Language :: Python :: 3.14
14
+ Requires-Dist: clickhouse-driver (>=0.2.11,<0.3.0)
15
+ Requires-Dist: elasticsearch (>=9.4.0,<10.0.0)
16
+ Requires-Dist: faker (>=40.0.0,<41.0.0)
17
+ Requires-Dist: httpx (>=0.28.1,<0.29.0)
18
+ Requires-Dist: inflection (>=0.5.1,<0.6.0)
19
+ Requires-Dist: psycopg2-binary (>=2.9.12,<3.0.0)
20
+ Requires-Dist: pymongo (>=4.17.0,<5.0.0)
21
+ Requires-Dist: pymysql (>=1.2.0,<2.0.0)
22
+ Requires-Dist: python-dotenv (>=1.2.2,<2.0.0)
23
+ Requires-Dist: redis (>=8.0.0,<9.0.0)
24
+ Requires-Dist: rich (>=15.0.0,<16.0.0)
25
+ Requires-Dist: sqlalchemy (>=2.0.51,<3.0.0)
26
+ Requires-Dist: strawberry-graphql (>=0.323.0,<0.324.0)
27
+ Requires-Dist: uvicorn (>=0.51.0,<0.52.0)
28
+ Description-Content-Type: text/markdown
29
+
30
+ # Future
31
+ Minimal, decorator-free [ASGI](https://asgi.readthedocs.io/) framework for Python APIs — routing, middleware, Active Record, migrations, seeds, OpenAPI, and interval tasks.
32
+
33
+ [![Build Status](https://github.com/nicolaipre/future/actions/workflows/ci.yml/badge.svg)](https://github.com/nicolaipre/future/actions)
34
+ [![Package version](https://badge.fury.io/py/future-framework.svg)](https://pypi.org/project/future-framework/)
35
+ [![codecov](https://codecov.io/gh/nicolaipre/future/branch/master/graph/badge.svg)](https://codecov.io/gh/nicolaipre/future)
36
+
37
+ ## Documentation
38
+ Published at **[nicolaipre.github.io/future](https://nicolaipre.github.io/future/)**. To preview locally: `poetry install --with docs && poetry run mkdocs serve`.
39
+
40
+ ## Install
41
+ ```bash
42
+ poetry add future-framework
43
+ # or from git: poetry add git+https://github.com/nicolaipre/future.git@master
44
+ poetry run future init myproject
45
+ ```
46
+
47
+ Import name is `future` (`from future.application import Future`).
48
+
49
+ ## Hello
50
+ ```python
51
+ from future.application import Future
52
+ from future.controllers import Controller
53
+ from future.lifespan import Lifespan
54
+ from future.response import Response
55
+ from future.routing import Get, RouteGroup
56
+
57
+ class HomeController(Controller):
58
+ async def index(self) -> Response:
59
+ return self.response.json({"ok": True})
60
+
61
+ app = Future(lifespan=Lifespan([], [], []), config={"APP_DOMAIN": "", "APP_NAME": "Demo"})
62
+ app.add_routes([RouteGroup(name="Main", routes=[Get("/", HomeController.index, "home")])])
63
+ app.run(host="127.0.0.1", port=8000)
64
+ ```
65
+
66
+ ## License
67
+ See [LICENSE](LICENSE). Versioning: [CHANGELOG.md](CHANGELOG.md).
68
+
@@ -0,0 +1,38 @@
1
+ # Future
2
+ Minimal, decorator-free [ASGI](https://asgi.readthedocs.io/) framework for Python APIs — routing, middleware, Active Record, migrations, seeds, OpenAPI, and interval tasks.
3
+
4
+ [![Build Status](https://github.com/nicolaipre/future/actions/workflows/ci.yml/badge.svg)](https://github.com/nicolaipre/future/actions)
5
+ [![Package version](https://badge.fury.io/py/future-framework.svg)](https://pypi.org/project/future-framework/)
6
+ [![codecov](https://codecov.io/gh/nicolaipre/future/branch/master/graph/badge.svg)](https://codecov.io/gh/nicolaipre/future)
7
+
8
+ ## Documentation
9
+ Published at **[nicolaipre.github.io/future](https://nicolaipre.github.io/future/)**. To preview locally: `poetry install --with docs && poetry run mkdocs serve`.
10
+
11
+ ## Install
12
+ ```bash
13
+ poetry add future-framework
14
+ # or from git: poetry add git+https://github.com/nicolaipre/future.git@master
15
+ poetry run future init myproject
16
+ ```
17
+
18
+ Import name is `future` (`from future.application import Future`).
19
+
20
+ ## Hello
21
+ ```python
22
+ from future.application import Future
23
+ from future.controllers import Controller
24
+ from future.lifespan import Lifespan
25
+ from future.response import Response
26
+ from future.routing import Get, RouteGroup
27
+
28
+ class HomeController(Controller):
29
+ async def index(self) -> Response:
30
+ return self.response.json({"ok": True})
31
+
32
+ app = Future(lifespan=Lifespan([], [], []), config={"APP_DOMAIN": "", "APP_NAME": "Demo"})
33
+ app.add_routes([RouteGroup(name="Main", routes=[Get("/", HomeController.index, "home")])])
34
+ app.run(host="127.0.0.1", port=8000)
35
+ ```
36
+
37
+ ## License
38
+ See [LICENSE](LICENSE). Versioning: [CHANGELOG.md](CHANGELOG.md).
@@ -0,0 +1,3 @@
1
+ from importlib.metadata import version
2
+
3
+ __version__ = version("future-framework")