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.post2-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.post2-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.post2-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.post2-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.post2-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.post2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 be05d2325e128f0e60cde8a5b287a6c99f4ed2068b298d573b667acf0eedb5ee
MD5 bb74c4a38782bdb803778b4e339459b3
BLAKE2b-256 12696496582ef6c7690c3bd65ce4f892e595b8e03dbdfacf98436961b8b350dd

See more details on using hashes here.

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

File hashes

Hashes for pycybase-0.1.4.post2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 14ad76b5a74ea46f032f6c14c1a66f2e6b60f767710ff61d219c20de2c60db94
MD5 a20f2143aa385e9a9a0ea3c813fa6782
BLAKE2b-256 1018fcb1dfeaf2f6ddcc61fe43f625a7d7fa434cdfddd9db8c73584bfdb7c331

See more details on using hashes here.

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

File hashes

Hashes for pycybase-0.1.4.post2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 363381a387514b7d039ee0b0a1e244ec4e52601f0e835e4b436d18465df53a72
MD5 a40a6e77fa22d6102190f09b0ab6b19f
BLAKE2b-256 0458bb9a01d86667f7f5c277fd010193c66b79f92b492d5584f2f4fe9f265830

See more details on using hashes here.

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

File hashes

Hashes for pycybase-0.1.4.post2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c5bce02a0082bfbdc0bbb63e6cb4a56c22fbad54c189ff7d7a0edd0de404115d
MD5 8947caa38ba40571ecaefd61c350c803
BLAKE2b-256 46edd8e2c1846bc56b8dd42a2c0f263207c2a44a0ed144f9e075097cdee2a291

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