Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pola-rs
GitHub Repository: pola-rs/polars
Path: blob/main/crates/polars-python/src/lib.rs
7884 views
1
#![allow(clippy::nonstandard_macro_braces)] // Needed because clippy does not understand proc macro of PyO3
2
#![allow(clippy::transmute_undefined_repr)]
3
#![allow(non_local_definitions)]
4
#![allow(clippy::too_many_arguments)] // Python functions can have many arguments due to default arguments
5
#![allow(clippy::disallowed_types)]
6
#![allow(clippy::useless_conversion)] // Needed for now due to https://github.com/PyO3/pyo3/issues/4828.
7
#![cfg_attr(
8
feature = "allow_unused",
9
allow(unused, dead_code, irrefutable_let_patterns)
10
)] // Maybe be caused by some feature
11
// combinations
12
13
#[cfg(feature = "csv")]
14
pub mod batched_csv;
15
#[cfg(feature = "catalog")]
16
pub mod catalog;
17
#[cfg(feature = "polars_cloud_client")]
18
pub mod cloud_client;
19
#[cfg(feature = "polars_cloud_server")]
20
pub mod cloud_server;
21
pub mod conversion;
22
pub mod dataframe;
23
pub mod dataset;
24
pub mod datatypes;
25
pub mod error;
26
pub mod exceptions;
27
pub mod export;
28
pub mod expr;
29
pub mod extension;
30
pub mod file;
31
#[cfg(feature = "pymethods")]
32
pub mod functions;
33
pub mod interop;
34
pub mod io;
35
pub mod lazyframe;
36
pub mod lazygroupby;
37
pub mod map;
38
39
#[cfg(feature = "object")]
40
pub mod object;
41
#[cfg(feature = "object")]
42
pub mod on_startup;
43
pub mod prelude;
44
pub mod py_modules;
45
pub mod series;
46
#[cfg(feature = "sql")]
47
pub mod sql;
48
pub mod testing;
49
pub mod timeout;
50
pub mod utils;
51
52
#[cfg(feature = "c_api")]
53
pub mod c_api;
54
55
use crate::conversion::Wrap;
56
57
pub type PyDataType = Wrap<polars_core::datatypes::DataType>;
58
pub type PySchema = Wrap<polars_core::schema::Schema>;
59
pub use crate::dataframe::PyDataFrame;
60
pub use crate::expr::PyExpr;
61
pub use crate::lazyframe::PyLazyFrame;
62
pub use crate::lazygroupby::PyLazyGroupBy;
63
pub use crate::series::PySeries;
64
65