-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpy_cached_modules.h
More file actions
165 lines (125 loc) · 4.62 KB
/
Copy pathpy_cached_modules.h
File metadata and controls
165 lines (125 loc) · 4.62 KB
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
#pragma once
#include "py_cached_item.h"
namespace lbug {
class DateTimeCachedItem : public PythonCachedItem {
public:
DateTimeCachedItem()
: PythonCachedItem("datetime"), date("date", this), datetime("datetime", this),
timedelta("timedelta", this) {}
PythonCachedItem date;
PythonCachedItem datetime;
PythonCachedItem timedelta;
};
class DecimalCachedItem : public PythonCachedItem {
public:
DecimalCachedItem() : PythonCachedItem("decimal"), Decimal("Decimal", this) {}
PythonCachedItem Decimal;
};
class ImportLibCachedItem : public PythonCachedItem {
class UtilCachedItem : public PythonCachedItem {
public:
explicit UtilCachedItem(PythonCachedItem* parent)
: PythonCachedItem{"util", parent}, find_spec{"find_spec", this} {}
PythonCachedItem find_spec;
};
public:
ImportLibCachedItem() : PythonCachedItem("importlib"), util(this) {}
UtilCachedItem util;
};
class InspectCachedItem : public PythonCachedItem {
public:
InspectCachedItem()
: PythonCachedItem("inspect"), currentframe("currentframe", this),
signature("signature", this), _empty("_empty", this) {}
PythonCachedItem currentframe;
PythonCachedItem signature;
PythonCachedItem _empty;
};
class NumpyMaCachedItem : public PythonCachedItem {
public:
NumpyMaCachedItem() : PythonCachedItem("numpy.ma"), masked_array("masked_array", this) {}
PythonCachedItem masked_array;
};
class PandasCachedItem : public PythonCachedItem {
class SeriesCachedItem : public PythonCachedItem {
public:
explicit SeriesCachedItem(PythonCachedItem* parent)
: PythonCachedItem("series", parent), Series("Series", this) {}
PythonCachedItem Series;
};
class CoreCachedItem : public PythonCachedItem {
public:
explicit CoreCachedItem(PythonCachedItem* parent)
: PythonCachedItem("core", parent), series(this) {}
SeriesCachedItem series;
};
class DataFrameCachedItem : public PythonCachedItem {
public:
explicit DataFrameCachedItem(PythonCachedItem* parent)
: PythonCachedItem("DataFrame", parent), from_dict("from_dict", this) {}
PythonCachedItem from_dict;
};
public:
PandasCachedItem()
: PythonCachedItem("pandas"), ArrowDtype("ArrowDtype", this), core(this), DataFrame(this),
NA("NA", this), NaT("NaT", this) {}
PythonCachedItem ArrowDtype;
CoreCachedItem core;
DataFrameCachedItem DataFrame;
PythonCachedItem NA;
PythonCachedItem NaT;
};
class PolarsCachedItem : public PythonCachedItem {
public:
static constexpr const char* name_ = "polars";
public:
PolarsCachedItem() : PythonCachedItem("polars"), DataFrame("DataFrame", this) {}
PythonCachedItem DataFrame;
};
class PyarrowCachedItem : public PythonCachedItem {
class ArrayCachedItem : public PythonCachedItem {
public:
explicit ArrayCachedItem(PythonCachedItem* parent)
: PythonCachedItem("Array", parent), _import_from_c("_import_from_c", this) {}
PythonCachedItem _import_from_c;
};
class RecordBatchCachedItem : public PythonCachedItem {
public:
explicit RecordBatchCachedItem(PythonCachedItem* parent)
: PythonCachedItem("RecordBatch", parent), _import_from_c("_import_from_c", this) {}
PythonCachedItem _import_from_c;
};
class SchemaCachedItem : public PythonCachedItem {
public:
explicit SchemaCachedItem(PythonCachedItem* parent)
: PythonCachedItem("Schema", parent), _import_from_c("_import_from_c", this) {}
PythonCachedItem _import_from_c;
};
class TableCachedItem : public PythonCachedItem {
public:
explicit TableCachedItem(PythonCachedItem* parent)
: PythonCachedItem("Table", parent), from_batches("from_batches", this),
from_pandas("from_pandas", this) {}
PythonCachedItem from_batches;
PythonCachedItem from_pandas;
};
class LibCachedItem : public PythonCachedItem {
public:
explicit LibCachedItem(PythonCachedItem* parent)
: PythonCachedItem("lib", parent), Array(this), RecordBatch(this), Schema(this),
Table(this) {}
ArrayCachedItem Array;
RecordBatchCachedItem RecordBatch;
SchemaCachedItem Schema;
TableCachedItem Table;
};
public:
PyarrowCachedItem() : PythonCachedItem("pyarrow"), lib(this) {}
LibCachedItem lib;
};
class UUIDCachedItem : public PythonCachedItem {
public:
UUIDCachedItem() : PythonCachedItem("uuid"), UUID("UUID", this) {}
PythonCachedItem UUID;
};
} // namespace lbug