Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pola-rs
GitHub Repository: pola-rs/polars
Path: blob/main/crates/polars-python/Cargo.toml
7884 views
1
[package]
2
name = "polars-python"
3
version = { workspace = true }
4
authors = { workspace = true }
5
edition = { workspace = true }
6
homepage = { workspace = true }
7
license = { workspace = true }
8
repository = { workspace = true }
9
description = "Enable running Polars workloads in Python"
10
11
[dependencies]
12
polars-compute = { workspace = true }
13
polars-core = { workspace = true, features = ["python"] }
14
polars-dtype = { workspace = true }
15
polars-error = { workspace = true }
16
polars-expr = { workspace = true }
17
polars-ffi = { workspace = true }
18
polars-io = { workspace = true }
19
polars-lazy = { workspace = true, features = ["python"] }
20
polars-mem-engine = { workspace = true, features = ["python"] }
21
polars-ops = { workspace = true, features = ["bitwise"] }
22
polars-parquet = { workspace = true, optional = true }
23
polars-plan = { workspace = true }
24
polars-row = { workspace = true }
25
polars-testing = { workspace = true }
26
polars-time = { workspace = true }
27
polars-utils = { workspace = true, features = ["python"] }
28
29
arboard = { workspace = true, optional = true }
30
arrow = { workspace = true }
31
bincode = { workspace = true }
32
bytemuck = { workspace = true }
33
bytes = { workspace = true }
34
chrono = { workspace = true }
35
chrono-tz = { workspace = true }
36
either = { workspace = true }
37
flate2 = { workspace = true }
38
hashbrown = { workspace = true }
39
itoa = { workspace = true }
40
libc = { workspace = true }
41
ndarray = { workspace = true }
42
num-traits = { workspace = true }
43
numpy = { workspace = true }
44
parking_lot = { workspace = true }
45
pyo3 = { workspace = true, features = ["abi3-py39", "chrono", "chrono-tz", "multiple-pymethods"] }
46
rayon = { workspace = true }
47
recursive = { workspace = true }
48
serde_json = { workspace = true, optional = true }
49
50
[target.'cfg(any(not(target_family = "unix"), target_os = "emscripten"))'.dependencies]
51
mimalloc = { version = "0.1", default-features = false }
52
53
# Feature background_threads is unsupported on MacOS (https://github.com/jemalloc/jemalloc/issues/843).
54
[target.'cfg(all(target_family = "unix", not(target_os = "macos"), not(target_os = "emscripten")))'.dependencies]
55
tikv-jemallocator = { version = "0.6.0", features = ["disable_initial_exec_tls", "background_threads"] }
56
57
[target.'cfg(all(target_family = "unix", target_os = "macos"))'.dependencies]
58
tikv-jemallocator = { version = "0.6.0", features = ["disable_initial_exec_tls"] }
59
60
[dependencies.polars]
61
workspace = true
62
features = [
63
"abs",
64
"approx_unique",
65
"array_any_all",
66
"arg_where",
67
"bitwise",
68
"business",
69
"concat_str",
70
"cum_agg",
71
"cumulative_eval",
72
"dataframe_arithmetic",
73
"month_start",
74
"month_end",
75
"offset_by",
76
"diagonal_concat",
77
"diff",
78
"dot_diagram",
79
"dot_product",
80
"dtype-categorical",
81
"dtype-extension",
82
"dtype-full",
83
"dynamic_group_by",
84
"ewma",
85
"ewma_by",
86
"fmt",
87
"fused",
88
"interpolate",
89
"interpolate_by",
90
"is_first_distinct",
91
"is_last_distinct",
92
"is_unique",
93
"is_between",
94
"is_close",
95
"lazy",
96
"list_eval",
97
"list_to_struct",
98
"list_arithmetic",
99
"array_arithmetic",
100
"array_to_struct",
101
"log",
102
"mode",
103
"moment",
104
"ndarray",
105
"partition_by",
106
"product",
107
"random",
108
"range",
109
"rank",
110
"reinterpret",
111
"replace",
112
"rolling_window",
113
"rolling_window_by",
114
"round_series",
115
"row_hash",
116
"rows",
117
"semi_anti_join",
118
"serde-lazy",
119
"string_encoding",
120
"string_normalize",
121
"string_reverse",
122
"string_to_integer",
123
"string_pad",
124
"strings",
125
"temporal",
126
"to_dummies",
127
"true_div",
128
"unique_counts",
129
"zip_with",
130
"cov",
131
]
132
133
[build-dependencies]
134
version_check = { workspace = true }
135
136
[features]
137
allocator = []
138
c_api = []
139
140
# Features below are only there to enable building a slim binary during development.
141
avro = ["polars/avro"]
142
catalog = ["polars-lazy/catalog"]
143
parquet = ["polars/parquet", "polars-parquet", "polars-mem-engine/parquet"]
144
ipc = ["polars/ipc", "polars-mem-engine/ipc"]
145
ipc_streaming = ["polars/ipc_streaming"]
146
is_in = ["polars/is_in"]
147
json = ["polars/serde", "serde_json", "polars/json", "polars-utils/serde", "polars-mem-engine/json"]
148
scan_lines = ["polars/scan_lines", "polars-mem-engine/scan_lines"]
149
trigonometry = ["polars/trigonometry"]
150
sign = ["polars/sign"]
151
asof_join = ["polars/asof_join"]
152
iejoin = ["polars/iejoin"]
153
cross_join = ["polars/cross_join"]
154
pct_change = ["polars/pct_change"]
155
repeat_by = ["polars/repeat_by"]
156
157
meta = ["polars/meta"]
158
index_of = ["polars/index_of"]
159
search_sorted = ["polars/search_sorted"]
160
decompress = ["polars/decompress"]
161
regex = ["polars/regex"]
162
csv = ["polars/csv", "polars-mem-engine/csv"]
163
clipboard = ["arboard"]
164
extract_jsonpath = ["polars/extract_jsonpath"]
165
pivot = ["polars/pivot"]
166
top_k = ["polars/top_k"]
167
propagate_nans = ["polars/propagate_nans"]
168
sql = ["polars/sql"]
169
performant = ["polars/performant"]
170
timezones = ["polars/timezones"]
171
cse = ["polars/cse"]
172
merge_sorted = ["polars/merge_sorted"]
173
list_filter = ["polars/list_filter"]
174
list_gather = ["polars/list_gather"]
175
list_count = ["polars/list_count"]
176
array_count = ["polars/array_count", "polars/dtype-array"]
177
binary_encoding = ["polars/binary_encoding"]
178
list_sets = ["polars-lazy/list_sets"]
179
list_any_all = ["polars/list_any_all"]
180
array_any_all = ["polars/array_any_all", "polars/dtype-array"]
181
list_drop_nulls = ["polars/list_drop_nulls"]
182
list_sample = ["polars/list_sample"]
183
cutqcut = ["polars/cutqcut"]
184
rle = ["polars/rle"]
185
extract_groups = ["polars/extract_groups"]
186
ffi_plugin = ["polars-lazy/ffi_plugin"]
187
cloud = ["polars/cloud", "polars/aws", "polars/gcp", "polars/azure", "polars/http"]
188
peaks = ["polars/peaks"]
189
hist = ["polars/hist"]
190
find_many = ["polars/find_many"]
191
new_streaming = ["polars-lazy/new_streaming"]
192
bitwise = ["polars/bitwise"]
193
approx_unique = ["polars/approx_unique"]
194
string_normalize = ["polars/string_normalize"]
195
196
dtype-i8 = []
197
dtype-i16 = []
198
dtype-u8 = []
199
dtype-u16 = []
200
dtype-i128 = []
201
dtype-u128 = []
202
dtype-array = []
203
dtype-f16 = []
204
object = ["polars/object"]
205
206
dtypes = [
207
"dtype-array",
208
"dtype-i16",
209
"dtype-i8",
210
"dtype-u16",
211
"dtype-u8",
212
"dtype-i128",
213
"dtype-u128",
214
"dtype-f16",
215
"object",
216
]
217
218
operations = [
219
"approx_unique",
220
"array_any_all",
221
"array_count",
222
"bitwise",
223
"is_in",
224
"repeat_by",
225
"trigonometry",
226
"sign",
227
"performant",
228
"list_gather",
229
"list_filter",
230
"list_count",
231
"list_sets",
232
"list_any_all",
233
"list_drop_nulls",
234
"list_sample",
235
"cutqcut",
236
"rle",
237
"extract_groups",
238
"pivot",
239
"extract_jsonpath",
240
"asof_join",
241
"cross_join",
242
"pct_change",
243
"index_of",
244
"search_sorted",
245
"merge_sorted",
246
"top_k",
247
"propagate_nans",
248
"timezones",
249
"peaks",
250
"hist",
251
"find_many",
252
"string_normalize",
253
]
254
255
io = [
256
"json",
257
"parquet",
258
"ipc",
259
"ipc_streaming",
260
"avro",
261
"csv",
262
"scan_lines",
263
"cloud",
264
"clipboard",
265
]
266
267
optimizations = [
268
"cse",
269
"polars/fused",
270
]
271
272
polars_cloud_client = ["polars/polars_cloud_client"]
273
polars_cloud_server = ["polars/polars_cloud_server"]
274
275
# also includes simd
276
nightly = ["polars/nightly"]
277
278
pymethods = []
279
allow_unused = []
280
281
full = [
282
"pymethods",
283
"optimizations",
284
"io",
285
"operations",
286
"dtypes",
287
"meta",
288
"decompress",
289
"regex",
290
"sql",
291
"binary_encoding",
292
"ffi_plugin",
293
"polars_cloud_client",
294
"new_streaming",
295
]
296
297
rt32 = []
298
rt64 = ["polars/bigidx"]
299
rtcompat = ["polars/bigidx"]
300
301
# we cannot conditionally activate simd
302
# https://github.com/rust-lang/cargo/issues/1197
303
# so we have an indirection and compile
304
# with --no-default-features --features=full for targets without simd
305
default = [
306
"full",
307
]
308
default_alloc = []
309
310
[lints]
311
workspace = true
312
313