Compare commits

...

2 Commits

Author SHA1 Message Date
21b1c70989 host creating and listing works now 2026-02-01 21:00:41 +01:00
83f7cb390f added cli tool basics 2026-02-01 21:00:13 +01:00
17 changed files with 442 additions and 21 deletions

View File

@ -1,4 +1,16 @@
import uuid
from sqlalchemy.orm import declarative_base
Base = declarative_base()
Base = declarative_base()
def as_dict(tbl: Base) -> dict:
out = { c.name: getattr(tbl, c.name) for c in tbl.__table__.columns }
# Some data types are not json serializable, so I need to do this separately
for key, value in out.items():
# UUIDs can be represented as strings, as they support creation from their string representation
if type(value) is uuid.UUID: out[key] = str(value)
return out

View File

@ -1,9 +1,13 @@
from pillar_tool.db.base_model import Base
from sqlalchemy import Column, UUID, String, ForeignKey, UniqueConstraint
from sqlalchemy import Column, UUID, String, ForeignKey, UniqueConstraint, Boolean
class Pillar(Base):
"""
Describes a pillar by its name and parent. A parent equal to NULL mains that the pillar is a top level pillar.
Note that this is not a value, as the value is bound to the host.
"""
__tablename__ = 'pillar_tool_pillar'
id = Column(UUID, primary_key=True)
name = Column(String, nullable=False)
@ -15,37 +19,33 @@ class Pillar(Base):
class PillarValue(Base):
"""
A value for a given pillar on a given host.
"""
__tablename__ = 'pillar_tool_pillar_value'
id = Column(UUID, primary_key=True)
pillar_id = Column(UUID, ForeignKey('pillar_tool_pillar.id'), nullable=False)
host_id = Column(UUID, ForeignKey('pillar_tool_host.id'), nullable=True)
host_group_id = Column(UUID, ForeignKey('pillar_tool_host_group.id'), nullable=True)
type = Column(String, nullable=False)
value = Column(String, nullable=False)
__table_args__ = (
UniqueConstraint('pillar_id', 'host_id', 'host_group_id', name='pillar_value_unique_pillar_value'),
UniqueConstraint('pillar_id', 'host_id', name='pillar_value_unique_pillar_value'),
)
class Host(Base):
"""
Describes a host or a hostgroup by its name and parent. A parent equal to NULL mains that the host is a top level
host or hostgroup.
"""
__tablename__ = 'pillar_tool_host'
id = Column(UUID, primary_key=True)
name = Column(String, nullable=False)
host_group_id = Column(UUID, ForeignKey('pillar_tool_host_group.id'), nullable=True)
parent_id = Column(UUID, ForeignKey('pillar_tool_host.id'), nullable=True)
__table_args__ = (
UniqueConstraint('name', name='pillar_tool_host_unique_name'),
UniqueConstraint('name', 'parent_id', name='pillar_tool_host_unique_name'),
)
class HostGroup(Base):
__tablename__ = 'pillar_tool_host_group'
id = Column(UUID, primary_key=True)
name = Column(String, nullable=False)
parent_id = Column(UUID, ForeignKey('pillar_tool_host_group.id'), nullable=True)
__table_args__ = (
UniqueConstraint('name', 'parent_id', name='pillar_tool_host_group_unique_name_parent'),
)

View File

@ -0,0 +1,46 @@
import uuid
from tkinter.font import names
from fastapi import HTTPException
from sqlalchemy.orm import Session
from sqlalchemy import select, insert, update
from pillar_tool.db.models import Host
def list_all_hosts(db: Session) -> list[Host]:
stmt = select(Host)
results = db.execute(stmt).fetchall()
return [ x[0] for x in results ]
def create_host(db: Session, fqdn: str, parent: str | None) -> Host:
# if this host should have a parent, find if it exists
parent_id = None
if parent is not None:
parent_labels = parent.split('/')
for label in parent_labels:
parent_stmt = select(Host).where(Host.name == label and Host.parent_id == parent_id)
results = db.execute(parent_stmt).fetchall()
if len(results) != 1:
raise HTTPException(status_code=400, detail="Parent not found")
parent_host = results[0][0]
parent_id = parent_host.id
# check if the host already exists
select_stmt = select(Host).where(Host.name == fqdn)
results = db.execute(select_stmt).fetchall()
if len(results) == 1:
host = results[0][0]
host.parent_id = parent_id
update_stmt = update(Host).where(Host.name == fqdn).values(parent_id=parent_id)
db.execute(update_stmt)
db.commit()
return host
elif len(results) == 0:
host = Host(name=fqdn, parent_id=parent_id, id=uuid.uuid4())
add_stmt = insert(Host).values(name=host.name, parent_id=host.parent_id, id=host.id)
db.execute(add_stmt)
db.commit()
return host
else:
raise HTTPException(status_code=500, detail="Invalid state of database")

