postgreslite 0.2.0__tar.gz → 0.2.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.
- postgreslite-0.2.1/PKG-INFO +38 -0
- postgreslite-0.2.1/PostgresLite.egg-info/PKG-INFO +38 -0
- postgreslite-0.2.1/README.md +20 -0
- {postgreslite-0.2.0 → postgreslite-0.2.1}/postgreslite/__init__.py +1 -1
- {postgreslite-0.2.0 → postgreslite-0.2.1}/postgreslite/handler.py +1 -1
- postgreslite-0.2.0/PKG-INFO +0 -25
- postgreslite-0.2.0/PostgresLite.egg-info/PKG-INFO +0 -25
- postgreslite-0.2.0/README.md +0 -7
- {postgreslite-0.2.0 → postgreslite-0.2.1}/LICENSE +0 -0
- {postgreslite-0.2.0 → postgreslite-0.2.1}/PostgresLite.egg-info/SOURCES.txt +0 -0
- {postgreslite-0.2.0 → postgreslite-0.2.1}/PostgresLite.egg-info/dependency_links.txt +0 -0
- {postgreslite-0.2.0 → postgreslite-0.2.1}/PostgresLite.egg-info/requires.txt +0 -0
- {postgreslite-0.2.0 → postgreslite-0.2.1}/PostgresLite.egg-info/top_level.txt +0 -0
- {postgreslite-0.2.0 → postgreslite-0.2.1}/postgreslite/pool.py +0 -0
- {postgreslite-0.2.0 → postgreslite-0.2.1}/pyproject.toml +0 -0
- {postgreslite-0.2.0 → postgreslite-0.2.1}/setup.cfg +0 -0
- {postgreslite-0.2.0 → postgreslite-0.2.1}/tests/test_file.py +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: PostgresLite
|
|
3
|
+
Version: 0.2.1
|
|
4
|
+
Summary: Python SQLite combined with syntax compared to asyncpg progject.
|
|
5
|
+
Author-email: AlexFlipnote <root@alexflipnote.dev>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/AlexFlipnote/PostgresLite
|
|
8
|
+
Project-URL: Repository, https://github.com/AlexFlipnote/PostgresLite
|
|
9
|
+
Keywords: asyncpg,sqlite,postgres,lite,database,sql
|
|
10
|
+
Requires-Python: >=3.11.0
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Provides-Extra: dev
|
|
14
|
+
Requires-Dist: pyright>=1.1.401; extra == "dev"
|
|
15
|
+
Requires-Dist: ruff>=0.11.13; extra == "dev"
|
|
16
|
+
Requires-Dist: toml>=0.10.2; extra == "dev"
|
|
17
|
+
Dynamic: license-file
|
|
18
|
+
|
|
19
|
+
# PostgresLite
|
|
20
|
+
Python SQLite combined with syntax compared to asyncpg progject.
|
|
21
|
+
|
|
22
|
+
No longer do you need to use the default SQLite and rather have a more powerful and easy way to work with SQLite and have good, default additions for things like timestamps, dates.
|
|
23
|
+
It also supports async and sync connections, in case you need to use it in an async environment.
|
|
24
|
+
|
|
25
|
+
## Install
|
|
26
|
+
You can install it by running `pip install postgreslite`
|
|
27
|
+
|
|
28
|
+
## How to use
|
|
29
|
+
```py
|
|
30
|
+
from postgreslite import PostgresLite
|
|
31
|
+
|
|
32
|
+
db = PostgresLite("./hello_world.db")
|
|
33
|
+
pool = db.connect()
|
|
34
|
+
|
|
35
|
+
# Same syntax as asyncpg with pool connection
|
|
36
|
+
```
|
|
37
|
+
The value you put in PostgresLite will become the filename of the database.
|
|
38
|
+
If you leave it empty, it will use the default filename of `storage.db`.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: PostgresLite
|
|
3
|
+
Version: 0.2.1
|
|
4
|
+
Summary: Python SQLite combined with syntax compared to asyncpg progject.
|
|
5
|
+
Author-email: AlexFlipnote <root@alexflipnote.dev>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/AlexFlipnote/PostgresLite
|
|
8
|
+
Project-URL: Repository, https://github.com/AlexFlipnote/PostgresLite
|
|
9
|
+
Keywords: asyncpg,sqlite,postgres,lite,database,sql
|
|
10
|
+
Requires-Python: >=3.11.0
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Provides-Extra: dev
|
|
14
|
+
Requires-Dist: pyright>=1.1.401; extra == "dev"
|
|
15
|
+
Requires-Dist: ruff>=0.11.13; extra == "dev"
|
|
16
|
+
Requires-Dist: toml>=0.10.2; extra == "dev"
|
|
17
|
+
Dynamic: license-file
|
|
18
|
+
|
|
19
|
+
# PostgresLite
|
|
20
|
+
Python SQLite combined with syntax compared to asyncpg progject.
|
|
21
|
+
|
|
22
|
+
No longer do you need to use the default SQLite and rather have a more powerful and easy way to work with SQLite and have good, default additions for things like timestamps, dates.
|
|
23
|
+
It also supports async and sync connections, in case you need to use it in an async environment.
|
|
24
|
+
|
|
25
|
+
## Install
|
|
26
|
+
You can install it by running `pip install postgreslite`
|
|
27
|
+
|
|
28
|
+
## How to use
|
|
29
|
+
```py
|
|
30
|
+
from postgreslite import PostgresLite
|
|
31
|
+
|
|
32
|
+
db = PostgresLite("./hello_world.db")
|
|
33
|
+
pool = db.connect()
|
|
34
|
+
|
|
35
|
+
# Same syntax as asyncpg with pool connection
|
|
36
|
+
```
|
|
37
|
+
The value you put in PostgresLite will become the filename of the database.
|
|
38
|
+
If you leave it empty, it will use the default filename of `storage.db`.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# PostgresLite
|
|
2
|
+
Python SQLite combined with syntax compared to asyncpg progject.
|
|
3
|
+
|
|
4
|
+
No longer do you need to use the default SQLite and rather have a more powerful and easy way to work with SQLite and have good, default additions for things like timestamps, dates.
|
|
5
|
+
It also supports async and sync connections, in case you need to use it in an async environment.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
You can install it by running `pip install postgreslite`
|
|
9
|
+
|
|
10
|
+
## How to use
|
|
11
|
+
```py
|
|
12
|
+
from postgreslite import PostgresLite
|
|
13
|
+
|
|
14
|
+
db = PostgresLite("./hello_world.db")
|
|
15
|
+
pool = db.connect()
|
|
16
|
+
|
|
17
|
+
# Same syntax as asyncpg with pool connection
|
|
18
|
+
```
|
|
19
|
+
The value you put in PostgresLite will become the filename of the database.
|
|
20
|
+
If you leave it empty, it will use the default filename of `storage.db`.
|
|
@@ -85,7 +85,7 @@ class PostgresLite:
|
|
|
85
85
|
|
|
86
86
|
def convert_timestamp(val: bytes) -> datetime:
|
|
87
87
|
"""Convert Unix epoch timestamp to datetime.datetime object."""
|
|
88
|
-
return datetime.
|
|
88
|
+
return datetime.fromisoformat(val.decode()).replace(tzinfo=UTC)
|
|
89
89
|
|
|
90
90
|
sqlite3.register_converter("date", convert_date)
|
|
91
91
|
sqlite3.register_converter("datetime", convert_datetime)
|
postgreslite-0.2.0/PKG-INFO
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: PostgresLite
|
|
3
|
-
Version: 0.2.0
|
|
4
|
-
Summary: Python SQLite combined with syntax compared to asyncpg progject.
|
|
5
|
-
Author-email: AlexFlipnote <root@alexflipnote.dev>
|
|
6
|
-
License-Expression: MIT
|
|
7
|
-
Project-URL: Homepage, https://github.com/AlexFlipnote/PostgresLite
|
|
8
|
-
Project-URL: Repository, https://github.com/AlexFlipnote/PostgresLite
|
|
9
|
-
Keywords: asyncpg,sqlite,postgres,lite,database,sql
|
|
10
|
-
Requires-Python: >=3.11.0
|
|
11
|
-
Description-Content-Type: text/markdown
|
|
12
|
-
License-File: LICENSE
|
|
13
|
-
Provides-Extra: dev
|
|
14
|
-
Requires-Dist: pyright>=1.1.401; extra == "dev"
|
|
15
|
-
Requires-Dist: ruff>=0.11.13; extra == "dev"
|
|
16
|
-
Requires-Dist: toml>=0.10.2; extra == "dev"
|
|
17
|
-
Dynamic: license-file
|
|
18
|
-
|
|
19
|
-
# PostgresLite
|
|
20
|
-
Python SQLite combined with syntax compared to asyncpg progject
|
|
21
|
-
|
|
22
|
-
This project is stillw in the early WIP ages, don't expect too much
|
|
23
|
-
|
|
24
|
-
# Install
|
|
25
|
-
pip install postgreslite
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: PostgresLite
|
|
3
|
-
Version: 0.2.0
|
|
4
|
-
Summary: Python SQLite combined with syntax compared to asyncpg progject.
|
|
5
|
-
Author-email: AlexFlipnote <root@alexflipnote.dev>
|
|
6
|
-
License-Expression: MIT
|
|
7
|
-
Project-URL: Homepage, https://github.com/AlexFlipnote/PostgresLite
|
|
8
|
-
Project-URL: Repository, https://github.com/AlexFlipnote/PostgresLite
|
|
9
|
-
Keywords: asyncpg,sqlite,postgres,lite,database,sql
|
|
10
|
-
Requires-Python: >=3.11.0
|
|
11
|
-
Description-Content-Type: text/markdown
|
|
12
|
-
License-File: LICENSE
|
|
13
|
-
Provides-Extra: dev
|
|
14
|
-
Requires-Dist: pyright>=1.1.401; extra == "dev"
|
|
15
|
-
Requires-Dist: ruff>=0.11.13; extra == "dev"
|
|
16
|
-
Requires-Dist: toml>=0.10.2; extra == "dev"
|
|
17
|
-
Dynamic: license-file
|
|
18
|
-
|
|
19
|
-
# PostgresLite
|
|
20
|
-
Python SQLite combined with syntax compared to asyncpg progject
|
|
21
|
-
|
|
22
|
-
This project is stillw in the early WIP ages, don't expect too much
|
|
23
|
-
|
|
24
|
-
# Install
|
|
25
|
-
pip install postgreslite
|
postgreslite-0.2.0/README.md
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|