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.

Metadata

Release files for tnl-intelligence 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 tnl-intelligence 0.1.0
File Size Uploaded Provenance Actions
tnl_intelligence-0.1.0.tar.gz 39.2 kB With provenance Details for tnl_intelligence-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 86.2 kB

Release files / tnl_intelligence-0.1.0.tar.gz

Download URL tnl_intelligence-0.1.0.tar.gz
Size 39.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2f37001ec9dca59a409f2d0a78f18276f0027b74fe6630c7847eae904ba0ed4b
BLAKE2b-256 checksum
How to use checksums
f0c5ce05589434b48cf3e1e4316e4f1e232857f5ac7d183ee4f806f46567f395
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 20, 2026.

Transparency log

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

Download URL tnl_intelligence-0.1.0-py3-none-any.whl
Size 47.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
78c702026cc145936e8daa7b81e089b44d3eb5792ff4697890d6ee67c916e561
BLAKE2b-256 checksum
How to use checksums
0ff0a3babf46cb4330ae08bcb52308eb0bca823f33e3d417ad1c6169d95314d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 20, 2026.

Transparency log

Security for tnl-intelligence 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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tnl_intelligence-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 20, 2026.

Transparency log

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 Full 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