View File

@ -0,0 +1,65 @@
from typing import Any
from pillar_tool.db.models.pillar_data import *
from sqlalchemy import select, insert, union
from sqlalchemy.orm import Session
def get_pillar_name_sequence(name: str) -> list[str]:
return name.split(':')
def generate_host_hierarchy(db: Session, labels: list[str]) -> list[Host]:
path_consumed = []
out = []
last_parent_id = None
for label in labels:
path_consumed += label
stmt = select(Host).where(Host.name == label and Host.parent_id == last_parent_id)
result = list(db.execute(stmt).fetchall())
if not result:
raise RuntimeError(f"No such host(-group): '{':'.join(path_consumed)}'")
# NOTE: this is an assertion because the schema should enforce this
assert len(result) == 1
instance = Host(result[0])
print(instance.id)
out.append(instance)
return out
def get_values_for_host(db: Session, host: str) -> dict:
labels = get_pillar_name_sequence(host)
hierarchy = generate_host_hierarchy(db, labels)
# TODO: generate host hierarchy
# TODO: find all values assigned o this host hierarchy and sort by depth
# TODO: build the pillar structure
return {}
def create_pillar_host(db: Session, host_id: UUID, name: str, value: Any) -> None:
# TODO: generate host hierarchy
# get the involved host or hostgroup
res = db.execute(select(Host).where(Host.id == host_id)).fetchone()
if res is None:
# TODO: handle this error with a custom Exception
raise RuntimeError(f"No Host or Hostgroup with id {host_id} exists!")
host = res[0][0]
# TODO: generate pillar path from name
# TODO: find if pillar already exists
# TODO: create new pillar if it doesn't exist
# TODO: assign value to new or existing pillar
return
def create_pillar_host_group(db: Session, host_group: UUID, name: str, value: Any) -> None:
pass

View File

@ -1,4 +1,6 @@
# load config so everything else can work
from pillar_tool.db.base_model import as_dict
from pillar_tool.schemas import HostCreateParams
from pillar_tool.util import load_config, config
load_config()
@ -6,6 +8,7 @@ from starlette.middleware.base import BaseHTTPMiddleware
from pillar_tool.db.database import get_connection
from pillar_tool.db.queries.auth_queries import create_user
from pillar_tool.db.queries.host_queries import *
from fastapi import FastAPI
@ -63,8 +66,31 @@ app.exception_handler(Exception)(on_general_error)
async def root():
return {"message": "Hello World"}
@app.get("/health")
async def health():
# TODO: improve health check
return {"message": "Healthy"}
@app.get("/pillar/{host}")
async def pillar(req: Request, host: str):
async def pillar_get(req: Request, host: str):
print(req.headers)
#return JSONResponse(content=collect_pillar_data(host))
return JSONResponse({})
@app.post("/pillar/{host}")
async def pillar_set(request: Request, host: str, value: str):
print(request.headers)
@app.get("/hosts")
async def host_list(request: Request):
all_hosts = list_all_hosts(request.state.db)
return JSONResponse([as_dict(x) for x in all_hosts])
@app.post("/host/{fqdn}")
async def host_add(request: Request, fqdn: str, params: HostCreateParams):
new_host = create_host(request.state.db, fqdn, params.parent)
if params.parent:
print(f"Created new host: {new_host} with parent: {params.parent}")
else:
print(f"Created new host: {new_host}")

View File

@ -6,12 +6,20 @@ import hypercorn.logging
from starlette.authentication import AuthenticationBackend, AuthenticationError, AuthCredentials, SimpleUser
from pillar_tool.db.queries.auth_queries import verify_user
from pillar_tool.util import config
WHITELISTED_PATHS = [
"/health"
]
class BasicAuthBackend(AuthenticationBackend):
async def authenticate(self, conn):
print("test 2")
# check for whitelisted paths
if conn.url.path in WHITELISTED_PATHS:
return
if "Authorization" not in conn.headers:
raise AuthenticationError('No Authorization Header')
@ -24,8 +32,8 @@ class BasicAuthBackend(AuthenticationBackend):
except (ValueError, UnicodeDecodeError, binascii.Error):
raise AuthenticationError('Invalid basic auth credentials')
username, _, password = decoded.partition(":")
username, what, password = decoded.partition(":")
print(username, what, password)
user = verify_user(conn.state.db, username, password)
if user is None:

