Skip to main content

Fond — Foundation for Cooking, Foundation for Life

Fond

Foundation for Cooking, Foundation for Life.

pypi version

Experimental: This package is under active development. APIs may change without notice.

C++ header-only utilities distributed via PyPI as a build-time dependency. Your end users never need to install it.

Installation

pip install fond

Usage

As a build dependency

[build-system]
requires = [
    "fond>=0.1.0",
    "build-cub",
    "pybind11",
]

Getting include paths

import fond

fond.get_include()  # Root include path
fond.get_libs()  # Binding source files

In your C++ code

#include <fond/collections/maps.hpp>
#include <fond/logger/logger.hpp>
#include <fond/colors/palette.hpp>
#include <fond/msgpack/packer.hpp>

Available Headers

Collections (fond/collections/)

Policy-based data structures with compile-time Ordered/Frozen variants:

  • Set — unordered, ordered, frozen, frozen-ordered (policy-based)
  • Map — same four variants via policies
  • List / Tuple — mutable list + frozen tuple
  • BloomFilter / BloomSet — probabilistic fast-negative-lookup set
  • LRUCache — simpoo version wrapping Map
  • RingBuffer — fixed-size circular buffer, compile-time sized
  • Trie — prefix tree for string lookup and autocomplete
  • BitFlag — type-safe enum-keyed bitset wrapper
  • Arena — bump allocator for bulk allocation
  • Pool — fixed-size typed object pool with freelist
  • SparseSet — O(1) add/remove/contains with dense iteration
  • DynStack — dynamic LIFO stack, doubles as a freelist

Collections Core (fond/collections/core/)

Composable low-level building blocks for high-performance data structures:

  • OpenMap — open-addressing hash map with tombstones, node pool, intrusive LRU list
  • IntrusiveList — doubly-linked list that doesn't own nodes
  • NodePool — pre-allocated typed pool for ListNode-derived types
  • HashUtils — probing, power-of-2 masking, hash mixing, load factor math

High-Performance (fond/collections/)

  • FastLRU — LRU cache built on OpenMap (zero allocations per get/put)

Colors (fond/colors/)

  • Color — RGBA color struct with conversions to ANSI, ImGui, uint32
  • Palette — named color constants (single source of truth)
  • ANSI — terminal color constants (constexpr, zero allocation)
  • ImGui — ImVec4/ImU32 color constants (generated from palette)

Logger (fond/logger/)

  • Compile-time configurable logging with function pointer dispatch
  • ANSI color support, file output with rotation, buffer mode, callbacks
  • std::format template overloads on all log methods

Info (fond/info/)

  • ProjectInfo — version, exit codes, project metadata with pybind11 bindings
  • VersionHelpers — version bump/parse utilities

MsgPack (fond/msgpack/)

  • Binary serialization with MSGPACK_DEFINE macro (powered by FOND_FOR_EACH)
  • Packer, Unpacker, Python packer/unpacker variants

Lua (fond/lua/)

  • Lua table serialization with LUA_DEFINE macro (powered by FOND_FOR_EACH)

Macros (fond/macros/)

  • FOND_FOR_EACH — preprocessor for-each over variadic args (generated, up to 100 args)

Tools

  • ByteBuffer — unified read/write byte buffer
  • Timer — scoped timer with auto unit selection, lap times, time_it() lambda
  • EpochTimestamp — configurable timestamp formatting
  • KeyStore — file-backed key/value store using MsgPack
  • Locking — mutex helpers (C and C++ variants)

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.

fond-0.0.92-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.6 MB view details)

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

fond-0.0.92-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (2.6 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.26+ ARM64manylinux: glibc 2.28+ ARM64

fond-0.0.92-cp314-cp314-macosx_15_0_arm64.whl (533.4 kB view details)

Uploaded CPython 3.14macOS 15.0+ ARM64

fond-0.0.92-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.6 MB view details)

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

