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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f37001ec9dca59a409f2d0a78f18276f0027b74fe6630c7847eae904ba0ed4b
|
|
| MD5 |
5912587c601fc72d82ad913135ba8b5c
|
|
| BLAKE2b-256 |
f0c5ce05589434b48cf3e1e4316e4f1e232857f5ac7d183ee4f806f46567f395
|
Provenance
The following attestation bundles were made for tnl_intelligence-0.1.0.tar.gz:
Publisher:
release-python.yml on bekirdag/tnl-intelligence
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tnl_intelligence-0.1.0.tar.gz -
Subject digest:
2f37001ec9dca59a409f2d0a78f18276f0027b74fe6630c7847eae904ba0ed4b - Sigstore transparency entry: 2205168333
- Sigstore integration time:
-
Permalink:
bekirdag/tnl-intelligence@46530b087a1a957cc634ffb20caafb628b2b9e47 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/bekirdag
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@46530b087a1a957cc634ffb20caafb628b2b9e47 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file tnl_intelligence-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tnl_intelligence-0.1.0-py3-none-any.whl
- Upload date:
- Size: 47.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78c702026cc145936e8daa7b81e089b44d3eb5792ff4697890d6ee67c916e561
|
|
| MD5 |
6004ab80de126cf93ba00c77a6d00e7b
|
|
| BLAKE2b-256 |
0ff0a3babf46cb4330ae08bcb52308eb0bca823f33e3d417ad1c6169d95314d4
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tnl_intelligence-0.1.0-py3-none-any.whl -
Subject digest:
78c702026cc145936e8daa7b81e089b44d3eb5792ff4697890d6ee67c916e561 - Sigstore transparency entry: 2205168344
- Sigstore integration time:
-
Permalink:
bekirdag/tnl-intelligence@46530b087a1a957cc634ffb20caafb628b2b9e47 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/bekirdag
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@46530b087a1a957cc634ffb20caafb628b2b9e47 -
Trigger Event:
workflow_dispatch
-
Statement type: