Skip to main content

tnl-intelligence

Typed synchronous and asynchronous Python clients for The Neural Ledger event and evidence intelligence API.

import os
from tnl_intelligence import TnlClient

with TnlClient(os.environ["TNL_API_KEY"]) as client:
    for story in client.iterate_news(published_since="2026-07-01T00:00:00Z"):
        print(story.title, story.impacted_assets)
import os
from tnl_intelligence import AsyncTnlClient

async with AsyncTnlClient(os.environ["TNL_API_KEY"]) as client:
    page = await client.search_news("semiconductor export restrictions")

TNL supplies event, claim, source, contradiction, entity, and impact-path intelligence. The /v1/markets response is contextual display data, not an execution-grade quote feed.

Webhook Verification

Verify the exact raw request bytes before parsing JSON:

from tnl_intelligence import verify_webhook

verified = verify_webhook(raw_body, headers, {key_id: webhook_secret})

Persist delivery IDs for the replay window before performing consumer side effects. The helper accepts a mutable delivery-ID set for local tests; production consumers should use an atomic durable claim.

Point-in-Time Quant Research

Install optional engines without adding them to the base SDK:

python -m pip install 'tnl-intelligence[quant,notebooks]'
from tnl_intelligence.quant.lake import RevisionLake
from tnl_intelligence.quant.sample import sample_observations
from tnl_intelligence.quant.temporal import parse_utc

lake = RevisionLake("./data/tnl")
lake.ingest(sample_observations())
snapshot = lake.snapshot(as_of=parse_utc("2026-06-08T00:00:00Z"))

The toolkit preserves immutable revisions, UTC availability boundaries, deterministic manifests, leakage findings, optional Parquet/DuckDB/dataframe adapters, event studies with user-supplied outcomes, and executable synthetic notebooks. It does not execute or recommend trades. See the quantitative research toolkit guide.

Download files

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

Source Distribution

tnl_intelligence-0.1.0.tar.gz (39.2 kB view details)

Uploaded Source

Built Distribution

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

tnl_intelligence-0.1.0-py3-none-any.whl (47.0 kB view details)

Uploaded Python 3

File details

Details for the file tnl_intelligence-0.1.0.tar.gz.

File metadata

  • Download URL: tnl_intelligence-0.1.0.tar.gz
  • Upload date:
  • Size: 39.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for tnl_intelligence-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2f37001ec9dca59a409f2d0a78f18276f0027b74fe6630c7847eae904ba0ed4b
MD5 5912587c601fc72d82ad913135ba8b5c
BLAKE2b-256 f0c5ce05589434b48cf3e1e4316e4f1e232857f5ac7d183ee4f806f46567f395

See more details on using hashes here.

Provenance

The following attestation bundles were made for tnl_intelligence-0.1.0.tar.gz:

Publisher: release-python.yml on bekirdag/tnl-intelligence

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

File details

Details for the file tnl_intelligence-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tnl_intelligence-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78c702026cc145936e8daa7b81e089b44d3eb5792ff4697890d6ee67c916e561
MD5 6004ab80de126cf93ba00c77a6d00e7b
BLAKE2b-256 0ff0a3babf46cb4330ae08bcb52308eb0bca823f33e3d417ad1c6169d95314d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for tnl_intelligence-0.1.0-py3-none-any.whl:

Publisher: release-python.yml on bekirdag/tnl-intelligence

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

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