-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpyproject.toml
188 lines (178 loc) · 5.93 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
[project]
authors = [{ name = "Toucan Toco", email = "[email protected]" }]
license = { text = "BSD" }
requires-python = "<3.14,>=3.11"
dependencies = [
"cached-property<3.0.0,>=1.5.2",
"Jinja2<4.0.0,>=3.0.3",
"pydantic<3.0.0,>=2.4.2",
"requests<3.0.0,>=2.28.0",
]
name = "toucan-connectors"
version = "7.7.3"
description = "Toucan Toco Connectors"
readme = "README.md"
[tool.setuptools.packages.find]
include = ["toucan_connectors*"]
[tool.setuptools]
include-package-data = true
# FIXME: temporary workaround until https://github.com/pypa/setuptools/issues/4759 is fixed
license-files = []
[tool.uv]
package = true
[project.optional-dependencies]
base = [
"Authlib<2.0.0,>=1.3.2",
"jq<2.0.0,>=1.2.2",
"python-slugify>=5.0.2",
"tenacity<10.0.0,>=8.0.1",
"numpy<2; python_version < \"3.12\"",
"numpy>=2; python_version >= \"3.12\"",
"pandas<2; python_version < \"3.12\"",
"pandas>=2; python_version >= \"3.12\"",
]
awsathena = ["awswrangler<4.0.0,>=3.3.0"]
azure_mssql = ["pyodbc<6,>=4", "sqlalchemy<3,>=2"]
clickhouse = ["clickhouse-driver<1.0,>=0.2.3", "sqlalchemy<3,>=2"]
dataiku = ["dataiku-api-client<14.0.0,>=9.0.1"]
elasticsearch = ["elasticsearch<8,>=7.11.0"]
google_analytics = [
"google-api-python-client<3,>=2",
"oauth2client<5.0.0,>=4.1.3",
]
github = ["python-graphql-client<1.0,>=0.4.3"]
google_big_query = ["google-cloud-bigquery[bqstorage,pandas]<4,>=3"]
google_cloud_mysql = ["PyMySQL<2.0.0,>=1.1.1"]
google_sheets = ["google-api-python-client<3,>=2", "oauth2client<5.0.0,>=4.1.3"]
http_api = [
"oauthlib==3.2.2",
"requests-oauthlib==2.0.0",
"xmltodict<1.0,>=0.13.0",
]
hubspot = ["hubspot-api-client<12.0,>=7.4"]
mongo = ["pymongo>=3.12.0"]
mssql = ["pyodbc<6,>=4", "sqlalchemy<3,>=2"]
mysql = ["PyMySQL<2.0.0,>=1.1.1"]
odata = ["oauthlib==3.2.2", "requests-oauthlib==2.0.0", "tctc-odata<1.0,>=0.3"]
odbc = ["pyodbc<6,>=4"]
oracle_sql = ["cx-Oracle<9.0.0,>=8.3.0", "sqlalchemy<3,>=2"]
Redshift = ["lxml<6.0.0,>=4.6.5", "redshift-connector<3.0.0,>=2.0.907"]
peakina = ["peakina>=0.11"]
postgres = ["psycopg2<3.0.0,>=2.7.4", "sqlalchemy<3,>=2"]
sap_hana = ["pyhdb<1.0,>=0.3.4", "sqlalchemy<3,>=2"]
snowflake = [
"pyarrow",
"PyJWT<3,>=1.5.3",
"snowflake-connector-python<4.0.0,>=2.7.12",
]
soap = ["zeep<5.0.0,>=4.1.0", "lxml<6.0.0,>=4.6.5"]
all = [
"Authlib<2.0.0,>=1.3.2",
"awswrangler<4.0.0,>=3.3.0",
"clickhouse-driver<1.0,>=0.2.3",
"cx-Oracle<9.0.0,>=8.3.0",
"dataiku-api-client<14.0.0,>=9.0.1",
"elasticsearch<8,>=7.11.0",
"google-api-python-client<3,>=2",
"google-cloud-bigquery[bqstorage,pandas]<4,>=3",
"hubspot-api-client<12.0,>=7.4",
"jq<2.0.0,>=1.2.2",
"lxml<6.0.0,>=4.6.5",
"numpy<2; python_version < \"3.12\"",
"numpy>=2; python_version >= \"3.12\"",
"oauth2client<5.0.0,>=4.1.3",
"oauthlib==3.2.2",
"pandas<2; python_version < \"3.12\"",
"pandas>=2; python_version >= \"3.12\"",
"peakina>=0.11",
"psycopg2<3.0.0,>=2.7.4",
"pyarrow",
"pyhdb<1.0,>=0.3.4",
"PyJWT<3,>=1.5.3",
"pymongo>=3.12.0",
"PyMySQL<2.0.0,>=1.1.1",
"pyodbc<6,>=4",
"python-graphql-client<1.0,>=0.4.3",
"python-slugify>=5.0.2",
"redshift-connector<3.0.0,>=2.0.907",
"requests-oauthlib==2.0.0",
"simplejson>=3.17.6,<4",
"snowflake-connector-python<4.0.0,>=2.7.12",
"sqlalchemy<3,>=2",
"tctc-odata<1.0,>=0.3",
"tenacity<10.0.0,>=8.0.1",
"xmltodict<1.0,>=0.13.0",
"zeep<5.0.0,>=4.1.0",
]
[dependency-groups]
dev = [
"click<9.0.0,>=8.1.8",
"cryptography>=40.0.2",
"docker<8.0.0,>=7.1.0",
"freezegun<1.6,>=1.5.1",
"mock<6.0.0,>=5.1.0",
"mypy<2.0,>=1.14",
"pandas-stubs<3.0.0.0,>=2.2.3.241126",
"pytest<9.0.0,>=8.3.4",
"pytest-asyncio<1,>=0.19.0",
"pytest-cov<7.0.0,>=6.0.0",
"pytest-mock<4.0.0,>=3.14.0",
"pytest-rerunfailures<16.0,>=15.0",
"python-graphql-client<1,>=0.4.3",
"PyYAML<7,>=6.0.1",
"responses<1,>=0.21.0",
"types-pyopenssl<25.0.0.0,>=24.1.0.20240722",
"types-python-slugify<9.0.0.0,>=8.0.2.20240310",
"types-requests<3.0.0.0,>=2.31.0.6",
"types-simplejson<4.0.0.0,>=3.19.0.20241221",
"types-pymysql<2.0.0.0,>=1.1.0.20241103",
"ruff<0.10.0,>=0.6.1",
"pre-commit<5.0,>=3.6",
"types-oauthlib<4.0.0.0,>=3.2.0.20240217",
"types-python-dateutil<2.10.0,>=2.9.0",
]
[tool.mypy]
python_version = "3.11"
plugins = "pydantic.mypy"
follow_imports = "silent"
show_error_codes = true
warn_no_return = true
warn_unused_configs = true
warn_unused_ignores = true
ignore_missing_imports = true
files = [
"toucan_connectors/auth.py",
"toucan_connectors/awsathena/awsathena_connector.py",
"toucan_connectors/azure_mssql/azure_mssql_connector.py",
"toucan_connectors/common.py",
"toucan_connectors/google_big_query/google_big_query_connector.py",
"toucan_connectors/http_api/authentication_configs.py",
"toucan_connectors/http_api/http_api_connector.py",
"toucan_connectors/http_api/pagination_configs.py",
"toucan_connectors/hubspot_private_app/hubspot_connector.py",
"toucan_connectors/mongo/mongo_connector.py",
"toucan_connectors/mysql/mysql_connector.py",
"toucan_connectors/peakina/peakina_connector.py",
"toucan_connectors/postgres/postgresql_connector.py",
"toucan_connectors/redshift/redshift_database_connector.py",
"toucan_connectors/snowflake/snowflake_connector.py",
"toucan_connectors/snowflake_oauth2/snowflake_oauth2_connector.py",
"toucan_connectors/toucan_connector.py",
]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = ["E", "F", "UP", "N", "C", "B", "I001", "S", "Q"]
ignore = [
"S101", # allow use of assert
# FIXME: S105, S106, S608 and S113 should be addressed
"S105",
"S106", # possible hardcoded password
"S608", # possible SQL injection
"S113", # requests call without timeout
"N801", # class names
"N802", # function names
"N818", # exception names
"B017", # pytest.raises(Exception)
"C901", # complexity
]