78
pillar_tool/ptcli.py Normal file
View File

@ -0,0 +1,78 @@
import base64
import click
import requests
from click import Context
from pillar_tool.util import config, load_config, Config
cfg: Config | None = None
base_url: str | None = None
auth_header: dict[str, str] | None = None
@click.group("command")
def main():
global cfg, base_url, auth_header
# load the configuration and store it
load_config()
cfg = config()
base_url = f"{cfg.ptcli.scheme}://{cfg.ptcli.host}:{cfg.ptcli.port}"
auth_header = { 'Authorization': f"Basic {base64.b64encode(f"{cfg.ptcli.user}:{cfg.ptcli.password}".encode('utf-8')).decode('ascii')}" }
# health check of the api
try:
response = requests.get(f"{base_url}/health")
response.raise_for_status()
except requests.exceptions.HTTPError as e:
raise click.ClickException(f"API seems to be unhealthy:\n{e}")
except requests.exceptions.ConnectionError as e:
raise click.ClickException("Unable to connect to PillarTool API")
@main.group("pillar")
def pillar():
pass
@main.group("host")
def host():
pass
@main.group("query")
def query():
pass
@pillar.command("get")
def pillar_get():
print("pillar_get")
@pillar.command("list")
def pillar_list():
print("pillar_list")
@host.command("list")
def host_list():
click.echo("Listing known hosts...")
try:
response = requests.get(f"{base_url}/hosts", headers=auth_header)
response.raise_for_status()
print(response.json())
except requests.exceptions.HTTPError as e:
raise click.ClickException(f"Failed to list hosts:\n{e}")
@host.command("create")
@click.argument("fqdn")
@click.argument("parent", default=None)
def host_create(fqdn: str, parent: str | None):
click.echo("Creating host...")
try:
response = requests.post(f"{base_url}/host/{fqdn}", json={'parent': parent}, headers=auth_header)
response.raise_for_status()
except requests.exceptions.HTTPError as e:
raise click.ClickException(f"Failed to create host:\n{e}")
click.echo(f"Host '{fqdn}' created!")

4
pillar_tool/schemas.py Normal file
View File

@ -0,0 +1,4 @@
from pydantic import BaseModel
class HostCreateParams(BaseModel):
parent: str | None

View File

@ -8,5 +8,20 @@ class DatabaseConfig(BaseModel):
port: int
database: str
class RuntimeConfig(BaseModel):
environment: str
scheme: str
host: str
port: int
class PTCLIConfig(BaseModel):
scheme: str
host: str
port: int
user: str
password: str
class Config(BaseModel):
db: DatabaseConfig
db: DatabaseConfig
runtime: RuntimeConfig
ptcli: PTCLIConfig

View File

@ -0,0 +1,14 @@
Metadata-Version: 2.4
Name: pillartool
Version: 0.1.0
Summary: Add your description here
Requires-Python: >=3.13
Requires-Dist: alembic>=1.17.2
Requires-Dist: click>=8.3.1
Requires-Dist: fastapi>=0.126.0
Requires-Dist: hypercorn>=0.18.0
Requires-Dist: jinja2>=3.1.6
Requires-Dist: psycopg2>=2.9.11
Requires-Dist: pycryptodome>=3.23.0
Requires-Dist: pydantic>=2.12.5
Requires-Dist: sqlalchemy>=2.0.45

View File

