Skip to content

Commit afcf2d2

Browse files
committed
rename to modern-pg
1 parent ac0e5e1 commit afcf2d2

14 files changed

+22
-22
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
This library provides retry decorators for sqlalchemy and some helpers
44

5-
Default settings are in [./pg-tools/settings.py](sa_utils/settings.py).
5+
Default settings are in [./pg-tools/settings.py](modern_pg/settings.py).
66
You can redefine them by environment variables.

modern_pg/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from modern_pg.connections import build_connection_factory
2+
from modern_pg.decorators import postgres_reconnect, transaction_retry
3+
from modern_pg.helpers import build_db_dsn, is_dsn_multihost
4+
from modern_pg.transaction import Transaction
5+
6+
7+
__all__ = [
8+
"Transaction",
9+
"build_connection_factory",
10+
"build_db_dsn",
11+
"is_dsn_multihost",
12+
"postgres_reconnect",
13+
"transaction_retry",
14+
]
File renamed without changes.

sa_utils/decorators.py renamed to modern_pg/decorators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import tenacity
77
from sqlalchemy.exc import DBAPIError
88

9-
from sa_utils import settings
9+
from modern_pg import settings
1010

1111

1212
P = typing.ParamSpec("P")
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
name = "sa-utils"
2+
name = "modern-pg"
33
description = "PostgreSQL Tools"
44
authors = [
55
{ name = "Artur Shiriev", email = "[email protected]" },
@@ -22,7 +22,7 @@ classifiers = [
2222
]
2323
dynamic = ["version"]
2424
packages = [
25-
{ include = "sa_utils" },
25+
{ include = "modern_pg" },
2626
]
2727
dependencies = [
2828
"tenacity",

sa_utils/__init__.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)