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

Uploaded CPython 3.14Windows x86-64

fond-0.1.4-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.7 MB view details)

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

fond-0.1.4-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.1.4-cp314-cp314-macosx_15_0_arm64.whl (585.2 kB view details)

Uploaded CPython 3.14macOS 15.0+ ARM64

fond-0.1.4-cp313-cp313-win_amd64.whl (940.6 kB view details)

Uploaded CPython 3.13Windows x86-64

fond-0.1.4-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.7 MB view details)

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

fond-0.1.4-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.1.4-cp313-cp313-macosx_15_0_arm64.whl (585.0 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

fond-0.1.4-cp312-cp312-win_amd64.whl (780.6 kB view details)

Uploaded CPython 3.12Windows x86-64

fond-0.1.4-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.7 MB view details)

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

fond-0.1.4-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.1.4-cp312-cp312-macosx_15_0_arm64.whl (585.0 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: fond-0.1.4-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 1.1 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.4-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 284c73cc343c97b638ba5c06a2b117f983a7e9de9ead846dea2dc3835afb7e90
MD5 55d235bb208cdb743f44b422cd8804d0
BLAKE2b-256 d986fbef43cc589c9a9c4bb7130534bb97f7838a07e6f66fb2800934e42d86e1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for fond-0.1.4-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dd3a01fb18da601bdd70a4276de465ca0ed0e8488d4a48a69913f5747af60260
MD5 f3778d96fc6fa684c0edab2805fb760d
BLAKE2b-256 3d1efa2f9adb4d771a1e599aba57c8c3716362dd1ae7dc4154bf55bd086cee15

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for fond-0.1.4-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2e724a0672a352368038bde310ce2ccdea2ada445ecceba69584b14adb0819dd
MD5 03126e68e8b904767774b197e6537320
BLAKE2b-256 94ed69bbf24179ed85e025ca000fbd1d2b5a57a8051f2657f3bd1836752097a4

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: fond-0.1.4-cp314-cp314-macosx_15_0_arm64.whl
  • Upload date:
  • Size: 585.2 kB
  • Tags: CPython 3.14, macOS 15.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for fond-0.1.4-cp314-cp314-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 30281236ba26f39cba7211e474f54dc5072dec6719892eb0d51089b431a97a81
MD5 999df47e09cc49eea524ae50e0d55121
BLAKE2b-256 82940cf585ee070a1b60cca26309c5d9e2ae046d0706cda1990985de97495216

See more details on using hashes here.

Provenance

The following attestation bundles were made for fond-0.1.4-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.1.4-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: fond-0.1.4-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 940.6 kB
  • 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.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1cb7b9dd6e83d2edccfe425e16a34ecee1410eb9ff9e8c0f777da758097ed12f
MD5 16bd4e9300d975be38ee235eb2e5d2a0
BLAKE2b-256 a743aa869a604a116ef074a9f3a65e4e8c998a7b04f9384dd7d6af350ca2f134

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for fond-0.1.4-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 878de55ecaed8cd22e6d7f1e7293e7a3643a18851e6743d9f96c25e68b822258
MD5 7a096d16360771df9bd6431b059031c7
BLAKE2b-256 e885776c0d696947ac338f28b9d116222d4fb50f6f13751609d2378bcfff4473

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for fond-0.1.4-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 72bdec561c5733703d52d0d3035e1cf56a2ad997a114ad843690b5d32296b769
MD5 a25925c042623a8720efefea1492a474
BLAKE2b-256 3f710aa5a30c9cbb712e6573cc2f99ecde46944febfd84eb2e87897c9d97a6dd

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: fond-0.1.4-cp313-cp313-macosx_15_0_arm64.whl
  • Upload date:
  • Size: 585.0 kB
  • Tags: CPython 3.13, macOS 15.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for fond-0.1.4-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 7f7548156dd33176901129ee8600eb8bc8c98f81a20100c2691c5002a2c5dd30
MD5 4a768d366d575d1a91d4e3afffe09efc
BLAKE2b-256 59de2bbf95518497d59fbbe572b10713de878d05dd6e16574534c26594004978

See more details on using hashes here.

Provenance

The following attestation bundles were made for fond-0.1.4-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.1.4-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: fond-0.1.4-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 780.6 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.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f3a42b59abe10f00b71edc898b24622b1c0cf086f9ebe8bf4243b0327f5d360f
MD5 0cff265853fd321f086b63ba7636f25c
BLAKE2b-256 629a69db195a937f9fca6ec7f437dbe4b0628e4b0b611d8cb99c089970b41ffb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for fond-0.1.4-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 29a79a5bf4e402273f1ff9898a99ec5df20b67f2e8cace0e9da5779deae516cc
MD5 5770a1c76f64c987c75b2b6470181535
BLAKE2b-256 0a491c54c56d4dc84512c0e2be56139661f51f9693c9f8ca578940f24f1226e3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for fond-0.1.4-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 48f69d0cbd20f8685fc4eed539ccc1d3a4b8d6c5a0a8b23bf8c7fca8a6b02a16
MD5 b9fafa710b5be62d51fac44495f83995
BLAKE2b-256 2738f61896d20e3c63c435c3aadeda28c4a0a687801958624dfddbba83c8e998

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: fond-0.1.4-cp312-cp312-macosx_15_0_arm64.whl
  • Upload date:
  • Size: 585.0 kB
  • Tags: CPython 3.12, macOS 15.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for fond-0.1.4-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 5be1efab784459a96924ffd71d07ae0d32937e59f6d265db1ea077e2a0089dac
MD5 72845fc71a7e6a3bf26302221930a1db
BLAKE2b-256 422de818db38ccd1dc8810a0395407b19da47a24dcda0eb010818ede8de88db8

See more details on using hashes here.

Provenance

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

This release

0.1.4 This release

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