@ -0,0 +1,35 @@
pyproject.toml
pillar_tool/__init__.py
pillar_tool/main.py
pillar_tool/ptcli.py
pillar_tool/db/__init__.py
pillar_tool/db/base_model.py
pillar_tool/db/database.py
pillar_tool/db/migrations/__init__.py
pillar_tool/db/migrations/env.py
pillar_tool/db/migrations/versions/2025_12_24_1227-e1f390264396_basic_user_setup.py
pillar_tool/db/migrations/versions/2025_12_27_1152-f6c806bab641_added_email_to_user.py
pillar_tool/db/migrations/versions/2025_12_27_1158-ae8de58aa10c_username_is_now_unique.py
pillar_tool/db/migrations/versions/2025_12_27_1159-4cc7f4e295f1_added_unique_to_permission_and_role_name.py
pillar_tool/db/migrations/versions/2025_12_27_1958-678356102624_added_pillar_structure.py
pillar_tool/db/migrations/versions/2025_12_30_1009-c6fe061ad732_better_uniqueness_contraints.py
pillar_tool/db/migrations/versions/2026_01_01_1503-54537e95fc4d_coupled_host_and_hostgroup_into_single_.py
pillar_tool/db/models/__init__.py
pillar_tool/db/models/pillar_data.py
pillar_tool/db/models/user.py
pillar_tool/db/queries/__init__.py
pillar_tool/db/queries/auth_queries.py
pillar_tool/db/queries/pillar_queries.py
pillar_tool/frontend/__init__.py
pillar_tool/frontend/pillar_view.py
pillar_tool/middleware/__init__.py
pillar_tool/middleware/basicauth_backend.py
pillar_tool/middleware/db_connection.py
pillar_tool/util/__init__.py
pillar_tool/util/config.py
pillartool.egg-info/PKG-INFO
pillartool.egg-info/SOURCES.txt
pillartool.egg-info/dependency_links.txt
pillartool.egg-info/entry_points.txt
pillartool.egg-info/requires.txt
pillartool.egg-info/top_level.txt

View File

@ -0,0 +1 @@

View File

@ -0,0 +1,2 @@
[console_scripts]
ptcli = pillar_tool.ptcli:main

View File

@ -0,0 +1,9 @@
alembic>=1.17.2
click>=8.3.1
fastapi>=0.126.0
hypercorn>=0.18.0
jinja2>=3.1.6
psycopg2>=2.9.11
pycryptodome>=3.23.0
pydantic>=2.12.5
sqlalchemy>=2.0.45

View File

@ -0,0 +1 @@
pillar_tool

View File

@ -5,11 +5,17 @@ description = "Add your description here"
requires-python = ">=3.13"
dependencies = [
"alembic>=1.17.2",
"click>=8.3.1",
"fastapi>=0.126.0",
"hypercorn>=0.18.0",
"jinja2>=3.1.6",
"psycopg2>=2.9.11",
"pycryptodome>=3.23.0",
"pydantic>=2.12.5",
"requests>=2.32.5",
"sqlalchemy>=2.0.45",
]
[project.scripts]
ptcli = "pillar_tool.ptcli:main"

99
uv.lock generated
View File

