Skip to main content

KORE FileFormat — Python

Version 1.6.6 | PyPI | GitHub

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kore_fileformat-1.6.6-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

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

Hashes for kore_fileformat-1.6.6.tar.gz
Algorithm Hash digest
SHA256 dba7dbf20ceeed607aff60a8ba79924078c19da105385558fe7b65dea49d7e07
MD5 20d5fae9dc4dc9fb62c084411162efe3
BLAKE2b-256 2286033a79841129a182ad600827e3be81b64e93e2a935a3f64a7abdd6308dd0

See more details on using hashes here.

File details

Details for the file kore_fileformat-1.6.6-py3-none-any.whl.

File metadata

File hashes

Hashes for kore_fileformat-1.6.6-py3-none-any.whl
Algorithm Hash digest
SHA256 858e7fe4f18e22f7e3e9a603bd38cb1cd8a7c15f52ef1ed98db8313fb79b06f7
MD5 443496a6d9054c5fbd39d47e5b4f13d6
BLAKE2b-256 30537bd2f450140bc5a3b6e7dea2c5a91fe9e2e87596c441d7ae1b569f40350b

See more details on using hashes here.

Release history Release notifications | RSS feed

1.8.0

2 files

1.7.3

2 files

1.6.7

2 files

This release

1.6.6 This release

2 files

1.6.5

2 files

1.6.0

2 files

1.5.1

3 files

1.5.0

3 files

1.3.3

1 file

1.3.2

3 files

1.3.1

5 files

1.3.0

1 file

1.2.9

10 files

1.2.8

3 files

1.2.3

3 files

1.2.2

3 files

1.2.1

3 files

1.2.0

3 files

1.1.6

3 files

1.1.5

3 files

1.1.4

3 files

1.1.3

1 file

1.1.2

1 file

1.1.1

1 file

1.1.0

1 file

0.1.0

2 files

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