Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

pycybase-0.1.3.post1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

pycybase-0.1.3.post1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

pycybase-0.1.3.post1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

pycybase-0.1.3.post1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

File details

Details for the file pycybase-0.1.3.post1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pycybase-0.1.3.post1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 460dbb012f50dccf6ac2002d1e36f064ed8cc13a5c242b76fb984fe42ebcb436
MD5 784f8a7565a1e4d052b0a1c0ba712cf3
BLAKE2b-256 6f5cdfd2262fc259cf62d7f292618f64c0deaf01de0768d8ee3f9d342069c270

See more details on using hashes here.

File details

Details for the file pycybase-0.1.3.post1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pycybase-0.1.3.post1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4b341b4849102e22902a6aedfa8604a939410babc76be550ce4d794a1141f950
MD5 57c9d4863a52b1077fb084c1529a9526
BLAKE2b-256 16d92f74a73995bb62706a71f825e28391709665c7ad55a77954c34953ea1191

See more details on using hashes here.

File details

Details for the file pycybase-0.1.3.post1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pycybase-0.1.3.post1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3dcc51bacdaf7cae95472ee63bec0172a92f73075a1ac5e3585f16a586033376
MD5 5ce5b825a1fb5b038a5c047f40f88265
BLAKE2b-256 4524885a9b82549b280857ba6dd7dbfc4840ce249e9b3251c3f1eb8f2ac94b69

See more details on using hashes here.

File details

Details for the file pycybase-0.1.3.post1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pycybase-0.1.3.post1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7ce0649a009f3ab2fbe7083146af307767fcbba1c648305b20c2405df504b1fa
MD5 061887acbe74402e53d27f55c3b662ae
BLAKE2b-256 0f439e70703cbe8b43bf177fddd8733e764536dd3b2f1380469c5c3f80f00981

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page