Skip to main content

NativeLib

Library for working with Clickhouse Native Format

Description of the format on the official website:

The most efficient format. Data is written and read by blocks in binary format.
For each block, the number of rows, number of columns, column names and types,
and parts of columns in this block are recorded one after another. In other words,
this format is “columnar” – it does not convert columns to rows.
This is the format used in the native interface for interaction between servers,
for using the command-line client, and for C++ clients.

You can use this format to quickly generate dumps that can only be read by the ClickHouse DBMS.
It does not make sense to work with this format yourself.

This library allows for data exchange between Clickhouse Native Format and python/pandas.DataFrame/polars.DataFrame.

Unsupported data types (at the moment)

  • Tuple # Tuple(T1, T2, ...).
  • Map # Map(K, V).
  • Variant # Variant(T1, T2, ...).
  • AggregateFunction # (name, types_of_arguments...) — parametric data type.
  • SimpleAggregateFunction # (name, types_of_arguments...) data type stores current value (intermediate state) of the aggregate function.
  • Point # stored as a Tuple(Float64, Float64).
  • Ring # stored as an array of points: Array(Point).
  • LineString # stored as an array of points: Array(Point).
  • MultiLineString # is multiple lines stored as an array of LineString: Array(LineString).
  • Polygon # stored as an array of rings: Array(Ring).
  • MultiPolygon # stored as an array of polygons: Array(Polygon).
  • Expression # used for representing lambdas in high-order functions.
  • Set # Used for the right half of an IN expression.
  • Domains # You can use domains anywhere corresponding base type can be used.
  • Nested # Nested(name1 Type1, Name2 Type2, ...).
  • Dynamic # This type allows to store values of any type inside it without knowing all of them in advance.
  • JSON # Stores JavaScript Object Notation (JSON) documents in a single column.

Supported data types

Clickhouse data type Read Write Python data type (Read/Write)
UInt8 + + int
UInt16 + + int
UInt32 + + int
UInt64 + + int
UInt128 + + int
UInt256 + + int
Int8 + + int
Int16 + + int
Int32 + + int
Int64 + + int
Int128 + + int
Int256 + + int
Float32 + + float
Float64 + + float
BFloat16 + + float
Decimal(P, S) + + decimal.Decimal
String + + str
FixedString(N) + + str
Date + + datetime.date
Date32 + + datetime.date
DateTime + + datetime.datetime
DateTime64 + + datetime.datetime
Time + + datetime.timedelta
Time64 + + datetime.timedelta
Enum + + str/Union[int, enum.Enum, str]
Bool + + bool
UUID + + uuid.UUID
IPv4 + + ipaddress.IPv4Address
IPv6 + + ipaddress.IPv6Address
Array(T) + + list[T*]
LowCardinality(T) + + Union[str,datetime.date,datetime.datetime,int,float]
Nullable(T) + + Optional[T*]
Nothing + + None

*T - any simple data type from those listed in the table

Installation

From pip

pip install nativelib

From local directory

pip install .

From git

pip install git+https://github.com/0xMihalich/nativelib

Metadata

Release files for nativelib 0.2.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for nativelib 0.2.2.6
File
nativelib-0.2.2.6-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details
nativelib-0.2.2.6-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64, Linux glibc 2.17+ x86-64 Details
nativelib-0.2.2.6-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details
nativelib-0.2.2.6-cp314-cp314-macosx_10_15_x86_64.whl CPython 3.14 CPython 3.14 macOS 10.15+ x86-64 Details
nativelib-0.2.2.6-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
nativelib-0.2.2.6-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details
nativelib-0.2.2.6-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details
nativelib-0.2.2.6-cp313-cp313-macosx_10_14_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.14+ x86-64 Details
nativelib-0.2.2.6-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
nativelib-0.2.2.6-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details
nativelib-0.2.2.6-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
nativelib-0.2.2.6-cp312-cp312-macosx_10_14_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.14+ x86-64 Details
nativelib-0.2.2.6-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
nativelib-0.2.2.6-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64, Linux glibc 2.17+ x86-64 Details
nativelib-0.2.2.6-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details
nativelib-0.2.2.6-cp311-cp311-macosx_10_14_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.14+ x86-64 Details
nativelib-0.2.2.6-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
nativelib-0.2.2.6-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details
nativelib-0.2.2.6-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details
nativelib-0.2.2.6-cp310-cp310-macosx_10_14_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.14+ x86-64 Details

Total release size: 24.8 MB

Release files / nativelib-0.2.2.6-cp314-cp314-win_amd64.whl

