picop package#

Top-level package and public submodules. Prefer picop.hot for micro-opt starters.

Fast CPython C-API helpers for typed hot paths (dict, str, bytes, …).

Re-exports compiled Cython helpers from picop.cy* submodules. Prefer picop.hot for micro-opt starters; full surface stays on picop / picop.cy*. Soft Strategy B aliases were removed in 0.3 — see picop.compat.COMPAT_MAP / __getattr__ migration hints.

Submodules#

hot

Curated micro-opt starters — prefer from picop.hot import over the flat barrel.

containers

Category facade: typed Core containers (dict / list / set / tuple).

buffers

Category facade: bytes / bytearray / array / memoryview / buffer / slice.

protocols

Category facade: abstract Protocols (mapping / sequence / number / object).

uuid

Fast C-backed UUID values and version 4 generation.

cyansi

ANSI SGR escape sequences for terminals.

cyarray

Fast array.array helpers (Cython cpython.array surface).

cybool

Boolean helpers.

cybuffer

Buffer protocol helpers.

cybytearray

Fast bytearray accessors.

cybytes

Fast bytes accessors.

cycellobject

Closure cell helpers.

cycodecs

Codec registry helpers.

cycomplex

Fast complex helpers.

cycontextvars

contextvars helpers.

cyconversion

Conversion helpers.

cydatetime

datetime.h helpers (imports DateTime C-API on load).

cydeque

Fast collections.deque helpers.

cydescr

Descriptor helpers.

cydict

Fast dict accessors.

cyfileobject

File-object helpers.

cyfloat

Fast float helpers.

cyfunction

Function-object helpers.

cygc

GC tuning helpers.

cygenobject

Generator-object helpers.

cyiterator

Iterator protocol helpers.

cyiterobject

Iterator object constructors.

cylist

Fast list accessors.

cylong

Fast int / long C-API helpers.

cymapping

Mapping protocol helpers.

cymarshal

Marshal helpers.

cymemoryview

Fast memoryview helpers.

cymethod

Bound-method helpers.

cymodule

Module / import helpers.

cynumber

Number protocol helpers.

cyobject

Object protocol helpers.

cypycapsule

Capsule helpers.

cyrange

Fast range helpers.

cysequence

Sequence protocol helpers.

cyset

Fast set accessors.

cyslice

Fast slice helpers.

cystr

Fast str accessors.

cytime

High-resolution time helpers.

cytuple

Fast tuple accessors.

cytype

Type-object helpers.

cyunicode

Fast str UTF-8 and intern helpers.

cyweakref

Weakref helpers.