python-glowplug 0.3.0__tar.gz → 0.3.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.
- {python_glowplug-0.3.0 → python_glowplug-0.3.1}/PKG-INFO +1 -2
- {python_glowplug-0.3.0 → python_glowplug-0.3.1}/pyproject.toml +1 -2
- {python_glowplug-0.3.0 → python_glowplug-0.3.1}/src/glowplug/config/__init__.py +12 -13
- python_glowplug-0.3.1/src/glowplug/config/__pycache__/__init__.cpython-311.pyc +0 -0
- python_glowplug-0.3.0/src/glowplug/config/__pycache__/__init__.cpython-311.pyc +0 -0
- {python_glowplug-0.3.0 → python_glowplug-0.3.1}/LICENSE +0 -0
- {python_glowplug-0.3.0 → python_glowplug-0.3.1}/README.md +0 -0
- {python_glowplug-0.3.0 → python_glowplug-0.3.1}/src/glowplug/__init__.py +0 -0
- {python_glowplug-0.3.0 → python_glowplug-0.3.1}/src/glowplug/driver/__init__.py +0 -0
- {python_glowplug-0.3.0 → python_glowplug-0.3.1}/src/glowplug/driver/__pycache__/__init__.cpython-311.pyc +0 -0
- {python_glowplug-0.3.0 → python_glowplug-0.3.1}/src/glowplug/driver/__pycache__/base.cpython-311.pyc +0 -0
- {python_glowplug-0.3.0 → python_glowplug-0.3.1}/src/glowplug/driver/__pycache__/mssql.cpython-311.pyc +0 -0
- {python_glowplug-0.3.0 → python_glowplug-0.3.1}/src/glowplug/driver/__pycache__/pg.cpython-311.pyc +0 -0
- {python_glowplug-0.3.0 → python_glowplug-0.3.1}/src/glowplug/driver/__pycache__/sqlite.cpython-311.pyc +0 -0
- {python_glowplug-0.3.0 → python_glowplug-0.3.1}/src/glowplug/driver/base.py +0 -0
- {python_glowplug-0.3.0 → python_glowplug-0.3.1}/src/glowplug/driver/mssql.py +0 -0
- {python_glowplug-0.3.0 → python_glowplug-0.3.1}/src/glowplug/driver/pg.py +0 -0
- {python_glowplug-0.3.0 → python_glowplug-0.3.1}/src/glowplug/driver/sqlite.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-glowplug
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary:
|
|
5
5
|
Home-page: https://github.com/jnu/python-glowplug
|
|
6
6
|
License: MIT
|
|
@@ -15,7 +15,6 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.12
|
|
16
16
|
Requires-Dist: alembic (>=1.5,<2.0)
|
|
17
17
|
Requires-Dist: pydantic (>=2,<3)
|
|
18
|
-
Requires-Dist: pydantic-settings (>=2,<3)
|
|
19
18
|
Requires-Dist: sqlalchemy (>=2,<3)
|
|
20
19
|
Project-URL: Repository, https://github.com/jnu/python-glowplug
|
|
21
20
|
Description-Content-Type: text/markdown
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "python-glowplug"
|
|
3
|
-
version = "0.3.
|
|
3
|
+
version = "0.3.1"
|
|
4
4
|
description = ""
|
|
5
5
|
authors = ["Joe Nudell <jnudell@hks.harvard.edu>"]
|
|
6
6
|
readme = "README.md"
|
|
@@ -15,7 +15,6 @@ python = "^3.9"
|
|
|
15
15
|
sqlalchemy = "^2"
|
|
16
16
|
alembic = "^1.5"
|
|
17
17
|
pydantic = "^2"
|
|
18
|
-
pydantic-settings = "^2"
|
|
19
18
|
|
|
20
19
|
|
|
21
20
|
[tool.poetry.group.dev.dependencies]
|
|
@@ -1,35 +1,34 @@
|
|
|
1
1
|
from functools import cached_property
|
|
2
2
|
from typing import Literal
|
|
3
3
|
|
|
4
|
-
from pydantic import
|
|
5
|
-
from pydantic_settings import BaseSettings
|
|
4
|
+
from pydantic import BaseModel
|
|
6
5
|
|
|
7
6
|
from ..driver.mssql import MsSqlDriver
|
|
8
7
|
from ..driver.pg import PostgresDriver
|
|
9
8
|
from ..driver.sqlite import SqliteDriver
|
|
10
9
|
|
|
11
10
|
|
|
12
|
-
class SqliteSettings(
|
|
11
|
+
class SqliteSettings(BaseModel):
|
|
13
12
|
"""Settings for connecting to SQLite."""
|
|
14
13
|
|
|
15
14
|
engine: Literal["sqlite"]
|
|
16
|
-
path: str =
|
|
15
|
+
path: str = ":memory:"
|
|
17
16
|
|
|
18
17
|
@cached_property
|
|
19
18
|
def driver(self) -> SqliteDriver:
|
|
20
19
|
return SqliteDriver(self.path)
|
|
21
20
|
|
|
22
21
|
|
|
23
|
-
class PostgresSettings(
|
|
22
|
+
class PostgresSettings(BaseModel):
|
|
24
23
|
"""Settings for connecting to Postgres."""
|
|
25
24
|
|
|
26
25
|
engine: Literal["postgres"]
|
|
27
|
-
host: str =
|
|
28
|
-
port: int =
|
|
29
|
-
user: str =
|
|
26
|
+
host: str = "localhost"
|
|
27
|
+
port: int = 5432
|
|
28
|
+
user: str = "postgres"
|
|
30
29
|
password: str
|
|
31
30
|
database: str
|
|
32
|
-
maintenance_db: str | None =
|
|
31
|
+
maintenance_db: str | None = None
|
|
33
32
|
|
|
34
33
|
@cached_property
|
|
35
34
|
def driver(self) -> PostgresDriver:
|
|
@@ -37,16 +36,16 @@ class PostgresSettings(BaseSettings):
|
|
|
37
36
|
return PostgresDriver(url, maintenance_db=self.maintenance_db)
|
|
38
37
|
|
|
39
38
|
|
|
40
|
-
class MsSqlSettings(
|
|
39
|
+
class MsSqlSettings(BaseModel):
|
|
41
40
|
"""Settings for connecting to Microsoft SQL Server."""
|
|
42
41
|
|
|
43
42
|
engine: Literal["mssql"]
|
|
44
43
|
odbc_driver: Literal["ODBC Driver 17 for SQL Server"] = (
|
|
45
44
|
"ODBC Driver 17 for SQL Server"
|
|
46
45
|
)
|
|
47
|
-
host: str =
|
|
48
|
-
port: int =
|
|
49
|
-
user: str =
|
|
46
|
+
host: str = "127.0.0.1"
|
|
47
|
+
port: int = 1433
|
|
48
|
+
user: str = "sa"
|
|
50
49
|
password: str
|
|
51
50
|
database: str
|
|
52
51
|
maintenance_db: str = "master"
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_glowplug-0.3.0 → python_glowplug-0.3.1}/src/glowplug/driver/__pycache__/base.cpython-311.pyc
RENAMED
|
File without changes
|
|
File without changes
|
{python_glowplug-0.3.0 → python_glowplug-0.3.1}/src/glowplug/driver/__pycache__/pg.cpython-311.pyc
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|