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.2.tar.gz (5.6 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.2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: engrammatic-0.1.2.tar.gz
  • Upload date:
  • Size: 5.6 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.2.tar.gz
Algorithm Hash digest
SHA256 e95014799224a75cfb731e66e084a12ae86af7724f82738baf3a5c093d738b4a
MD5 7fd6623ec6472338da0b21dc0c2f0cc6
BLAKE2b-256 135840072ce904c91015a46adf5cbeccbcb55b329755bb02210fcfa94e427742

See more details on using hashes here.

File details

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

File metadata

  • Download URL: engrammatic-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0793b3aa75a303895c0cd5426b4c98bb26c259b44b1e91924e17341db011b64d
MD5 552242102ced57ed063f91c971d9086a
BLAKE2b-256 6af6f8b1279cbb4d3696c8d5a71821308496a2aec8c43fc7f387d0c4b9fe8694

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