Foundation for Cooking, Foundation for Life.
Project description
Fond
Foundation for Cooking, Foundation for Life.
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::formattemplate 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_DEFINEmacro (powered byFOND_FOR_EACH) - Packer, Unpacker, Python packer/unpacker variants
Lua (fond/lua/)
- Lua table serialization with
LUA_DEFINEmacro (powered byFOND_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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fond-0.0.15-cp314-cp314-macosx_15_0_arm64.whl.
File metadata
- Download URL: fond-0.0.15-cp314-cp314-macosx_15_0_arm64.whl
- Upload date:
- Size: 213.7 kB
- Tags: CPython 3.14, macOS 15.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8557d8f45e276326c0373651936bc99f411fcaac326845f5f8d4445b9394500c
|
|
| MD5 |
31ae521f44e5552301db96e934951ecb
|
|
| BLAKE2b-256 |
0800f5340f786421cab3cd8408e7530f35d2df94b391aea0e89898faf106b978
|
Provenance
The following attestation bundles were made for fond-0.0.15-cp314-cp314-macosx_15_0_arm64.whl:
Publisher:
build-wheels.yml on sicksubroutine/bewoo-includes
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fond-0.0.15-cp314-cp314-macosx_15_0_arm64.whl -
Subject digest:
8557d8f45e276326c0373651936bc99f411fcaac326845f5f8d4445b9394500c - Sigstore transparency entry: 1213775448
- Sigstore integration time:
-
Permalink:
sicksubroutine/bewoo-includes@efac734878f79f585de0126855763cb9eb37617c -
Branch / Tag:
refs/tags/v0.0.15 - Owner: https://github.com/sicksubroutine
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-wheels.yml@efac734878f79f585de0126855763cb9eb37617c -
Trigger Event:
push
-
Statement type:
File details
Details for the file fond-0.0.15-cp312-cp312-manylinux_2_35_x86_64.whl.
File metadata
- Download URL: fond-0.0.15-cp312-cp312-manylinux_2_35_x86_64.whl
- Upload date:
- Size: 227.7 kB
- Tags: CPython 3.12, manylinux: glibc 2.35+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73d492830d7df3e04ec61b538d4535d35cd9667c94dc81594f048bd6e4c24e11
|
|
| MD5 |
41396bb9a584d21c627fc536df7929d3
|
|
| BLAKE2b-256 |
8912dffa2dc12895dc8b4ac17bba2a8596512df5b56d36d8bb75fc534c818f8e
|
Provenance
The following attestation bundles were made for fond-0.0.15-cp312-cp312-manylinux_2_35_x86_64.whl:
Publisher:
build-wheels.yml on sicksubroutine/bewoo-includes
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fond-0.0.15-cp312-cp312-manylinux_2_35_x86_64.whl -
Subject digest:
73d492830d7df3e04ec61b538d4535d35cd9667c94dc81594f048bd6e4c24e11 - Sigstore transparency entry: 1213775510
- Sigstore integration time:
-
Permalink:
sicksubroutine/bewoo-includes@efac734878f79f585de0126855763cb9eb37617c -
Branch / Tag:
refs/tags/v0.0.15 - Owner: https://github.com/sicksubroutine
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-wheels.yml@efac734878f79f585de0126855763cb9eb37617c -
Trigger Event:
push
-
Statement type: