KORE FileFormat — Python
High-performance columnar format with 11 ACID features. Reads/writes via Rust kore_ffi.dll through ctypes.
Install
pip install kore-fileformat==1.6.7
Or from source (requires Rust):
cargo build --release -p kore-ffi
pip install -e .
Quick Start
import kore_fileformat as kore
# --- Write ---
block = kore.DataBlock()
block.add_column('price', kore.DataType.F64, [10.5, 20.0, 30.75])
block.add_column('quantity', kore.DataType.I64, [100, 200, 300])
kore.write_file('data.kore', block)
# --- Read ---
result = kore.read_file('data.kore')
print(f'{result.num_rows} rows, {result.num_columns} columns')
price_col = result.get_column('price')
print(price_col.data) # [10.5, 20.0, 30.75]
# --- CRC32 checksum ---
checksum = kore.crc32(b'hello kore')
print(f'crc32 = {checksum:#010x}') # 0x4b029b4b
API Reference
| Function | Description |
|---|---|
write_file(path, block) |
Write DataBlock to .kore binary |
read_file(path) |
Read .kore binary into DataBlock |
crc32(data: bytes) |
CRC32 checksum |
DataBlock() |
Create empty block |
block.add_column(name, dtype, data) |
Add a column |
block.get_column(name) |
Get column by name |
Data Types
kore.DataType.I64 # 64-bit integer
kore.DataType.F64 # 64-bit float
kore.DataType.STR # UTF-8 string
kore.DataType.STR_DICT # Dictionary-encoded string (compressed)
kore.DataType.BOOL # Boolean
Run Tests
python -m pytest test_kore_fileformat.py -v
python test_phase3.py
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kore_fileformat-1.6.7.tar.gz
(8.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kore_fileformat-1.6.7.tar.gz.
File metadata
- Download URL: kore_fileformat-1.6.7.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e42a89fe25e28fa11b65e42f9a6022f1e226d3c9e3312e3e6043333560cc411f
|
|
| MD5 |
cce6e3ad2e8f8bb454cad7cbb8f566be
|
|
| BLAKE2b-256 |
48e605f3d5229c506dbb4eee3e23057a699df8c02b2d4de0e80242ecbdf2872d
|
File details
Details for the file kore_fileformat-1.6.7-py3-none-any.whl.
File metadata
- Download URL: kore_fileformat-1.6.7-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc6e86121f27e67754401d18f4c2836daea93b31ac94df6a65d85e6dfe6f6aea
|
|
| MD5 |
88b0b144c65396aac45abfad00c6ac96
|
|
| BLAKE2b-256 |
f2c0de81b7a343447ee3bf6a31214379c7b1434aa558928e4a6f31a78812bda3
|