alpha-python 0.3.2__tar.gz → 0.3.3__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.
- {alpha_python-0.3.2 → alpha_python-0.3.3}/PKG-INFO +1 -1
- {alpha_python-0.3.2 → alpha_python-0.3.3}/pyproject.toml +1 -1
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/cli.py +13 -3
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/api_generate_handler.py +2 -2
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha_python.egg-info/PKG-INFO +1 -1
- {alpha_python-0.3.2 → alpha_python-0.3.3}/LICENSE +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/README.md +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/setup.cfg +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/__init__.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/adapters/__init__.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/adapters/sqla_unit_of_work.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/containers/__init__.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/containers/container.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/domain/__init__.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/domain/models/__init__.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/domain/models/base_model.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/domain/models/life_cycle_base.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/domain/models/user.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/encoder.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/exceptions.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/factories/__init__.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/factories/_type_conversion_matrix.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/factories/_type_mapping.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/factories/class_factories.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/factories/default_field_factory.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/factories/field_iterator.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/factories/jwt_factory.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/factories/logging_handler_factory.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/factories/model_class_factory.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/factories/models/__init__.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/factories/models/factory_classes.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/factories/request_factory.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/factories/response_factory.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/factories/type_factories.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/__init__.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/api_run_handler.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/base_handler.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/gen-code.sh +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/models/__init__.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/models/argument.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/models/command.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/models/section.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/models/subparser.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/run-api.sh +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/__init__.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/Dockerfile.mustache +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/README.mustache +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/__init__model.mustache +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/__init__test.mustache +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/__main__.mustache +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/base_model.mustache +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/controller.mustache +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/controller_test.mustache +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/dockerignore.mustache +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/encoder.mustache +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/git_push.sh.mustache +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/gitignore.mustache +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/model.mustache +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/openapi.mustache +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/param_type.mustache +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/requirements.mustache +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/security_controller_.mustache +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/setup.mustache +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/test-requirements.mustache +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/tox.mustache +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/travis.mustache +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/typing_utils.mustache +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/util.mustache +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/infra/__init__.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/infra/connectors/__init__.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/infra/connectors/ldap_connector.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/infra/connectors/oidc_connector.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/infra/databases/__init__.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/infra/databases/sql_alchemy.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/infra/models/__init__.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/infra/models/filter_operators.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/infra/models/json_patch.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/infra/models/order_by.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/infra/models/query_clause.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/infra/models/search_filter.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/interfaces/__init__.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/interfaces/attrs_instance.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/interfaces/dataclass_instance.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/interfaces/factories.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/interfaces/handler.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/interfaces/openapi_model.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/interfaces/patchable.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/interfaces/providers.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/interfaces/pydantic_instance.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/interfaces/sql_database.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/interfaces/sql_mapper.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/interfaces/sql_repository.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/interfaces/token_factory.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/interfaces/unit_of_work.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/interfaces/updateable.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/mixins/__init__.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/mixins/jwt_provider.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/providers/__init__.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/providers/api_key_provider.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/providers/database_provider.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/providers/ldap_provider.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/providers/local_provider.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/providers/models/__init__.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/providers/models/credentials.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/providers/models/identity.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/providers/models/token.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/providers/oidc_provider.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/py.typed +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/repositories/__init__.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/repositories/models/__init__.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/repositories/models/repository_model.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/repositories/sql_alchemy_repository.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/services/__init__.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/services/authentication_service.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/utils/__init__.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/utils/_http_codes.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/utils/is_attrs.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/utils/is_pydantic.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/utils/logging_configurator.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/utils/logging_level_checker.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/utils/response_object.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/utils/verify_identity.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/utils/version_checker.py +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha_python.egg-info/SOURCES.txt +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha_python.egg-info/dependency_links.txt +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha_python.egg-info/entry_points.txt +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha_python.egg-info/requires.txt +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha_python.egg-info/top_level.txt +0 -0
- {alpha_python-0.3.2 → alpha_python-0.3.3}/tests/test_encoder.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: alpha-python
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.3
|
|
4
4
|
Summary: Alpha is intended to be the first dependency you need to add to your Python application. It is a Python library which contains standard building blocks that can be used in applications that are used as APIs and/or make use of database interaction.
|
|
5
5
|
Author-email: Bart Reijling <bart@reijling.eu>
|
|
6
6
|
Requires-Python: >=3.11
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "alpha-python"
|
|
3
|
-
version = "0.3.
|
|
3
|
+
version = "0.3.3"
|
|
4
4
|
description = "Alpha is intended to be the first dependency you need to add to your Python application. It is a Python library which contains standard building blocks that can be used in applications that are used as APIs and/or make use of database interaction."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [
|
|
@@ -134,15 +134,25 @@ def _guess_current_package_name() -> str:
|
|
|
134
134
|
try:
|
|
135
135
|
with open(pyproject_path, 'rb') as f:
|
|
136
136
|
pyproject_data = tomllib.load(f)
|
|
137
|
-
|
|
137
|
+
name = None
|
|
138
|
+
try:
|
|
139
|
+
if 'project' in pyproject_data:
|
|
140
|
+
name = pyproject_data['project']['name']
|
|
141
|
+
elif 'tool' in pyproject_data and 'poetry' in pyproject_data['tool']:
|
|
142
|
+
name = pyproject_data['tool']['poetry']['name']
|
|
143
|
+
if name is not None:
|
|
144
|
+
return name.replace('-', '_')
|
|
145
|
+
except KeyError:
|
|
146
|
+
print('Could not find project name in pyproject.toml')
|
|
138
147
|
except Exception:
|
|
139
148
|
pass
|
|
149
|
+
else:
|
|
150
|
+
print('Could not find pyproject.toml')
|
|
140
151
|
|
|
141
152
|
# Fallback to use the current folder name
|
|
142
|
-
print('
|
|
153
|
+
print('Guessing package name from folder')
|
|
143
154
|
return os.path.basename(cwd)
|
|
144
155
|
|
|
145
|
-
|
|
146
156
|
def init() -> None:
|
|
147
157
|
"""Init the container and wire it to the main function."""
|
|
148
158
|
container = Container()
|
|
@@ -23,8 +23,8 @@ class ApiGenerateHandler(BaseHandler):
|
|
|
23
23
|
"the required packages first. \nThis can be done by installing "
|
|
24
24
|
"the \'api-generator\' extra: \n"
|
|
25
25
|
"- pip install alpha-python[api-generator]\n"
|
|
26
|
-
"- poetry add alpha-python --extras api-generator\n"
|
|
27
|
-
"- uv add alpha-python --extra api-generator"
|
|
26
|
+
"- poetry add --dev alpha-python --extras api-generator\n"
|
|
27
|
+
"- uv add --dev alpha-python --extra api-generator"
|
|
28
28
|
)
|
|
29
29
|
exit(1)
|
|
30
30
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: alpha-python
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.3
|
|
4
4
|
Summary: Alpha is intended to be the first dependency you need to add to your Python application. It is a Python library which contains standard building blocks that can be used in applications that are used as APIs and/or make use of database interaction.
|
|
5
5
|
Author-email: Bart Reijling <bart@reijling.eu>
|
|
6
6
|
Requires-Python: >=3.11
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/README.mustache
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/encoder.mustache
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/model.mustache
RENAMED
|
File without changes
|
{alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/openapi.mustache
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/setup.mustache
RENAMED
|
File without changes
|
|
File without changes
|
{alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/tox.mustache
RENAMED
|
File without changes
|
{alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/travis.mustache
RENAMED
|
File without changes
|
|
File without changes
|
{alpha_python-0.3.2 → alpha_python-0.3.3}/src/alpha/handlers/templates/python-flask/util.mustache
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|