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

Uploaded CPython 3.14Windows x86-64

fond-0.0.98-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.98-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.98-cp314-cp314-macosx_15_0_arm64.whl (557.5 kB view details)

Uploaded CPython 3.14macOS 15.0+ ARM64

fond-0.0.98-cp313-cp313-win_amd64.whl (912.6 kB view details)

Uploaded CPython 3.13Windows x86-64

fond-0.0.98-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.98-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.98-cp313-cp313-macosx_15_0_arm64.whl (557.3 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

fond-0.0.98-cp312-cp312-win_amd64.whl (752.7 kB view details)

Uploaded CPython 3.12Windows x86-64

fond-0.0.98-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.98-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.98-cp312-cp312-macosx_15_0_arm64.whl (557.2 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: fond-0.0.98-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.0.98-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 3543c474a68c38e9c7cfc0e20364cf1f16f46a97dd5bbe53d1f70465ad8d4254
MD5 91046cd69ea43b0d748ddbea10731c89
BLAKE2b-256 8ea1e947030b4901be444e4867bef268c635e4d540c618b026822a417ce3dfa1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for fond-0.0.98-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7c4a34ed5becc14835e7a68037af2ab1f6c7227489e94799dc3e5380ae926d1b
MD5 e12f901a9d0ff644ff38b998f5b0d47b
BLAKE2b-256 252878dc870a91126bafdb5e7332c1100a10da3758d4e679bf8a7a264b35949a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for fond-0.0.98-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4a1e113b183a943ccf68e78d472caa32d303f5310eb7ec011f14f2633a1236e5
MD5 56f20a371ab06044697dfbd1fa41d71e
BLAKE2b-256 b60176881b0650e25b7efcf807e0e324cca18b91413e9ade759ba165495b2549

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for fond-0.0.98-cp314-cp314-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 48ce5c281690aabc6cb7db24f01814d4dff8d2d60553b7978d66b6493abc036e
MD5 5f9435ea53da5a2d529b01be65eac215
BLAKE2b-256 710d289968abba376769088b12a3545e6c386a9f0d3c3bfafa85f37d402a64c1

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: fond-0.0.98-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 912.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.0.98-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2c0f4e9591e64a217988a24864c1885cdb68662727b5b0f80c5c1fb15ddabba0
MD5 81cdb9937c0641b69005efe46daea6e8
BLAKE2b-256 21b65412138b97f7d54f764770475291b69b284023aad641499b812b90e764f8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for fond-0.0.98-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d961b86dd4df24d3f72af899a07c2489683ead2b6bd59a29cab444be811bae3c
MD5 23d097aec91d2df6c5bdf8642f65795d
BLAKE2b-256 632a657dec268f0600b36a3727979be6893e1a1714d7e53842d17765195c4c9d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for fond-0.0.98-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 84ff405f4bbdf1d9ff1326e4905437a4773a99f346ebf547a8c338c2edda8b0c
MD5 17ae15eb5c11e8cced3df92a7e43131d
BLAKE2b-256 05d5ebebdd583f705cd4be41d278b9a06f863c093484d83f336a9653a591eb60

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for fond-0.0.98-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 42455b112296d54638ede7727b6c1a32b3f917cb0709e9517b62b59d6b724fa9
MD5 0246177bcd3d4b29f5cf0d17fd0fcaa6
BLAKE2b-256 4fc992013f06b91e435c7ceb0450d99daf1a9b824bb9bcc9c7ef988ab7b70c86

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: fond-0.0.98-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 752.7 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.0.98-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f7357705e0742a5bbe503340d158f6d20b69469a5af132709510b15aae1d6b77
MD5 e3510c977faf223f20dc900197ac5398
BLAKE2b-256 0b3cd3bea52493efd0a9666572e23e065550cb8c8d88fec1721d8f27e213911a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for fond-0.0.98-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cd16582047fb23ce17846e1418e222759720dea074030629cba6a4916bef9de6
MD5 48add220c0c768f481ef8a23e50c79c4
BLAKE2b-256 6fff2b3d2f23f149a00a97cfc4ad082f0cc719aa0c79a95364bde272d624dd71

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for fond-0.0.98-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 aac8f820f0da783eb45fb1a8f95835790afce25575da935fcd90551e4ab18712
MD5 09b32d617098bbfc654d30665cb26238
BLAKE2b-256 99b727151cc66d6769dc3ce270c2870bb0dc45b5626194524fea0c42e9c46574

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for fond-0.0.98-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 2cc0af4652e3a56f883e2a999428be832de563f26b4003124439983b33962f7f
MD5 314ccb4da36bc51fc44f9e87dc6cefa4
BLAKE2b-256 dff80f4e81f6e7afe094c40a126fea4c801704de116d4db3e55ae673e251221b

See more details on using hashes here.

Provenance

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

This release

0.0.98 This release

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