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.4.post1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (3.5 MB view details)

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

pycybase-0.1.4.post1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (3.5 MB view details)

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

pycybase-0.1.4.post1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (3.5 MB view details)

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

pycybase-0.1.4.post1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (3.5 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.4.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.4.post1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fc1e2624994295f8edd5371fed9d686b3a50501a39578c8478c8c33757e2a14a
MD5 928d15e24517c9dc80143ada8705180e
BLAKE2b-256 af7513564f4117180e19d3e00c35481f2933e4bdef34fa0fe25bd8822756e8df

See more details on using hashes here.

File details

Details for the file pycybase-0.1.4.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.4.post1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d0d8ce2ee7739697a1d1baa6d9963540adc41579602164e9aa315484cee90631
MD5 0be10cd724d9ce0420eceee12982cdd6
BLAKE2b-256 d71808755e4f3c18f477398b2e4c462bd2f1ee7f4d0acfda237e708dab8a2d87

See more details on using hashes here.

File details

Details for the file pycybase-0.1.4.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.4.post1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8d33aa63a2e427ee2265a0233f17772534bc4d314b3341c210f5ca079c88b968
MD5 a1dd173e7d8dcce0dd610fb8977c6a8e
BLAKE2b-256 f0bccbdde61882d93161330683f7d49680d6d160de59d2a34a4a98bde19bb1f8

See more details on using hashes here.

File details

Details for the file pycybase-0.1.4.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.4.post1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6f40f32f14cfeef464c968c26132401e0ee8ed355818137c2478ad3c7503290e
MD5 4318f34113fb80e4297aeb1e76f39c54
BLAKE2b-256 6f10fc1eddec354a644b32b318f46224b986c6d2744a91442d87a3d3e0b54bb8

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