Skip to content

Commit ac0e5e1

Browse files
committed
rename to sa-utils
1 parent a86e236 commit ac0e5e1

File tree

14 files changed

+23
-23
lines changed

14 files changed

+23
-23
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](pg_tools/settings.py).
5+
Default settings are in [./pg-tools/settings.py](sa_utils/settings.py).
66
You can redefine them by environment variables.

pg_tools/__init__.py

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

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
name = "pg-tools"
2+
name = "sa-utils"
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 = "pg_tools" },
25+
{ include = "sa_utils" },
2626
]
2727
dependencies = [
2828
"tenacity",
@@ -31,7 +31,7 @@ dependencies = [
3131
]
3232

3333
[project.urls]
34-
repository = "https://github.com/modern-python/pg-tools"
34+
repository = "https://github.com/modern-python/sa-utils"
3535

3636
[tool.uv]
3737
dev-dependencies = [

sa_utils/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from sa_utils.connections import build_connection_factory
2+
from sa_utils.decorators import postgres_reconnect, transaction_retry
3+
from sa_utils.helpers import build_db_dsn, is_dsn_multihost
4+
from sa_utils.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.

pg_tools/decorators.py renamed to sa_utils/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 pg_tools import settings
9+
from sa_utils 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.

0 commit comments

Comments
 (0)