pandas-query-sql 0.8.2__tar.gz → 0.8.3.dev0__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.
- {pandas_query_sql-0.8.2 → pandas_query_sql-0.8.3.dev0}/PKG-INFO +2 -2
- pandas_query_sql-0.8.3.dev0/pyproject.toml +104 -0
- pandas_query_sql-0.8.2/pyproject.toml → pandas_query_sql-0.8.3.dev0/pyproject.toml.orig +5 -5
- {pandas_query_sql-0.8.2 → pandas_query_sql-0.8.3.dev0}/src/pandasql/sqldf.py +2 -2
- {pandas_query_sql-0.8.2 → pandas_query_sql-0.8.3.dev0}/LICENSE.txt +0 -0
- {pandas_query_sql-0.8.2 → pandas_query_sql-0.8.3.dev0}/README.md +0 -0
- {pandas_query_sql-0.8.2 → pandas_query_sql-0.8.3.dev0}/src/pandasql/__init__.py +0 -0
- {pandas_query_sql-0.8.2 → pandas_query_sql-0.8.3.dev0}/src/pandasql/data/births.csv +0 -0
- {pandas_query_sql-0.8.2 → pandas_query_sql-0.8.3.dev0}/src/pandasql/data/births_by_month.csv +0 -0
- {pandas_query_sql-0.8.2 → pandas_query_sql-0.8.3.dev0}/src/pandasql/data/meat.csv +0 -0
- {pandas_query_sql-0.8.2 → pandas_query_sql-0.8.3.dev0}/src/pandasql/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pandas_query_sql
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.3.dev0
|
|
4
4
|
Summary: sqldf for pandas
|
|
5
5
|
Author: Alexander Plavin, Greg Lamp, Michael Dempsey
|
|
6
6
|
Author-email: Alexander Plavin <alexander@plav.in>, Greg Lamp <lamp.greg@gmail.com>, Michael Dempsey <bluestealth@bluestealth.pw>
|
|
@@ -12,7 +12,7 @@ Requires-Dist: pandas
|
|
|
12
12
|
Requires-Dist: sqlalchemy
|
|
13
13
|
Requires-Dist: psycopg2 ; extra == 'postgresql'
|
|
14
14
|
Requires-Dist: psycopg2-binary ; extra == 'postgresql-binary'
|
|
15
|
-
Requires-Python: >=3.
|
|
15
|
+
Requires-Python: >=3.11
|
|
16
16
|
Project-URL: Homepage, https://github.com/bluestealth/pandasql/
|
|
17
17
|
Provides-Extra: postgresql
|
|
18
18
|
Provides-Extra: postgresql-binary
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "pandas_query_sql"
|
|
3
|
+
version = "0.8.3.dev0"
|
|
4
|
+
description = "sqldf for pandas"
|
|
5
|
+
dependencies = [
|
|
6
|
+
"numpy",
|
|
7
|
+
"packaging",
|
|
8
|
+
"pandas",
|
|
9
|
+
"sqlalchemy",
|
|
10
|
+
]
|
|
11
|
+
requires-python = ">=3.11"
|
|
12
|
+
readme = "README.md"
|
|
13
|
+
license = "MIT"
|
|
14
|
+
license-files = ["LICENSE.txt"]
|
|
15
|
+
|
|
16
|
+
[[project.authors]]
|
|
17
|
+
name = "Alexander Plavin"
|
|
18
|
+
email = "alexander@plav.in"
|
|
19
|
+
|
|
20
|
+
[[project.authors]]
|
|
21
|
+
name = "Greg Lamp"
|
|
22
|
+
email = "lamp.greg@gmail.com"
|
|
23
|
+
|
|
24
|
+
[[project.authors]]
|
|
25
|
+
name = "Michael Dempsey"
|
|
26
|
+
email = "bluestealth@bluestealth.pw"
|
|
27
|
+
|
|
28
|
+
[project.urls]
|
|
29
|
+
Homepage = "https://github.com/bluestealth/pandasql/"
|
|
30
|
+
|
|
31
|
+
[project.optional-dependencies]
|
|
32
|
+
postgresql = ["psycopg2"]
|
|
33
|
+
postgresql-binary = ["psycopg2-binary"]
|
|
34
|
+
|
|
35
|
+
[dependency-groups]
|
|
36
|
+
dev = [
|
|
37
|
+
"ruff",
|
|
38
|
+
"pytest",
|
|
39
|
+
"psycopg2-binary",
|
|
40
|
+
"testcontainers[postgres]",
|
|
41
|
+
"ty",
|
|
42
|
+
]
|
|
43
|
+
|
|
44
|
+
[build-system]
|
|
45
|
+
requires = ["uv_build>=0.13.5,<0.14"]
|
|
46
|
+
build-backend = "uv_build"
|
|
47
|
+
|
|
48
|
+
[tool.uv.build-backend]
|
|
49
|
+
module-name = "pandasql"
|
|
50
|
+
|
|
51
|
+
[tool.ty.src]
|
|
52
|
+
exclude = ["examples/**"]
|
|
53
|
+
|
|
54
|
+
[tool.ruff]
|
|
55
|
+
line-length = 120
|
|
56
|
+
target-version = "py311"
|
|
57
|
+
|
|
58
|
+
[tool.ruff.lint]
|
|
59
|
+
select = ["ALL"]
|
|
60
|
+
ignore = [
|
|
61
|
+
"COM812",
|
|
62
|
+
"CPY001",
|
|
63
|
+
"FBT001",
|
|
64
|
+
"FBT002",
|
|
65
|
+
"TRY003",
|
|
66
|
+
"EM101",
|
|
67
|
+
"PLR2004",
|
|
68
|
+
"N818",
|
|
69
|
+
]
|
|
70
|
+
|
|
71
|
+
[tool.ruff.lint.flake8-quotes]
|
|
72
|
+
|
|
73
|
+
[tool.ruff.lint.isort]
|
|
74
|
+
known-first-party = []
|
|
75
|
+
|
|
76
|
+
[tool.ruff.lint.mccabe]
|
|
77
|
+
max-complexity = 14
|
|
78
|
+
|
|
79
|
+
[tool.ruff.lint.pydocstyle]
|
|
80
|
+
convention = "google"
|
|
81
|
+
|
|
82
|
+
[tool.ruff.lint.per-file-ignores]
|
|
83
|
+
"src/pandasql/__init__.py" = ["D"]
|
|
84
|
+
"examples/**/*.py" = [
|
|
85
|
+
"D",
|
|
86
|
+
"INP001",
|
|
87
|
+
]
|
|
88
|
+
"tests/**/*.py" = [
|
|
89
|
+
"D",
|
|
90
|
+
"BLE001",
|
|
91
|
+
]
|
|
92
|
+
|
|
93
|
+
[tool.ruff.lint.extend-per-file-ignores]
|
|
94
|
+
"examples/**/*.py" = ["T"]
|
|
95
|
+
"tests/**/*.py" = [
|
|
96
|
+
"T",
|
|
97
|
+
"S101",
|
|
98
|
+
"PD901",
|
|
99
|
+
"PLR",
|
|
100
|
+
]
|
|
101
|
+
|
|
102
|
+
[tool.ruff.format]
|
|
103
|
+
quote-style = "double"
|
|
104
|
+
indent-style = "space"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "pandas_query_sql"
|
|
3
|
-
version = "0.8.
|
|
3
|
+
version = "0.8.3.dev0"
|
|
4
4
|
description = "sqldf for pandas"
|
|
5
5
|
authors = [
|
|
6
6
|
{name = "Alexander Plavin", email = "alexander@plav.in"},
|
|
@@ -13,7 +13,7 @@ dependencies = [
|
|
|
13
13
|
"pandas",
|
|
14
14
|
"sqlalchemy",
|
|
15
15
|
]
|
|
16
|
-
requires-python = ">=3.
|
|
16
|
+
requires-python = ">=3.11"
|
|
17
17
|
readme = "README.md"
|
|
18
18
|
license = "MIT"
|
|
19
19
|
license-files = ["LICENSE.txt"]
|
|
@@ -39,7 +39,7 @@ dev = [
|
|
|
39
39
|
]
|
|
40
40
|
|
|
41
41
|
[build-system]
|
|
42
|
-
requires = ["uv_build>=0.
|
|
42
|
+
requires = ["uv_build>=0.13.5,<0.14"]
|
|
43
43
|
build-backend = "uv_build"
|
|
44
44
|
|
|
45
45
|
[tool.uv.build-backend]
|
|
@@ -50,11 +50,11 @@ exclude = ["examples/**"]
|
|
|
50
50
|
|
|
51
51
|
[tool.ruff]
|
|
52
52
|
line-length = 120
|
|
53
|
-
target-version = '
|
|
53
|
+
target-version = 'py311'
|
|
54
54
|
|
|
55
55
|
[tool.ruff.lint]
|
|
56
56
|
select = ['ALL']
|
|
57
|
-
ignore = ['COM812', 'FBT001', 'FBT002', 'TRY003', 'EM101', 'PLR2004', 'N818']
|
|
57
|
+
ignore = ['COM812', "CPY001", 'FBT001', 'FBT002', 'TRY003', 'EM101', 'PLR2004', 'N818']
|
|
58
58
|
flake8-quotes = {}
|
|
59
59
|
isort = { known-first-party = [] }
|
|
60
60
|
mccabe = { max-complexity = 14 }
|
|
@@ -4,7 +4,7 @@ import importlib.metadata
|
|
|
4
4
|
import inspect
|
|
5
5
|
import re
|
|
6
6
|
import sqlite3
|
|
7
|
-
from collections.abc import
|
|
7
|
+
from collections.abc import Generator
|
|
8
8
|
from contextlib import contextmanager
|
|
9
9
|
from typing import Any
|
|
10
10
|
from warnings import catch_warnings, filterwarnings
|
|
@@ -109,7 +109,7 @@ class PandaSQL:
|
|
|
109
109
|
|
|
110
110
|
@property
|
|
111
111
|
@contextmanager
|
|
112
|
-
def conn(self) ->
|
|
112
|
+
def conn(self) -> Generator[Connection]:
|
|
113
113
|
"""Context Manager for database connection."""
|
|
114
114
|
if self.persist:
|
|
115
115
|
# the connection is created in __init__, so just return it
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pandas_query_sql-0.8.2 → pandas_query_sql-0.8.3.dev0}/src/pandasql/data/births_by_month.csv
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|