Download URL nativelib-0.2.2.6-cp314-cp314-win_amd64.whl
Size 541.7 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
3e4390e9bbf8d7670b04c1fed7f4b3c0bfff2b415d7423fdfcf3e167ee4018a6
BLAKE2b-256 checksum
How to use checksums
66ce8417410d431d716172cacb20fb7f3ff676a75f5dc0cd47865287751592e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / nativelib-0.2.2.6-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL nativelib-0.2.2.6-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 3.3 MB
Tags CPython 3.14 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
5f253aa47ace63736b60624b977621149666f7a62e96ad901356e61deaa6e2ac
BLAKE2b-256 checksum
How to use checksums
ca273809083970f1f631e59659a1b4280ce5dc7dcd6bb862c5f0d628b37621d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / nativelib-0.2.2.6-cp314-cp314-macosx_11_0_arm64.whl

Download URL nativelib-0.2.2.6-cp314-cp314-macosx_11_0_arm64.whl
Size 574.2 kB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
89078e08a05b9333ebbdb6c76c0e3171e4c183e5a4c5eab6216702c7e2ece2f6
BLAKE2b-256 checksum
How to use checksums
4d6b807efeec15da25b57a18a0e9122e471e6c46a6d7935fe201e07a6cdf8d32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / nativelib-0.2.2.6-cp314-cp314-macosx_10_15_x86_64.whl

Download URL nativelib-0.2.2.6-cp314-cp314-macosx_10_15_x86_64.whl
Size 559.5 kB
Tags CPython 3.14 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
464926d7e1de9119213ea68f0045f3a38afdad6538d234a5718d4fb103c8fdc2
BLAKE2b-256 checksum
How to use checksums
328e141209e4efce9a8db2e691b6874c6ee63ccc635763264af017b45015d6ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / nativelib-0.2.2.6-cp313-cp313-win_amd64.whl

Download URL nativelib-0.2.2.6-cp313-cp313-win_amd64.whl
Size 525.5 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
47db823d85cbccf194cf36e940b42f992149ad187884ac3cfedfa1c23851e18f
BLAKE2b-256 checksum
How to use checksums
e737dbdfe346b32c772f406e64721017de01b2312c2d6476d44f501f032b049b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / nativelib-0.2.2.6-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL nativelib-0.2.2.6-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 3.3 MB
Tags CPython 3.13 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
9f1e15a3245a2ca978c6c1c0044d74d17341382175847af0cc15168d7f44c9b5
BLAKE2b-256 checksum
How to use checksums
e09a23d10df1cb63b7710ecf8cd68ea8822ac2e654e356c6d4b0f2e814ae7583
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / nativelib-0.2.2.6-cp313-cp313-macosx_11_0_arm64.whl

Download URL nativelib-0.2.2.6-cp313-cp313-macosx_11_0_arm64.whl
Size 569.5 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b22f95bc88a5beaecd2d3a7a94c2e5376066eecc47baeb928d7600a848601895
BLAKE2b-256 checksum
How to use checksums
32ecacd0eeba541f96a2202c3c69b522d929879ef1316f50fffab4bb5a2106ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / nativelib-0.2.2.6-cp313-cp313-macosx_10_14_x86_64.whl

Download URL nativelib-0.2.2.6-cp313-cp313-macosx_10_14_x86_64.whl
Size 558.7 kB
Tags CPython 3.13 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
a070ba562b5ceb738cb4cb63ba72dde68918731271cb8aeea1d71ab4986880d3
BLAKE2b-256 checksum
How to use checksums
4298a331c3adf8e7602e81e68374fa0f593fc157e27412d515981ba2ada57dee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / nativelib-0.2.2.6-cp312-cp312-win_amd64.whl

Download URL nativelib-0.2.2.6-cp312-cp312-win_amd64.whl
Size 534.5 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
1ba3e705d6ac8a9207455148790d73c9c582d432841327e5c317aec75b0f85c8
BLAKE2b-256 checksum
How to use checksums
b952d0106cb2d0b22e3ed82b04fb29b63513db515e5cfa166baf811b3a97ec13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / nativelib-0.2.2.6-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL nativelib-0.2.2.6-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 3.5 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
73e9408838a2b75562fb0d30921ef6c7c6d9a9ee67858e3ca75da779852b86ea
BLAKE2b-256 checksum
How to use checksums
d7bb966fdd1c560332e327329c06fe7fd28ce033daa1dcccbca5dfdcda2ec213
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / nativelib-0.2.2.6-cp312-cp312-macosx_11_0_arm64.whl

