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