Skip to main content

dejahit (Python)

Stop paying for the same LLM answer twice. Wrap the call you already make; repeated questions come back from cache in milliseconds, and every reuse is verified before it is served.

pip install dejahit
import os
from dejahit import Cache

cache = Cache(api_key=os.environ["DEJAHIT_KEY"])

answer = cache.ask(
    question,
    lambda: call_my_llm(question),   # runs only on a miss
    scope=["support-bot", "v3"],     # who may reuse this answer (required)
    ttl="24h",
)
  • Your LLM call, key and model stay in your code.
  • Never breaks your app: short lookup budget, circuit breaker, your errors pass through unchanged.
  • AsyncCache for asyncio, ask_stream for streaming, shadow mode to measure savings before serving from cache.
  • Requires an API key. In tests use mode="off" (always calls your function, caches nothing).

Get an API key at dejahit.com · Docs: dejahit.com/docs.html

Metadata

Release files for dejahit 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dejahit 0.1.0
File Size Uploaded Provenance Actions
dejahit-0.1.0.tar.gz 5.9 kB Without provenance Details for dejahit-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dejahit 0.1.0
File Interpreter ABI Platform Actions
dejahit-0.1.0-py3-none-any.whl Python 3 none any Details for dejahit-0.1.0-py3-none-any.whl

Total release size: 12.4 kB

Release files / dejahit-0.1.0.tar.gz

Download URL dejahit-0.1.0.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
bd3e919543d09f1b0f04ee6adf911afcb05e051d9525f79a747d222fb54cc3a8
BLAKE2b-256 checksum
How to use checksums
a1f57a97377a0c7758609148d95cdc851fb8fd2376c1fa581f3808b9ff9ff463
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / dejahit-0.1.0-py3-none-any.whl

Download URL dejahit-0.1.0-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a13290194e725ffddeea9957ff20381a20793438c2fb232fdae46c665cef4594
BLAKE2b-256 checksum
How to use checksums
e20ac10d19c9859498e758549e724aa7010aa1c29e0299ec9393bc4175d984d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for dejahit 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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