Download URL nativelib-0.2.2.6-cp312-cp312-macosx_11_0_arm64.whl
Size 580.3 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1b6f485e826f15e514931688fd06541cbfae17f3d56a5558cd6df61379b1e41d
BLAKE2b-256 checksum
How to use checksums
3e0cf998abaa661cfb32cf77ac67218d525cd849e8aa7adfae652d9c5560131e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / nativelib-0.2.2.6-cp312-cp312-macosx_10_14_x86_64.whl

Download URL nativelib-0.2.2.6-cp312-cp312-macosx_10_14_x86_64.whl
Size 568.5 kB
Tags CPython 3.12 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
c6579152a5702977eeb71e33290470cf412bb2c8c6532318b209a7c2be714cd7
BLAKE2b-256 checksum
How to use checksums
85cc42421091ce5dee3e3541d85a31cb9eb27e77be6fbdbd929201b4cab1b371
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / nativelib-0.2.2.6-cp311-cp311-win_amd64.whl

Download URL nativelib-0.2.2.6-cp311-cp311-win_amd64.whl
Size 528.3 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
10db674e3eb4c77d9395e13a04352d13b40d7fc25ab993e940374dd29d0fd54b
BLAKE2b-256 checksum
How to use checksums
47b8056e0075583f0fe292d5f36fc09cd7aa0d8a4128acf4bd4d1016067d25c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / nativelib-0.2.2.6-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL nativelib-0.2.2.6-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 3.3 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
1e764e14046d2d3e80ac777bcd27f874989e4e73212f8ede804a33868579202f
BLAKE2b-256 checksum
How to use checksums
18541a124661ca267826634eb7c05ebe2fbcddfbfd827cc62ebd9e526f609716
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / nativelib-0.2.2.6-cp311-cp311-macosx_11_0_arm64.whl

Download URL nativelib-0.2.2.6-cp311-cp311-macosx_11_0_arm64.whl
Size 577.2 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
79a07b718183b2d875d839358ed7cfaf4c0579cae6f29153b77f0d1e930aa41f
BLAKE2b-256 checksum
How to use checksums
94204f5fb9daad4ad44ff28db58d70834da32078f9b6ad608ad534a3fcdd4aee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / nativelib-0.2.2.6-cp311-cp311-macosx_10_14_x86_64.whl

Download URL nativelib-0.2.2.6-cp311-cp311-macosx_10_14_x86_64.whl
Size 560.1 kB
Tags CPython 3.11 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
e8250fad69bb038c73eb6a86a68150246951699a61ca45a5cbd0fc67f34be071
BLAKE2b-256 checksum
How to use checksums
d684cc692be3bb9fe20f943a6e9369ed60dd3c85cb892f1fabf2255a4ec7924d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / nativelib-0.2.2.6-cp310-cp310-win_amd64.whl

Download URL nativelib-0.2.2.6-cp310-cp310-win_amd64.whl
Size 527.4 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
897489c30a21a6c03b5362cbdb6d5d62f539a8cc1035dd8fbf6b647ae285b079
BLAKE2b-256 checksum
How to use checksums
8d0eab8f19427c24f86c7b8fc2e1952d8d60d75daafc37c1553ac92d206d4d09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / nativelib-0.2.2.6-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL nativelib-0.2.2.6-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 3.1 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
f68248e6337aef9175def004693da5a9c889417ac050a318d24315c80a8ab2be
BLAKE2b-256 checksum
How to use checksums
7393b15679c3d12db531c94291409edf63da309cf86aa90ad2e709baf7f39117
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / nativelib-0.2.2.6-cp310-cp310-macosx_11_0_arm64.whl

Download URL nativelib-0.2.2.6-cp310-cp310-macosx_11_0_arm64.whl
Size 579.2 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a38a1868bb5cad882ff8d7c53be8e18bbed14bf51f2334fb8faed3b1e36cd38a
BLAKE2b-256 checksum
How to use checksums
9bae7a23140672357c19b631b8bfe5cb233e4f32ecca543688c334dbbcd2bf56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / nativelib-0.2.2.6-cp310-cp310-macosx_10_14_x86_64.whl

Download URL nativelib-0.2.2.6-cp310-cp310-macosx_10_14_x86_64.whl
Size 562.8 kB
Tags CPython 3.10 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
6343c90b94570643759610e782dec9da55e75e6c05a600e660e4bf65b8252a8e
BLAKE2b-256 checksum
How to use checksums
c5539eefa0074677cd3c690dcfceb7ed43a77fe5a653a5d798fb77be4f2c6ce6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page