perfact-api-dg-fastapi 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.
@@ -0,0 +1,31 @@
1
+ Metadata-Version: 2.4
2
+ Name: perfact-api-dg-fastapi
3
+ Version: 0.1
4
+ Summary: PerFact API - dg FastAPI integration
5
+ Author-email: Viktor Dick <viktor.dick@perfact.de>
6
+ License: GPL-2.0-or-later
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Operating System :: POSIX :: Linux
9
+ Requires-Python: >=3.10
10
+ Description-Content-Type: text/markdown
11
+ Requires-Dist: fastapi[standard-no-fastapi-cloud-cli]
12
+ Requires-Dist: perfact-api-dg
13
+ Requires-Dist: perfact-api-main
14
+
15
+ # PerFact API - dg - APIs
16
+
17
+ This package contains all APIs related to the dg module of the PerFact software.
18
+ All available APIs are added to the main OpenAPI specification automatically.
19
+
20
+ ## getting started
21
+ This module is discovered and hosted by the `PythonPackages/perfact-api-base`.
22
+ As this package does not contain an own main entrypoint, you have to install it into the base and run that one.
23
+ Please refer to the documentation of the *API Base* to get more information about how the discovery works and how to include this module to your app bundle.
24
+ If everything is working, you should see this module be added to your bundle instance in the log:
25
+ ```
26
+ 2026-[...] - auth.app - INFO - start plugin discovery
27
+ [...]
28
+ 2026-[...] - auth.app - INFO - try to include plugin: perfact.api.dg_fastapi:mount
29
+ [...]
30
+ 2026-[...] - auth.app - INFO - finished discovery and include: X plugins
31
+ ```
@@ -0,0 +1,17 @@
1
+ # PerFact API - dg - APIs
2
+
3
+ This package contains all APIs related to the dg module of the PerFact software.
4
+ All available APIs are added to the main OpenAPI specification automatically.
5
+
6
+ ## getting started
7
+ This module is discovered and hosted by the `PythonPackages/perfact-api-base`.
8
+ As this package does not contain an own main entrypoint, you have to install it into the base and run that one.
9
+ Please refer to the documentation of the *API Base* to get more information about how the discovery works and how to include this module to your app bundle.
10
+ If everything is working, you should see this module be added to your bundle instance in the log:
11
+ ```
12
+ 2026-[...] - auth.app - INFO - start plugin discovery
13
+ [...]
14
+ 2026-[...] - auth.app - INFO - try to include plugin: perfact.api.dg_fastapi:mount
15
+ [...]
16
+ 2026-[...] - auth.app - INFO - finished discovery and include: X plugins
17
+ ```
@@ -0,0 +1,41 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.2", "setuptools-scm>=8.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "perfact-api-dg-fastapi"
7
+ authors = [
8
+ {name="Viktor Dick", email="viktor.dick@perfact.de"},
9
+ ]
10
+ description = "PerFact API - dg FastAPI integration"
11
+ readme = "README.md"
12
+ license = {text = "GPL-2.0-or-later"}
13
+ classifiers = [
14
+ "Programming Language :: Python :: 3",
15
+ "Operating System :: POSIX :: Linux",
16
+ ]
17
+ dependencies = [
18
+ "fastapi[standard-no-fastapi-cloud-cli]",
19
+ "perfact-api-dg",
20
+ "perfact-api-main",
21
+ ]
22
+ dynamic = ["version"]
23
+ requires-python = ">=3.10"
24
+
25
+ [project.scripts]
26
+
27
+ [tool.distutils.bdist_wheel]
28
+ universal = 1
29
+
30
+ [tool.setuptools]
31
+ include-package-data = true
32
+
33
+ [tool.setuptools.packages.find]
34
+ where = ["src"]
35
+
36
+ [tool.setuptools_scm]
37
+ root = ".."
38
+ fallback_version = "0.0.0"
39
+
40
+ [project.entry-points.'perfact.api']
41
+ dg = 'perfact.api.dg_fastapi:mount'
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,8 @@
1
+ from fastapi import FastAPI
2
+ from perfact.api.main.dbsession import APIRouter
3
+
4
+ routes = APIRouter()
5
+
6
+
7
+ def mount(app: FastAPI):
8
+ app.include_router(routes)
@@ -0,0 +1,31 @@
1
+ Metadata-Version: 2.4
2
+ Name: perfact-api-dg-fastapi
3
+ Version: 0.1
4
+ Summary: PerFact API - dg FastAPI integration
5
+ Author-email: Viktor Dick <viktor.dick@perfact.de>
6
+ License: GPL-2.0-or-later
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Operating System :: POSIX :: Linux
9
+ Requires-Python: >=3.10
10
+ Description-Content-Type: text/markdown
11
+ Requires-Dist: fastapi[standard-no-fastapi-cloud-cli]
12
+ Requires-Dist: perfact-api-dg
13
+ Requires-Dist: perfact-api-main
14
+
15
+ # PerFact API - dg - APIs
16
+
17
+ This package contains all APIs related to the dg module of the PerFact software.
18
+ All available APIs are added to the main OpenAPI specification automatically.
19
+
20
+ ## getting started
21
+ This module is discovered and hosted by the `PythonPackages/perfact-api-base`.
22
+ As this package does not contain an own main entrypoint, you have to install it into the base and run that one.
23
+ Please refer to the documentation of the *API Base* to get more information about how the discovery works and how to include this module to your app bundle.
24
+ If everything is working, you should see this module be added to your bundle instance in the log:
25
+ ```
26
+ 2026-[...] - auth.app - INFO - start plugin discovery
27
+ [...]
28
+ 2026-[...] - auth.app - INFO - try to include plugin: perfact.api.dg_fastapi:mount
29
+ [...]
30
+ 2026-[...] - auth.app - INFO - finished discovery and include: X plugins
31
+ ```
@@ -0,0 +1,11 @@
1
+ README.md
2
+ pyproject.toml
3
+ tox.ini
4
+ src/perfact/api/dg_fastapi/__init__.py
5
+ src/perfact/api/dg_fastapi/py.typed
6
+ src/perfact_api_dg_fastapi.egg-info/PKG-INFO
7
+ src/perfact_api_dg_fastapi.egg-info/SOURCES.txt
8
+ src/perfact_api_dg_fastapi.egg-info/dependency_links.txt
9
+ src/perfact_api_dg_fastapi.egg-info/entry_points.txt
10
+ src/perfact_api_dg_fastapi.egg-info/requires.txt
11
+ src/perfact_api_dg_fastapi.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [perfact.api]
2
+ dg = perfact.api.dg_fastapi:mount
@@ -0,0 +1,3 @@
1
+ fastapi[standard-no-fastapi-cloud-cli]
2
+ perfact-api-dg
3
+ perfact-api-main
@@ -0,0 +1,31 @@
1
+ [tox]
2
+ envlist = py3
3
+ isolated_build = true
4
+
5
+ [pytest]
6
+
7
+ [testenv]
8
+ passenv = SSH_AUTH_SOCK, PYTHONPATH, HTTP_PROXY, HTTPS_PROXY
9
+ setenv =
10
+ GIT_SSH_VARIANT=ssh
11
+ GIT_SSH_COMMAND=ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no
12
+
13
+ deps =
14
+ ruff
15
+ pytest
16
+ coverage
17
+ psycopg[binary]
18
+ pytest-postgresql
19
+ pytest-cov
20
+ pytest-typing
21
+ bandit
22
+ mypy
23
+ perfact-api-main
24
+ perfact-api-dg
25
+
26
+ commands =
27
+ ruff format --check
28
+ ruff check
29
+ bandit --configfile {toxinidir}/../bandit.yml -r src
30
+ mypy -p perfact.api.dg_fastapi
31
+ # pytest --cov-branch --cov=perfact.api.dg_fastapi --cov-report=term-missing {posargs:tests}