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
8339 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 = "catalog")]
14
pub mod catalog;
15
#[cfg(feature = "polars_cloud_client")]
16
pub mod cloud_client;
17
#[cfg(feature = "polars_cloud_server")]
18
pub mod cloud_server;
19
pub mod conversion;
20
pub mod dataframe;
21
pub mod dataset;
22
pub mod datatypes;
23
pub mod error;
24
pub mod exceptions;
25
pub mod export;
26
pub mod expr;
27
pub mod extension;
28
pub mod file;
29
#[cfg(feature = "pymethods")]
30
pub mod functions;
31
pub mod interop;
32
pub mod io;
33
pub mod lazyframe;
34
pub mod lazygroupby;
35
pub mod map;
36
37
#[cfg(feature = "object")]
38
pub mod object;
39
#[cfg(feature = "object")]
40
pub mod on_startup;
41
pub mod prelude;
42
pub mod py_modules;
43
pub mod series;
44
#[cfg(feature = "sql")]
45
pub mod sql;
46
pub mod testing;
47
pub mod timeout;
48
pub mod utils;
49
50
#[cfg(feature = "c_api")]
51
pub mod c_api;
52
53
use crate::conversion::Wrap;
54
55
pub type PyDataType = Wrap<polars_core::datatypes::DataType>;
56
pub type PySchema = Wrap<polars_core::schema::Schema>;
57
pub use crate::dataframe::PyDataFrame;
58
pub use crate::expr::PyExpr;
59
pub use crate::lazyframe::PyLazyFrame;
60
pub use crate::lazygroupby::PyLazyGroupBy;
61
pub use crate::series::PySeries;
62
63