fond-0.0.92-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (2.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.26+ ARM64manylinux: glibc 2.28+ ARM64

fond-0.0.92-cp313-cp313-macosx_15_0_arm64.whl (533.1 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

fond-0.0.92-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.6 MB view details)

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

fond-0.0.92-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (2.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.26+ ARM64manylinux: glibc 2.28+ ARM64

fond-0.0.92-cp312-cp312-macosx_15_0_arm64.whl (533.1 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

File details

Details for the file fond-0.0.92-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fond-0.0.92-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 02d26356560e225661f1b3258364b84ca35dd46d3ad3a2e5800df225eb825e2e
MD5 84a4d692735f69737d17c92c3633e96b
BLAKE2b-256 9ebbf6b8455ef0a4a9fb0bb294d31cf5f75e4dab2414b7232886fd7bdd885ce3

See more details on using hashes here.

Provenance

The following attestation bundles were made for fond-0.0.92-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build-wheels.yml on sicksubroutine/fond

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fond-0.0.92-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for fond-0.0.92-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5e1364055fd0d1e970a15f2f8cc020a7adf57097c65401f3667392ed53e40924
MD5 6a72f4be4b0da4d45dc90e9a4349ffd9
BLAKE2b-256 bacbc327e0dd7c8a18670778bd54852425a953728ae60773cbbf8a92b44808e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for fond-0.0.92-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl:

Publisher: build-wheels.yml on sicksubroutine/fond

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fond-0.0.92-cp314-cp314-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for fond-0.0.92-cp314-cp314-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 ab580c9c4e79543656a17e75a0c345102341b4f30683197fbf2d93b6961f61d6
MD5 574305126e9d8f26ab37cf1ac0e4154e
BLAKE2b-256 9acd98e60f518f6acc4d7449a70bfb4bc092f329cb997e1a8f436286c3578432

See more details on using hashes here.

Provenance

The following attestation bundles were made for fond-0.0.92-cp314-cp314-macosx_15_0_arm64.whl:

Publisher: build-wheels.yml on sicksubroutine/fond

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fond-0.0.92-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fond-0.0.92-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 aff5c1461824ced3f7045b034e02c34d7d43c11dc7cdaec3ebe60328fffbb34a
MD5 795d78e866684a72c1d2b54df94f5a16
BLAKE2b-256 50e1b5958c9828a72b191906330ee63d5cd54a4e017412add970d55dda4b4e20

See more details on using hashes here.

Provenance

The following attestation bundles were made for fond-0.0.92-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build-wheels.yml on sicksubroutine/fond

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fond-0.0.92-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for fond-0.0.92-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3b4c2a29c1f9dfd42af995e40e63aaa3ef9c2b11e0038982b430291cd312633f
MD5 40ce4ae15a26e7a047690b63f5ff223d
BLAKE2b-256 d9638aa3da08e059a4165b2a695679be823bf2cd5e03deb6673b44ce8e73c952

See more details on using hashes here.

Provenance

The following attestation bundles were made for fond-0.0.92-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl:

Publisher: build-wheels.yml on sicksubroutine/fond

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fond-0.0.92-cp313-cp313-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for fond-0.0.92-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 5c2e512a8d48b44c2a56efeba1861288201eba14ca690cd8a33494afd5039cdf
MD5 d19f4478dfecca98c6192b24009047c2
BLAKE2b-256 59ad508b9fe24b4e5ece101c2f9ea0ba064d08081e8f4212326fd1e07d37854e

See more details on using hashes here.

Provenance

The following attestation bundles were made for fond-0.0.92-cp313-cp313-macosx_15_0_arm64.whl:

Publisher: build-wheels.yml on sicksubroutine/fond

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fond-0.0.92-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fond-0.0.92-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f5c5ff5799cca8d41013fcd82cb4db6e276b15c1621a909d978839e9b9b886a4
MD5 553bb29d30c4e076c607f17c01bcf817
BLAKE2b-256 bdc2b385d563448d520bb1a89f41ab03e2bc1324a614e40be8d4f5276a361dc5

See more details on using hashes here.

Provenance

The following attestation bundles were made for fond-0.0.92-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build-wheels.yml on sicksubroutine/fond

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fond-0.0.92-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for fond-0.0.92-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d436ae89968b8d4c4bfbc8fb5a0af674edd73ec166e2b385c2f4f02d5ed2ac74
MD5 1f45762b2be78c52a7ad0e031dc148d3
BLAKE2b-256 b2d655f38a75f7f6a625a3d0ef3f51c1dd022163dcce4c687eba1f3c2d1ec580

See more details on using hashes here.

Provenance

The following attestation bundles were made for fond-0.0.92-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl:

Publisher: build-wheels.yml on sicksubroutine/fond

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fond-0.0.92-cp312-cp312-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for fond-0.0.92-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 5b9a247100f9f4fde73e5198adac509dfc2758719c5bf41ba92352c3de002ffa
MD5 ad6a3a1756a5ac0b9b64da206e4f657d
BLAKE2b-256 b48a057ad6ed91a09616e6925f2a05bcf07fb9ce710e5d00455fe54bd26ae276

See more details on using hashes here.

Provenance

The following attestation bundles were made for fond-0.0.92-cp312-cp312-macosx_15_0_arm64.whl:

Publisher: build-wheels.yml on sicksubroutine/fond

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.1.17

3 files

0.1.15

12 files

0.1.10

12 files

0.1.5

12 files

0.1.4

12 files

0.1.3

12 files

0.1.2

12 files

0.1.1

12 files

0.1.0

12 files

0.0.99

12 files

0.0.98

12 files

0.0.97

12 files

0.0.95

9 files

0.0.94

9 files

0.0.93

9 files

This release

0.0.92 This release

9 files

0.0.91

9 files

0.0.90

9 files

0.0.89

9 files

0.0.88

9 files

0.0.87

9 files

0.0.86

9 files

0.0.85

9 files

0.0.84

9 files

0.0.83

9 files

0.0.82

9 files

0.0.81

9 files

0.0.76

9 files

0.0.75

9 files

0.0.73

12 files

0.0.66

9 files

0.0.65

9 files

0.0.61

9 files

0.0.59

9 files

0.0.50

9 files

0.0.49

9 files

0.0.48

9 files

0.0.47

9 files

0.0.46

9 files

0.0.45

9 files

0.0.42

9 files

0.0.41

9 files

0.0.40

9 files

0.0.39

9 files

0.0.38

9 files

0.0.37

9 files

0.0.36

9 files

0.0.35

9 files

0.0.34

9 files

0.0.33

9 files

0.0.31

9 files

0.0.26

9 files

0.0.22

9 files

0.0.21

9 files

0.0.17

3 files

0.0.16

3 files

0.0.15

2 files

0.0.14

2 files

0.0.8

1 file

0.0.7

1 file

0.0.6

1 file

0.0.5

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page