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.0-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.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (3.2 MB view details)

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

pycybase-0.1.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (3.2 MB view details)

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

pycybase-0.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (3.2 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.0-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.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0bc6aa2a49e0adf59b27b5cf5958b26bb53061e984b2a44a0a825467d8f6f71a
MD5 a6d90c0890e9888d502100255e9b0893
BLAKE2b-256 d0b28cd02537002bff20e2d372c99c1648ba65cddc5c99ee4b6b175519e722a8

See more details on using hashes here.

File details

Details for the file pycybase-0.1.0-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.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 577879f1f15893348ea10a6bc75ed9096284704474354056cc0295de99627917
MD5 845e8a45a9902dae2719eace55845512
BLAKE2b-256 dd71e2f78382b23000084e4a085365d60793f93aa24b17ea14e5fa64cbf527ea

See more details on using hashes here.

File details

Details for the file pycybase-0.1.0-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.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7bc89916ee4b2f85c9a29fa237c24b83f03b8c5474cbe2b892403c8623457e38
MD5 3133f5981923b7036d28a460892a40a0
BLAKE2b-256 fd17a8e7b93bb18c863742d941f355b6c94212614cd0b138dc56e6be061e4010

See more details on using hashes here.

File details

Details for the file pycybase-0.1.0-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.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 79c0dca4d9b234284d5b9a433785e567951031ad8133a1fa8e0af96e791e319b
MD5 3b77d2223d42d83b3efa3616f3484e67
BLAKE2b-256 321024bb6657e4c4b00f0dec51de0219818410ae16b93bc52550a2d2cb871cd4

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