forked from vincentlaucsb/csv-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfastpycsv_bindings.hpp
More file actions
47 lines (42 loc) · 1.19 KB
/
Copy pathfastpycsv_bindings.hpp
File metadata and controls
47 lines (42 loc) · 1.19 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
#pragma once
#include <nanobind/nanobind.h>
#include <nanobind/make_iterator.h>
#include <nanobind/ndarray.h>
#include <nanobind/operators.h>
#include <nanobind/stl/chrono.h>
#include <nanobind/stl/string.h>
#include <nanobind/stl/string_view.h>
#include <nanobind/stl/vector.h>
#include <datetime.h>
#include <algorithm>
#include <chrono>
#include <cstdint>
#include <ctime>
#include <limits>
#include <memory>
#include <stdexcept>
#include <thread>
#include <utility>
#include <vector>
#include "csv.hpp"
namespace nb = nanobind;
using namespace nanobind::literals;
using namespace csv;
void init_python_datetime_api();
nb::object field_to_python(CSVField field, bool cast);
nb::dict read_numpy(
const std::string& filename,
nb::object columns = nb::none(),
bool cast = true,
nb::object predicate = nb::none(),
CSVFormat format = CSVFormat::guess_csv()
);
void init_CSVNumpy(nb::module_& m);
void init_CSVWriter(nb::module_& m);
void init_CSVFormat(nb::module_& m);
void init_CSVReader(nb::module_& m);
void init_CSVPredicate(nb::module_& m);
void init_CSVRow(nb::module_& m);
void init_DataType(nb::module_& m);
void init_CSVField(nb::module_& m);
void init_CSVUtility(nb::module_& m);