Common C / Cython dual interfaces (allocator protocol, SHM allocator, heap allocator) for Python HFT projects
Project description
PyCyBase
Common C / Cython dual interfaces for Python HFT Projects.
Overview
This package provides low-level allocator infrastructure shared across HFT projects:
- c_allocator_protocol — Unified memory allocation protocol supporting heap, shared memory (SHM), and raw malloc backends with ref-counting and vigilant mode.
- c_shm_allocator — POSIX shared-memory backed page allocator with fixed-address virtual region mapping for cross-process pointer stability.
- c_heap_allocator — In-process heap allocator with free-list reuse and auto-growing pages.
Installation
pip install -e .
Usage
from cbase.allocator_protocol.c_allocator_protocol import AllocatorProtocol, AP_SHARED
with AP_SHARED:
alloc = AllocatorProtocol(1024)
alloc.buf[0] = b'x'
License
Proprietary.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
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 pycybase-0.1.4.post2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: pycybase-0.1.4.post2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 3.5 MB
- Tags: CPython 3.14t, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be05d2325e128f0e60cde8a5b287a6c99f4ed2068b298d573b667acf0eedb5ee
|
|
| MD5 |
bb74c4a38782bdb803778b4e339459b3
|
|
| BLAKE2b-256 |
12696496582ef6c7690c3bd65ce4f892e595b8e03dbdfacf98436961b8b350dd
|
File details
Details for the file pycybase-0.1.4.post2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: pycybase-0.1.4.post2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 3.5 MB
- Tags: CPython 3.14, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14ad76b5a74ea46f032f6c14c1a66f2e6b60f767710ff61d219c20de2c60db94
|
|
| MD5 |
a20f2143aa385e9a9a0ea3c813fa6782
|
|
| BLAKE2b-256 |
1018fcb1dfeaf2f6ddcc61fe43f625a7d7fa434cdfddd9db8c73584bfdb7c331
|
File details
Details for the file pycybase-0.1.4.post2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: pycybase-0.1.4.post2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 3.5 MB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
363381a387514b7d039ee0b0a1e244ec4e52601f0e835e4b436d18465df53a72
|
|
| MD5 |
a40a6e77fa22d6102190f09b0ab6b19f
|
|
| BLAKE2b-256 |
0458bb9a01d86667f7f5c277fd010193c66b79f92b492d5584f2f4fe9f265830
|
File details
Details for the file pycybase-0.1.4.post2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: pycybase-0.1.4.post2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 3.5 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5bce02a0082bfbdc0bbb63e6cb4a56c22fbad54c189ff7d7a0edd0de404115d
|
|
| MD5 |
8947caa38ba40571ecaefd61c350c803
|
|
| BLAKE2b-256 |
46edd8e2c1846bc56b8dd42a2c0f263207c2a44a0ed144f9e075097cdee2a291
|