Skip to main content

Foundation for Cooking, Foundation for Life.

Project description

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)

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.

fond-0.0.81-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (380.1 kB view details)

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

fond-0.0.81-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (381.6 kB view details)

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

fond-0.0.81-cp314-cp314-macosx_15_0_arm64.whl (297.7 kB view details)

Uploaded CPython 3.14macOS 15.0+ ARM64

fond-0.0.81-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (379.9 kB view details)

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

fond-0.0.81-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (381.5 kB view details)

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

fond-0.0.81-cp313-cp313-macosx_15_0_arm64.whl (297.6 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

fond-0.0.81-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (379.9 kB view details)

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

fond-0.0.81-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (381.4 kB view details)

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

fond-0.0.81-cp312-cp312-macosx_15_0_arm64.whl (297.6 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

File details

Details for the file fond-0.0.81-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fond-0.0.81-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dc100f9497a3e562f4d63ded5778462e5c395a22631c374fe291f1214758cfc0
MD5 8ecf32e62241cb42ce16592a0904094d
BLAKE2b-256 d6bc2bb2d47520c4dbe8abd1853e68f2888479e042066abce1c7a1998426dac0

See more details on using hashes here.

Provenance

The following attestation bundles were made for fond-0.0.81-cp314-cp314-manylinux_2_24_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.81-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for fond-0.0.81-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f98d28169c0ba65feca71d8c8f686a5409d5bb7dd564bca1d393e73cff56a02d
MD5 9611c530143a4b943c1cf34403367511
BLAKE2b-256 ae77ccd60394c4f3227cd1beb769f53c17905ce38ae316bf50b2d27a0f9bec22

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for fond-0.0.81-cp314-cp314-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 b533b895e9247ec80c140203015a2eee5a07d13420f9e64c7fb5459d0972e392
MD5 b4f5c773fbe170d3b1366504fb0a2e83
BLAKE2b-256 c71bafd8232a7dc721aedd3714e9f03cad60a0656b83b81e1c72e3cb216dbd8b

See more details on using hashes here.

Provenance

The following attestation bundles were made for fond-0.0.81-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.81-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fond-0.0.81-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 08260428e90375eb932fdf187ffc2d89899088c47b323f2b158a75d55f5eeccb
MD5 d442e4388998985019c4d6157ae8e6a2
BLAKE2b-256 4206aafd1c8141aaa2f91fadd14da5f86dd836e55d207287d3cef711640156ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for fond-0.0.81-cp313-cp313-manylinux_2_24_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.81-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for fond-0.0.81-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 069553d8412c65e2046e6a17535bd43ea374961ffdc8f49a3ff9b6954f2029f1
MD5 bc509dcafb931d540f039973e5671365
BLAKE2b-256 04e7e2f624cc55d622d90138cc4c185f43c6499ac02831ce73c235ced4d9c8d0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for fond-0.0.81-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 ee8d2b1fa57dd44b19bcb1966ca1ddc785b0303a81e73bfc18aeac55b474aaa0
MD5 ca4253cc949c13be73de9f31501bf698
BLAKE2b-256 57952752e66d0c42cf72aa47ba61bc67a2a7e6f7378c557fab062cc2719adbca

See more details on using hashes here.

Provenance

The following attestation bundles were made for fond-0.0.81-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.81-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fond-0.0.81-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8a9530cebc56405c15c2a3a505b7a2082ebcc750025b465acafcd5980ca2176c
MD5 1c6a55976a0b0a43416600a6987547da
BLAKE2b-256 3aac0e72ac278cfc4da7146319484cfb55f29cdb1830718d9224a9f15a26e854

See more details on using hashes here.

Provenance

The following attestation bundles were made for fond-0.0.81-cp312-cp312-manylinux_2_24_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.81-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for fond-0.0.81-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e44ce8684aba0c7374d7ca051a43e9e6ddd36ae3886f39532287cff553b162f8
MD5 2130821df9a9e68bdaddaeedc763721e
BLAKE2b-256 ffb5a36431d37a32da35fce654814396d8531864daa2eb691ee1627261325487

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for fond-0.0.81-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 0e9563f074eae70e8e19677c17dbf2521eda8e634ce09e3d21365102d51a94a2
MD5 6e5aaa498fb39d2a95485e11f01d3517
BLAKE2b-256 58ecd1ad115b95e37de829a75d76db9e437759c4ec00872a50d6c0bb4dceea1d

See more details on using hashes here.

Provenance

The following attestation bundles were made for fond-0.0.81-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.

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