keepup-integration-log 0.4.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.
- keepup_integration_log-0.4.0/PKG-INFO +18 -0
- keepup_integration_log-0.4.0/README.md +10 -0
- keepup_integration_log-0.4.0/keepup_integration_log/__init__.py +12 -0
- keepup_integration_log-0.4.0/keepup_integration_log/tables.py +31 -0
- keepup_integration_log-0.4.0/keepup_integration_log.egg-info/PKG-INFO +18 -0
- keepup_integration_log-0.4.0/keepup_integration_log.egg-info/SOURCES.txt +10 -0
- keepup_integration_log-0.4.0/keepup_integration_log.egg-info/dependency_links.txt +1 -0
- keepup_integration_log-0.4.0/keepup_integration_log.egg-info/entry_points.txt +2 -0
- keepup_integration_log-0.4.0/keepup_integration_log.egg-info/requires.txt +1 -0
- keepup_integration_log-0.4.0/keepup_integration_log.egg-info/top_level.txt +1 -0
- keepup_integration_log-0.4.0/pyproject.toml +19 -0
- keepup_integration_log-0.4.0/setup.cfg +4 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: keepup-integration-log
|
|
3
|
+
Version: 0.4.0
|
|
4
|
+
Summary: Calls this application makes to outside systems, and the section that shows them.
|
|
5
|
+
Requires-Python: >=3.11
|
|
6
|
+
Description-Content-Type: text/markdown
|
|
7
|
+
Requires-Dist: keepup-db>=0.4.0
|
|
8
|
+
|
|
9
|
+
# keepup-integration-log
|
|
10
|
+
|
|
11
|
+
Calls this application makes to outside systems, and the section that shows them.
|
|
12
|
+
|
|
13
|
+
One capability of [keepup](https://github.com/FedorSergeev/keepup-admin), the framework over FastAPI for admin
|
|
14
|
+
panels: the base is installed as `keepup-admin` and imported as `keepup`, and
|
|
15
|
+
this distribution carries one part of it. It is installed on its own
|
|
16
|
+
(`pip install keepup-integration-log`) or together with the base (`pip install "keepup-admin[panel]"`),
|
|
17
|
+
and it declares itself to the kernel through its
|
|
18
|
+
`[project.entry-points."keepup.plugins"]` entry point.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# keepup-integration-log
|
|
2
|
+
|
|
3
|
+
Calls this application makes to outside systems, and the section that shows them.
|
|
4
|
+
|
|
5
|
+
One capability of [keepup](https://github.com/FedorSergeev/keepup-admin), the framework over FastAPI for admin
|
|
6
|
+
panels: the base is installed as `keepup-admin` and imported as `keepup`, and
|
|
7
|
+
this distribution carries one part of it. It is installed on its own
|
|
8
|
+
(`pip install keepup-integration-log`) or together with the base (`pip install "keepup-admin[panel]"`),
|
|
9
|
+
and it declares itself to the kernel through its
|
|
10
|
+
`[project.entry-points."keepup.plugins"]` entry point.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""Calls this application makes to outside systems, and the section that shows them.
|
|
2
|
+
|
|
3
|
+
This distribution provides `integration_log` and declares one plugin,
|
|
4
|
+
`integration_logs`, in the `keepup.plugins` group. It depends on `keepup-admin`
|
|
5
|
+
for the constructor -- the descriptor, the catalogue, the service registry and
|
|
6
|
+
the lifecycle -- and on nothing of another capability.
|
|
7
|
+
|
|
8
|
+
The code moves here in keepup-124: until then the plugin lives in the framework's
|
|
9
|
+
own `builtin/integration_logs.py` and this package is the home it is moving to.
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
__version__ = "0.4.0"
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"""The tables of the integration log, declared where the capability lives.
|
|
2
|
+
|
|
3
|
+
Task keepup-124. `keepup.schema` no longer declares it: a table belongs to the
|
|
4
|
+
capability that keeps it, and the capability's plugin offers the declaration to
|
|
5
|
+
the abstraction that creates it (keepup-106, keepup-123).
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from sqlalchemy import Column, DateTime, Index, Integer, Text
|
|
9
|
+
|
|
10
|
+
from keepup_db import tables
|
|
11
|
+
|
|
12
|
+
__all__ = ["INTEGRATION_LOGS"]
|
|
13
|
+
|
|
14
|
+
INTEGRATION_LOGS = tables.table(
|
|
15
|
+
"integration_logs",
|
|
16
|
+
tables.auto_id(),
|
|
17
|
+
Column("user_id", Integer, nullable=False),
|
|
18
|
+
Column("username", Text, nullable=False),
|
|
19
|
+
Column("host", Text, nullable=False),
|
|
20
|
+
Column("endpoint", Text, nullable=False),
|
|
21
|
+
Column("method", Text, nullable=False),
|
|
22
|
+
Column("request_body", Text),
|
|
23
|
+
Column("response_body", Text),
|
|
24
|
+
Column("status_code", Integer),
|
|
25
|
+
Column("duration_ms", Integer),
|
|
26
|
+
Column("created_at", DateTime, server_default=tables.NOW),
|
|
27
|
+
tables.foreign_key("user_id", "users", ("id",)),
|
|
28
|
+
Index("idx_integration_logs_user_id", "user_id"),
|
|
29
|
+
Index("idx_integration_logs_created_at", "created_at"),
|
|
30
|
+
Index("idx_integration_logs_host", "host"),
|
|
31
|
+
)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: keepup-integration-log
|
|
3
|
+
Version: 0.4.0
|
|
4
|
+
Summary: Calls this application makes to outside systems, and the section that shows them.
|
|
5
|
+
Requires-Python: >=3.11
|
|
6
|
+
Description-Content-Type: text/markdown
|
|
7
|
+
Requires-Dist: keepup-db>=0.4.0
|
|
8
|
+
|
|
9
|
+
# keepup-integration-log
|
|
10
|
+
|
|
11
|
+
Calls this application makes to outside systems, and the section that shows them.
|
|
12
|
+
|
|
13
|
+
One capability of [keepup](https://github.com/FedorSergeev/keepup-admin), the framework over FastAPI for admin
|
|
14
|
+
panels: the base is installed as `keepup-admin` and imported as `keepup`, and
|
|
15
|
+
this distribution carries one part of it. It is installed on its own
|
|
16
|
+
(`pip install keepup-integration-log`) or together with the base (`pip install "keepup-admin[panel]"`),
|
|
17
|
+
and it declares itself to the kernel through its
|
|
18
|
+
`[project.entry-points."keepup.plugins"]` entry point.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
pyproject.toml
|
|
3
|
+
keepup_integration_log/__init__.py
|
|
4
|
+
keepup_integration_log/tables.py
|
|
5
|
+
keepup_integration_log.egg-info/PKG-INFO
|
|
6
|
+
keepup_integration_log.egg-info/SOURCES.txt
|
|
7
|
+
keepup_integration_log.egg-info/dependency_links.txt
|
|
8
|
+
keepup_integration_log.egg-info/entry_points.txt
|
|
9
|
+
keepup_integration_log.egg-info/requires.txt
|
|
10
|
+
keepup_integration_log.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
keepup-db>=0.4.0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
keepup_integration_log
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "keepup-integration-log"
|
|
7
|
+
version = "0.4.0"
|
|
8
|
+
description = "Calls this application makes to outside systems, and the section that shows them."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.11"
|
|
11
|
+
dependencies = [
|
|
12
|
+
"keepup-db>=0.4.0",
|
|
13
|
+
]
|
|
14
|
+
|
|
15
|
+
[project.entry-points."keepup.plugins"]
|
|
16
|
+
integration_logs = "keepup_integration_log:Integration_logsPlugin"
|
|
17
|
+
|
|
18
|
+
[tool.setuptools]
|
|
19
|
+
packages = ["keepup_integration_log"]
|