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.6
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.6.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.6.tar.gz.
File metadata
- Download URL: kore_fileformat-1.6.6.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 |
dba7dbf20ceeed607aff60a8ba79924078c19da105385558fe7b65dea49d7e07
|
|
| MD5 |
20d5fae9dc4dc9fb62c084411162efe3
|
|
| BLAKE2b-256 |
2286033a79841129a182ad600827e3be81b64e93e2a935a3f64a7abdd6308dd0
|
File details
Details for the file kore_fileformat-1.6.6-py3-none-any.whl.
File metadata
- Download URL: kore_fileformat-1.6.6-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 |
858e7fe4f18e22f7e3e9a603bd38cb1cd8a7c15f52ef1ed98db8313fb79b06f7
|
|
| MD5 |
443496a6d9054c5fbd39d47e5b4f13d6
|
|
| BLAKE2b-256 |
30537bd2f450140bc5a3b6e7dea2c5a91fe9e2e87596c441d7ae1b569f40350b
|