Skip to main content

Python bindings for the foyer Rust hybrid cache library.

Project description

foyer-py

Python bindings for the Rust foyer hybrid cache library.

foyer-py is published on PyPI and imported as foyer.

Current status

  • Sync in-memory cache bindings are available.
  • Keys: bytes, str, int.
  • Values: bytes.

Quick start

import foyer

cache = foyer.MemoryCache(16)
cache.insert("hello", b"world")

assert cache.get("hello") == b"world"
assert cache.contains("hello")
assert cache.entries == 1

Wheel coverage

GitHub Actions builds wheels for:

  • Linux: x86_64, aarch64, ppc64le, s390x (manylinux)
  • macOS: universal2 (Intel + Apple Silicon)
  • Windows: x86_64

Releases are published from tags matching v* (for example v0.0.3).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

foyer_py-0.0.3.tar.gz (13.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

foyer_py-0.0.3-cp312-abi3-win_amd64.whl (242.1 kB view details)

Uploaded CPython 3.12+Windows x86-64

foyer_py-0.0.3-cp312-abi3-manylinux_2_28_x86_64.whl (413.5 kB view details)

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

foyer_py-0.0.3-cp312-abi3-manylinux_2_28_aarch64.whl (391.1 kB view details)

Uploaded CPython 3.12+manylinux: glibc 2.28+ ARM64

foyer_py-0.0.3-cp312-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (690.6 kB view details)

Uploaded CPython 3.12+macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

File details

Details for the file foyer_py-0.0.3.tar.gz.

File metadata

  • Download URL: foyer_py-0.0.3.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for foyer_py-0.0.3.tar.gz
Algorithm Hash digest
SHA256 6245d2deed6b3ec8e6bd443a93dcfb82dd07499a9467a05013ac9db2d078dfe3
MD5 c0af917ef12c8aa0b93e2986387888b0
BLAKE2b-256 5d4172dc4037e96f607ca1c4feb016f4108ff36f86124f3228378bfe0218c639

See more details on using hashes here.

Provenance

The following attestation bundles were made for foyer_py-0.0.3.tar.gz:

Publisher: release.yml on icestreamlabs/foyer-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file foyer_py-0.0.3-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: foyer_py-0.0.3-cp312-abi3-win_amd64.whl
  • Upload date:
  • Size: 242.1 kB
  • Tags: CPython 3.12+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for foyer_py-0.0.3-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 5b473713d99d95e02c61e10653d27294a665074bbcd14211b562d02f1ed14c8d
MD5 992536e614bff07fa1f5ae047eafd39c
BLAKE2b-256 0eec39d1b12142b8dfa490c81c00592c8e08a44ed3596be2b5acf4281d1cb2e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for foyer_py-0.0.3-cp312-abi3-win_amd64.whl:

Publisher: release.yml on icestreamlabs/foyer-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file foyer_py-0.0.3-cp312-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for foyer_py-0.0.3-cp312-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 81e41fa68a2186b70fc098d86918e3d3ff5bdc54c2e67d1f18489f1fef900737
MD5 9d0d48562b2f85c033f72dbf9b65f6b0
BLAKE2b-256 bec2c09e6acd84461d379851b3c1f932f2143acf71fdbca50fda3f05affc70da

See more details on using hashes here.

Provenance

The following attestation bundles were made for foyer_py-0.0.3-cp312-abi3-manylinux_2_28_x86_64.whl:

Publisher: release.yml on icestreamlabs/foyer-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file foyer_py-0.0.3-cp312-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for foyer_py-0.0.3-cp312-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3d05e60c84c05a62868df281419ff4b981baf2199ef27199e511b1df798cf1c3
MD5 1f4d54166378f61d703a42b7df508e5d
BLAKE2b-256 a09e081630039f0835883a3badf8c9f9657fb3a6951d31245c6baea97db11ce6

See more details on using hashes here.

Provenance

The following attestation bundles were made for foyer_py-0.0.3-cp312-abi3-manylinux_2_28_aarch64.whl:

Publisher: release.yml on icestreamlabs/foyer-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file foyer_py-0.0.3-cp312-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for foyer_py-0.0.3-cp312-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 aaf5a22f1ae1c571652b6b420ea245cef12eb39cff2dc0d80755f9eef5a1b5f6
MD5 05142d91a5839af77f6771b62e79dc24
BLAKE2b-256 156e3b8420e0c5c5e0cff4004f8c7b5ada582249af0b94d918df8ebed6ef9341

See more details on using hashes here.

Provenance

The following attestation bundles were made for foyer_py-0.0.3-cp312-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl:

Publisher: release.yml on icestreamlabs/foyer-py

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