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.1.15-cp314-cp314-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.14Windows x86-64

fond-0.1.15-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (3.7 MB view details)

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

fond-0.1.15-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (3.7 MB view details)

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

fond-0.1.15-cp314-cp314-macosx_15_0_arm64.whl (656.6 kB view details)

Uploaded CPython 3.14macOS 15.0+ ARM64

fond-0.1.15-cp313-cp313-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.13Windows x86-64

fond-0.1.15-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (3.7 MB view details)

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

fond-0.1.15-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (3.7 MB view details)

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

fond-0.1.15-cp313-cp313-macosx_15_0_arm64.whl (656.4 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

fond-0.1.15-cp312-cp312-win_amd64.whl (920.9 kB view details)

Uploaded CPython 3.12Windows x86-64

fond-0.1.15-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (3.7 MB view details)

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

fond-0.1.15-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (3.7 MB view details)

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

fond-0.1.15-cp312-cp312-macosx_15_0_arm64.whl (656.4 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

File details

Details for the file fond-0.1.15-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: fond-0.1.15-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for fond-0.1.15-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 30bbd05630cd9d426c983a6e4bbb290782a8beb49c8575ed2935a3a47199d5de
MD5 0f2772f462c6ee90fd5027d6a82ba41e
BLAKE2b-256 f1c585a58fabdf91a6c394ea0163ebc6686cc8a1688569655b8a9cb5f66d13b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for fond-0.1.15-cp314-cp314-win_amd64.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.1.15-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fond-0.1.15-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0fa83c212e1b1904b8a98ed1c5c67d0e8b81b7e5d31b0296fac66c61cae10af2
MD5 f67591dff83cb2930734db587d692b02
BLAKE2b-256 9ee42252f51d3f78d322428806e306cf43983d6c347bb4f0b82f0670a4047ec3

See more details on using hashes here.

Provenance

The following attestation bundles were made for fond-0.1.15-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.1.15-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for fond-0.1.15-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f3d28bc8d5a2ccc1799d304031a61abce8cfe100faec7b36f87417d7fe60b9ab
MD5 2927606a3b31655001b96373adcc2745
BLAKE2b-256 ad95ae6cc640157c0b534f9cc5ab00eea703922958a37da2d09ce5f65b1be614

See more details on using hashes here.

Provenance

The following attestation bundles were made for fond-0.1.15-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.1.15-cp314-cp314-macosx_15_0_arm64.whl.

File metadata

  • Download URL: fond-0.1.15-cp314-cp314-macosx_15_0_arm64.whl
  • Upload date:
  • Size: 656.6 kB
  • Tags: CPython 3.14, macOS 15.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for fond-0.1.15-cp314-cp314-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 7528eb8efb7461c72c46bb538b731cce92c8cfad424962892ebb2e3892474006
MD5 f27b8f0f1612122e21453df042084a05
BLAKE2b-256 43e891e3341f6df23eac63ad32a0b24b6b16289c3fc17735de9f926ee4e2aae4

See more details on using hashes here.

File details

Details for the file fond-0.1.15-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: fond-0.1.15-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for fond-0.1.15-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 86dd8445bf2c52992c56c601718f4460a3c9a77b7ac8090ba160ce66559dde39
MD5 7948b62e7f35c709fc7d0be232bcf0cd
BLAKE2b-256 d85875719f86e8c25abc860dde1e14864fa3144ece2424aeb863d66c6adc148f

See more details on using hashes here.

Provenance

The following attestation bundles were made for fond-0.1.15-cp313-cp313-win_amd64.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.1.15-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fond-0.1.15-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 79ec202cf20f546908a77ece57bb9890eaabe6ec7e422537ee3d0dc785200082
MD5 eb6cb563141d7556750b5a69a128b2e9
BLAKE2b-256 fe8472c2a4f3ee9a9ba5155afd5dfb0dac9faeab79ec9bdf00756c5f2d069edf

See more details on using hashes here.

Provenance

The following attestation bundles were made for fond-0.1.15-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.1.15-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for fond-0.1.15-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e5a18ce811bfb35d7b52579aee208c326e4bd861fce61f378eb2c330bf789296
MD5 ae11be31cc09444ad64ed4b80f613251
BLAKE2b-256 0e43d789c130ae8ab5557c636dc4d8b0dcf4466d18fd6571f8add9ff59ccd4b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for fond-0.1.15-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.1.15-cp313-cp313-macosx_15_0_arm64.whl.

File metadata

  • Download URL: fond-0.1.15-cp313-cp313-macosx_15_0_arm64.whl
  • Upload date:
  • Size: 656.4 kB
  • Tags: CPython 3.13, macOS 15.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for fond-0.1.15-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 4295dcd09a1c5b7feacba9b194d71f17a291511c3ffaaef792af56ead1801df9
MD5 88fec8c95bb2b85e85726682d2fc4d0c
BLAKE2b-256 13132fc5aa922aec5b62ad1ab4536e75d38f4534ccbf99817fef4fd2d91e8b36

See more details on using hashes here.

File details

Details for the file fond-0.1.15-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: fond-0.1.15-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 920.9 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for fond-0.1.15-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3d6feb17ef82039479e8c0897e34a0001bf0abe0f81f4376568829cdf77eb86d
MD5 939c74b24a31c8cce46324f1b555dfd5
BLAKE2b-256 7e097055487f7ed318b7d643fa624edc2026c513f79c9ce548e547f82c8b13ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for fond-0.1.15-cp312-cp312-win_amd64.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.1.15-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fond-0.1.15-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f3d5d292379d0456deca95c1bfdbdaa73fc464fe42a35be7a6e45db0b649c728
MD5 18c632cea35b0c2cc76e1af8c162855e
BLAKE2b-256 0968fb4f9fae9607ea45757a5bb03157123afc7227486a5b0bace18aa25e9193

See more details on using hashes here.

Provenance

The following attestation bundles were made for fond-0.1.15-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.1.15-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for fond-0.1.15-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0b9e933fd91704b3d3f645efb9452ca35ba007dabd5c5dee02e40c48524f8a99
MD5 808b25fff819b6a738d54230d3c7a12c
BLAKE2b-256 d3f54b257d0d592c5f71f1b9923c72e0f29be37d296502b8220546bbfcb811fa

See more details on using hashes here.

Provenance

The following attestation bundles were made for fond-0.1.15-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.1.15-cp312-cp312-macosx_15_0_arm64.whl.

File metadata

  • Download URL: fond-0.1.15-cp312-cp312-macosx_15_0_arm64.whl
  • Upload date:
  • Size: 656.4 kB
  • Tags: CPython 3.12, macOS 15.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for fond-0.1.15-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 616b3170b3d28572d1ff30baeef013ae630360090b08405f2b5e5b701847fdb4
MD5 fdbe6ce558ab696b4e3626ff9a9b5e5d
BLAKE2b-256 95956d164a23e293067bfd588ff43e15f4a054e023a57534013a72065362293b

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.17

3 files

This release

0.1.15 This release

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

0.0.92

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