Skip to main content

Python client for Engrammatic — ingest-time anomaly, novelty and fraud detection with binary hyperdimensional computing.

Project description

Engrammatic Python client

Ingest-time anomaly, novelty and fraud detection with binary hyperdimensional computing — encode each event once, compare with XOR + popcount. This package is the official Python client for the Engrammatic service. It has zero dependencies (stdlib only).

Install

pip install engrammatic

Quickstart

Sign in with Google at app.engrammatic.ai — new accounts get $5 of starting credit — and copy your API key from the dashboard.

from engrammatic import Client

c = Client(api_key="ek_...")

# score one event (and learn it)
r = c.detect({"path": "/wp-admin.php", "status": 404, "ua": "python-requests"})
print(r)   # {"score": ..., "best_similarity": ..., "is_anomaly": ..., "balance_usd": ...}

# batch log ingestion
c.ingest([{"path": "/api/v1/orders", "status": 200, "ms": 41},
          {"path": "/api/v1/orders", "status": 503, "ms": 9040}])

# similarity search over what the memory has seen
hits = c.query({"path": "/api/v1/orders", "status": 503}, k=5)

# store without scoring
c.write({"path": "/healthz", "status": 200})

# current plans/rates (no key needed)
print(Client().pricing())

Out-of-credit responses raise EngrammaticError with .out_of_credit == True (HTTP 402) — top up in the console.

What it's for (and honestly, what it's not)

Engrammatic sits alongside your log platform (Hydrolix / Splunk / Datadog), scoring events at ingest time for combinatorial novelty — field combinations your stack hasn't seen — at $0.30–$1.00 per million events. If your problem is a 5xx spike, use a threshold; a numeric outlier, a z-score; known signatures, a WAF. Engrammatic earns its keep on the anomalies those baselines can't express.

Notes

  • This release is the remote client only; the embedded/local engine is not included (Client(local=True) raises).
  • AI agents: the service publishes a manifest at https://app.engrammatic.ai/.well-known/agent.json and supports programmatic top-up — see the console.
  • Docs & contact: engrammatic.ai · hello@engrammatic.ai

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

engrammatic-0.1.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

engrammatic-0.1.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file engrammatic-0.1.1.tar.gz.

File metadata

  • Download URL: engrammatic-0.1.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for engrammatic-0.1.1.tar.gz
Algorithm Hash digest
SHA256 95597b1eaa54bdf0007f196cb583d14ea6fa38b351ec07b1b2949166506341fd
MD5 4c63cdf8a925399ab25a0d7b6611b304
BLAKE2b-256 ddb9b8add21961efb67ce9e0f087791dac00e99b9d8433f902717bf097df5ebb

See more details on using hashes here.

File details

Details for the file engrammatic-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: engrammatic-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for engrammatic-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ff9388e4737446220d0282a6bf90c409bb035ec00cd59e95f57c5cdd3dee0551
MD5 41b84008067c0a2281402a946e8043a1
BLAKE2b-256 107baada028c8ac1d8863444dbbddecfd545bdd8fe2ec3c0df8afb9ec7a2e29e

See more details on using hashes here.

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