@ -46,6 +46,77 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/7f/9c/36c5c37947ebfb8c7f22e0eb6e4d188ee2d53aa3880f3f2744fb894f0cb1/anyio-4.12.0-py3-none-any.whl", hash = "sha256:dad2376a628f98eeca4881fc56cd06affd18f659b17a747d3ff0307ced94b1bb", size = 113362, upload-time = "2025-11-28T23:36:57.897Z" },
]
[[package]]
name = "certifi"
version = "2026.1.4"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/e0/2d/a891ca51311197f6ad14a7ef42e2399f36cf2f9bd44752b3dc4eab60fdc5/certifi-2026.1.4.tar.gz", hash = "sha256:ac726dd470482006e014ad384921ed6438c457018f4b3d204aea4281258b2120", size = 154268, upload-time = "2026-01-04T02:42:41.825Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/e6/ad/3cc14f097111b4de0040c83a525973216457bbeeb63739ef1ed275c1c021/certifi-2026.1.4-py3-none-any.whl", hash = "sha256:9943707519e4add1115f44c2bc244f782c0249876bf51b6599fee1ffbedd685c", size = 152900, upload-time = "2026-01-04T02:42:40.15Z" },
]
[[package]]
name = "charset-normalizer"
version = "3.4.4"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/13/69/33ddede1939fdd074bce5434295f38fae7136463422fe4fd3e0e89b98062/charset_normalizer-3.4.4.tar.gz", hash = "sha256:94537985111c35f28720e43603b8e7b43a6ecfb2ce1d3058bbe955b73404e21a", size = 129418, upload-time = "2025-10-14T04:42:32.879Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/97/45/4b3a1239bbacd321068ea6e7ac28875b03ab8bc0aa0966452db17cd36714/charset_normalizer-3.4.4-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:e1f185f86a6f3403aa2420e815904c67b2f9ebc443f045edd0de921108345794", size = 208091, upload-time = "2025-10-14T04:41:13.346Z" },
{ url = "https://files.pythonhosted.org/packages/7d/62/73a6d7450829655a35bb88a88fca7d736f9882a27eacdca2c6d505b57e2e/charset_normalizer-3.4.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6b39f987ae8ccdf0d2642338faf2abb1862340facc796048b604ef14919e55ed", size = 147936, upload-time = "2025-10-14T04:41:14.461Z" },
{ url = "https://files.pythonhosted.org/packages/89/c5/adb8c8b3d6625bef6d88b251bbb0d95f8205831b987631ab0c8bb5d937c2/charset_normalizer-3.4.4-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:3162d5d8ce1bb98dd51af660f2121c55d0fa541b46dff7bb9b9f86ea1d87de72", size = 144180, upload-time = "2025-10-14T04:41:15.588Z" },
{ url = "https://files.pythonhosted.org/packages/91/ed/9706e4070682d1cc219050b6048bfd293ccf67b3d4f5a4f39207453d4b99/charset_normalizer-3.4.4-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:81d5eb2a312700f4ecaa977a8235b634ce853200e828fbadf3a9c50bab278328", size = 161346, upload-time = "2025-10-14T04:41:16.738Z" },
{ url = "https://files.pythonhosted.org/packages/d5/0d/031f0d95e4972901a2f6f09ef055751805ff541511dc1252ba3ca1f80cf5/charset_normalizer-3.4.4-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5bd2293095d766545ec1a8f612559f6b40abc0eb18bb2f5d1171872d34036ede", size = 158874, upload-time = "2025-10-14T04:41:17.923Z" },
{ url = "https://files.pythonhosted.org/packages/f5/83/6ab5883f57c9c801ce5e5677242328aa45592be8a00644310a008d04f922/charset_normalizer-3.4.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a8a8b89589086a25749f471e6a900d3f662d1d3b6e2e59dcecf787b1cc3a1894", size = 153076, upload-time = "2025-10-14T04:41:19.106Z" },
{ url = "https://files.pythonhosted.org/packages/75/1e/5ff781ddf5260e387d6419959ee89ef13878229732732ee73cdae01800f2/charset_normalizer-3.4.4-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:bc7637e2f80d8530ee4a78e878bce464f70087ce73cf7c1caf142416923b98f1", size = 150601, upload-time = "2025-10-14T04:41:20.245Z" },
{ url = "https://files.pythonhosted.org/packages/d7/57/71be810965493d3510a6ca79b90c19e48696fb1ff964da319334b12677f0/charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f8bf04158c6b607d747e93949aa60618b61312fe647a6369f88ce2ff16043490", size = 150376, upload-time = "2025-10-14T04:41:21.398Z" },
{ url = "https://files.pythonhosted.org/packages/e5/d5/c3d057a78c181d007014feb7e9f2e65905a6c4ef182c0ddf0de2924edd65/charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:554af85e960429cf30784dd47447d5125aaa3b99a6f0683589dbd27e2f45da44", size = 144825, upload-time = "2025-10-14T04:41:22.583Z" },
{ url = "https://files.pythonhosted.org/packages/e6/8c/d0406294828d4976f275ffbe66f00266c4b3136b7506941d87c00cab5272/charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:74018750915ee7ad843a774364e13a3db91682f26142baddf775342c3f5b1133", size = 162583, upload-time = "2025-10-14T04:41:23.754Z" },
{ url = "https://files.pythonhosted.org/packages/d7/24/e2aa1f18c8f15c4c0e932d9287b8609dd30ad56dbe41d926bd846e22fb8d/charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:c0463276121fdee9c49b98908b3a89c39be45d86d1dbaa22957e38f6321d4ce3", size = 150366, upload-time = "2025-10-14T04:41:25.27Z" },
{ url = "https://files.pythonhosted.org/packages/e4/5b/1e6160c7739aad1e2df054300cc618b06bf784a7a164b0f238360721ab86/charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:362d61fd13843997c1c446760ef36f240cf81d3ebf74ac62652aebaf7838561e", size = 160300, upload-time = "2025-10-14T04:41:26.725Z" },
{ url = "https://files.pythonhosted.org/packages/7a/10/f882167cd207fbdd743e55534d5d9620e095089d176d55cb22d5322f2afd/charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:9a26f18905b8dd5d685d6d07b0cdf98a79f3c7a918906af7cc143ea2e164c8bc", size = 154465, upload-time = "2025-10-14T04:41:28.322Z" },
{ url = "https://files.pythonhosted.org/packages/89/66/c7a9e1b7429be72123441bfdbaf2bc13faab3f90b933f664db506dea5915/charset_normalizer-3.4.4-cp313-cp313-win32.whl", hash = "sha256:9b35f4c90079ff2e2edc5b26c0c77925e5d2d255c42c74fdb70fb49b172726ac", size = 99404, upload-time = "2025-10-14T04:41:29.95Z" },
{ url = "https://files.pythonhosted.org/packages/c4/26/b9924fa27db384bdcd97ab83b4f0a8058d96ad9626ead570674d5e737d90/charset_normalizer-3.4.4-cp313-cp313-win_amd64.whl", hash = "sha256:b435cba5f4f750aa6c0a0d92c541fb79f69a387c91e61f1795227e4ed9cece14", size = 107092, upload-time = "2025-10-14T04:41:31.188Z" },
{ url = "https://files.pythonhosted.org/packages/af/8f/3ed4bfa0c0c72a7ca17f0380cd9e4dd842b09f664e780c13cff1dcf2ef1b/charset_normalizer-3.4.4-cp313-cp313-win_arm64.whl", hash = "sha256:542d2cee80be6f80247095cc36c418f7bddd14f4a6de45af91dfad36d817bba2", size = 100408, upload-time = "2025-10-14T04:41:32.624Z" },
{ url = "https://files.pythonhosted.org/packages/2a/35/7051599bd493e62411d6ede36fd5af83a38f37c4767b92884df7301db25d/charset_normalizer-3.4.4-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:da3326d9e65ef63a817ecbcc0df6e94463713b754fe293eaa03da99befb9a5bd", size = 207746, upload-time = "2025-10-14T04:41:33.773Z" },
{ url = "https://files.pythonhosted.org/packages/10/9a/97c8d48ef10d6cd4fcead2415523221624bf58bcf68a802721a6bc807c8f/charset_normalizer-3.4.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8af65f14dc14a79b924524b1e7fffe304517b2bff5a58bf64f30b98bbc5079eb", size = 147889, upload-time = "2025-10-14T04:41:34.897Z" },
{ url = "https://files.pythonhosted.org/packages/10/bf/979224a919a1b606c82bd2c5fa49b5c6d5727aa47b4312bb27b1734f53cd/charset_normalizer-3.4.4-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:74664978bb272435107de04e36db5a9735e78232b85b77d45cfb38f758efd33e", size = 143641, upload-time = "2025-10-14T04:41:36.116Z" },
{ url = "https://files.pythonhosted.org/packages/ba/33/0ad65587441fc730dc7bd90e9716b30b4702dc7b617e6ba4997dc8651495/charset_normalizer-3.4.4-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:752944c7ffbfdd10c074dc58ec2d5a8a4cd9493b314d367c14d24c17684ddd14", size = 160779, upload-time = "2025-10-14T04:41:37.229Z" },
{ url = "https://files.pythonhosted.org/packages/67/ed/331d6b249259ee71ddea93f6f2f0a56cfebd46938bde6fcc6f7b9a3d0e09/charset_normalizer-3.4.4-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d1f13550535ad8cff21b8d757a3257963e951d96e20ec82ab44bc64aeb62a191", size = 159035, upload-time = "2025-10-14T04:41:38.368Z" },
{ url = "https://files.pythonhosted.org/packages/67/ff/f6b948ca32e4f2a4576aa129d8bed61f2e0543bf9f5f2b7fc3758ed005c9/charset_normalizer-3.4.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ecaae4149d99b1c9e7b88bb03e3221956f68fd6d50be2ef061b2381b61d20838", size = 152542, upload-time = "2025-10-14T04:41:39.862Z" },
{ url = "https://files.pythonhosted.org/packages/16/85/276033dcbcc369eb176594de22728541a925b2632f9716428c851b149e83/charset_normalizer-3.4.4-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:cb6254dc36b47a990e59e1068afacdcd02958bdcce30bb50cc1700a8b9d624a6", size = 149524, upload-time = "2025-10-14T04:41:41.319Z" },
{ url = "https://files.pythonhosted.org/packages/9e/f2/6a2a1f722b6aba37050e626530a46a68f74e63683947a8acff92569f979a/charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:c8ae8a0f02f57a6e61203a31428fa1d677cbe50c93622b4149d5c0f319c1d19e", size = 150395, upload-time = "2025-10-14T04:41:42.539Z" },
{ url = "https://files.pythonhosted.org/packages/60/bb/2186cb2f2bbaea6338cad15ce23a67f9b0672929744381e28b0592676824/charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:47cc91b2f4dd2833fddaedd2893006b0106129d4b94fdb6af1f4ce5a9965577c", size = 143680, upload-time = "2025-10-14T04:41:43.661Z" },
{ url = "https://files.pythonhosted.org/packages/7d/a5/bf6f13b772fbb2a90360eb620d52ed8f796f3c5caee8398c3b2eb7b1c60d/charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:82004af6c302b5d3ab2cfc4cc5f29db16123b1a8417f2e25f9066f91d4411090", size = 162045, upload-time = "2025-10-14T04:41:44.821Z" },
{ url = "https://files.pythonhosted.org/packages/df/c5/d1be898bf0dc3ef9030c3825e5d3b83f2c528d207d246cbabe245966808d/charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:2b7d8f6c26245217bd2ad053761201e9f9680f8ce52f0fcd8d0755aeae5b2152", size = 149687, upload-time = "2025-10-14T04:41:46.442Z" },
{ url = "https://files.pythonhosted.org/packages/a5/42/90c1f7b9341eef50c8a1cb3f098ac43b0508413f33affd762855f67a410e/charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:799a7a5e4fb2d5898c60b640fd4981d6a25f1c11790935a44ce38c54e985f828", size = 160014, upload-time = "2025-10-14T04:41:47.631Z" },
{ url = "https://files.pythonhosted.org/packages/76/be/4d3ee471e8145d12795ab655ece37baed0929462a86e72372fd25859047c/charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:99ae2cffebb06e6c22bdc25801d7b30f503cc87dbd283479e7b606f70aff57ec", size = 154044, upload-time = "2025-10-14T04:41:48.81Z" },
{ url = "https://files.pythonhosted.org/packages/b0/6f/8f7af07237c34a1defe7defc565a9bc1807762f672c0fde711a4b22bf9c0/charset_normalizer-3.4.4-cp314-cp314-win32.whl", hash = "sha256:f9d332f8c2a2fcbffe1378594431458ddbef721c1769d78e2cbc06280d8155f9", size = 99940, upload-time = "2025-10-14T04:41:49.946Z" },
{ url = "https://files.pythonhosted.org/packages/4b/51/8ade005e5ca5b0d80fb4aff72a3775b325bdc3d27408c8113811a7cbe640/charset_normalizer-3.4.4-cp314-cp314-win_amd64.whl", hash = "sha256:8a6562c3700cce886c5be75ade4a5db4214fda19fede41d9792d100288d8f94c", size = 107104, upload-time = "2025-10-14T04:41:51.051Z" },
{ url = "https://files.pythonhosted.org/packages/da/5f/6b8f83a55bb8278772c5ae54a577f3099025f9ade59d0136ac24a0df4bde/charset_normalizer-3.4.4-cp314-cp314-win_arm64.whl", hash = "sha256:de00632ca48df9daf77a2c65a484531649261ec9f25489917f09e455cb09ddb2", size = 100743, upload-time = "2025-10-14T04:41:52.122Z" },
{ url = "https://files.pythonhosted.org/packages/0a/4c/925909008ed5a988ccbb72dcc897407e5d6d3bd72410d69e051fc0c14647/charset_normalizer-3.4.4-py3-none-any.whl", hash = "sha256:7a32c560861a02ff789ad905a2fe94e3f840803362c84fecf1851cb4cf3dc37f", size = 53402, upload-time = "2025-10-14T04:42:31.76Z" },
]
[[package]]
name = "click"
version = "8.3.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "colorama", marker = "sys_platform == 'win32'" },
]
sdist = { url = "https://files.pythonhosted.org/packages/3d/fa/656b739db8587d7b5dfa22e22ed02566950fbfbcdc20311993483657a5c0/click-8.3.1.tar.gz", hash = "sha256:12ff4785d337a1bb490bb7e9c2b1ee5da3112e94a8622f26a6c77f5d2fc6842a", size = 295065, upload-time = "2025-11-15T20:45:42.706Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/98/78/01c019cdb5d6498122777c1a43056ebb3ebfeef2076d9d026bfe15583b2b/click-8.3.1-py3-none-any.whl", hash = "sha256:981153a64e25f12d547d3426c367a4857371575ee7ad18df2a6183ab0545b2a6", size = 108274, upload-time = "2025-11-15T20:45:41.139Z" },
]
[[package]]
name = "colorama"
version = "0.4.6"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" },
]
[[package]]
name = "fastapi"
version = "0.126.0"
@ -238,24 +309,28 @@ version = "0.1.0"
source = { virtual = "." }
dependencies = [
{ name = "alembic" },
{ name = "click" },
{ name = "fastapi" },
{ name = "hypercorn" },
{ name = "jinja2" },
{ name = "psycopg2" },
{ name = "pycryptodome" },
{ name = "pydantic" },
{ name = "requests" },
{ name = "sqlalchemy" },
]
[package.metadata]
requires-dist = [
{ name = "alembic", specifier = ">=1.17.2" },
{ name = "click", specifier = ">=8.3.1" },
{ name = "fastapi", specifier = ">=0.126.0" },
{ name = "hypercorn", specifier = ">=0.18.0" },
{ name = "jinja2", specifier = ">=3.1.6" },
{ name = "psycopg2", specifier = ">=2.9.11" },
{ name = "pycryptodome", specifier = ">=3.23.0" },
{ name = "pydantic", specifier = ">=2.12.5" },
{ name = "requests", specifier = ">=2.32.5" },
{ name = "sqlalchemy", specifier = ">=2.0.45" },
]
@ -376,6 +451,21 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/9f/ed/068e41660b832bb0b1aa5b58011dea2a3fe0ba7861ff38c4d4904c1c1a99/pydantic_core-2.41.5-cp314-cp314t-win_arm64.whl", hash = "sha256:35b44f37a3199f771c3eaa53051bc8a70cd7b54f333531c59e29fd4db5d15008", size = 1974769, upload-time = "2025-11-04T13:42:01.186Z" },
]
[[package]]
name = "requests"
version = "2.32.5"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "certifi" },
{ name = "charset-normalizer" },
{ name = "idna" },
{ name = "urllib3" },
]
sdist = { url = "https://files.pythonhosted.org/packages/c9/74/b3ff8e6c8446842c3f5c837e9c3dfcfe2018ea6ecef224c710c85ef728f4/requests-2.32.5.tar.gz", hash = "sha256:dbba0bac56e100853db0ea71b82b4dfd5fe2bf6d3754a8893c3af500cec7d7cf", size = 134517, upload-time = "2025-08-18T20:46:02.573Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/1e/db/4254e3eabe8020b458f1a747140d32277ec7a271daf1d235b70dc0b4e6e3/requests-2.32.5-py3-none-any.whl", hash = "sha256:2462f94637a34fd532264295e186976db0f5d453d1cdd31473c85a6a161affb6", size = 64738, upload-time = "2025-08-18T20:46:00.542Z" },
]
[[package]]
name = "sqlalchemy"
version = "2.0.45"
@ -438,6 +528,15 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/dc/9b/47798a6c91d8bdb567fe2698fe81e0c6b7cb7ef4d13da4114b41d239f65d/typing_inspection-0.4.2-py3-none-any.whl", hash = "sha256:4ed1cacbdc298c220f1bd249ed5287caa16f34d44ef4e9c3d0cbad5b521545e7", size = 14611, upload-time = "2025-10-01T02:14:40.154Z" },
]
[[package]]
name = "urllib3"
version = "2.6.3"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/c7/24/5f1b3bdffd70275f6661c76461e25f024d5a38a46f04aaca912426a2b1d3/urllib3-2.6.3.tar.gz", hash = "sha256:1b62b6884944a57dbe321509ab94fd4d3b307075e0c2eae991ac71ee15ad38ed", size = 435556, upload-time = "2026-01-07T16:24:43.925Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/39/08/aaaad47bc4e9dc8c725e68f9d04865dbcb2052843ff09c97b08904852d84/urllib3-2.6.3-py3-none-any.whl", hash = "sha256:bf272323e553dfb2e87d9bfd225ca7b0f467b919d7bbd355436d3fd37cb0acd4", size = 131584, upload-time = "2026-01-07T16:24:42.685Z" },
]
[[package]]
name = "wsproto"
version = "1.3.2"