dalea
dalea is a Python client for the Dalea wiki engine. It
turns wiki pages into typed Python objects — pages, sections, backlinks, and
revision diffs — and gives you a small write surface for scripted edits. It is
useful for agents that read structured wikis, for CI jobs that reconcile links,
and for analysts who want to pull a wiki into a notebook.
Features
Page,Section,Revision, andBacklinkmodels withpydantic.- Read pages by slug or id; stream the page tree with a single iterator.
- Render page bodies to Markdown, HTML, or plain text via pluggable renderers.
- Compute and apply revision diffs; propose an edit as a pending revision.
- Backlink graph export to
networkxfor downstream analysis. - Built-in retry and
requests.Sessionreuse; thread-safe client instance.
Installation
pip install dalea
# extras for rendering and graph export:
pip install "dalea[render,graph]"
Quick start
from dalea import DaleaClient
client = DaleaClient(base_url="https://dalea.wiki", token="ptn_...")
page = client.pages.get("python/asyncio")
print(page.title, len(page.sections))
for ref in client.backlinks("python/asyncio"):
print(ref.source_slug, ref.context)
diff = client.revisions.diff(page.latest, page.revisions[-2])
print(diff.added_lines)
API
DaleaClient.pages—.get(slug),.list(prefix=),.stream().DaleaClient.revisions—.list(slug),.diff(a, b),.propose(slug, body).DaleaClient.backlinks(slug)— returnBacklinkobjects with surrounding context spans.dalea.render(page, to="markdown")— render aPageto the target format.
Configuration
DaleaClient accepts base_url, token, and timeout. The token can also be
read from DALEA_TOKEN, and the base URL from DALEA_BASE_URL.
License
MIT
Metadata
Release files for dalea 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dalea-0.1.0.tar.gz | 5.2 kB | Without provenance | Details for dalea-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dalea-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for dalea-0.1.0-py3-none-any.whl |
Total release size: 10.8 kB
Release files / dalea-0.1.0.tar.gz
| Download URL | dalea-0.1.0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb745b7f722213a58afdc02c633ae878b4991bb83a0a7b9f875ac8073ddd8721
|
|
BLAKE2b-256 checksum How to use checksums |
3db0dd2c88d628e2421f092236796e10337089a35b065d2e590c2ae4cc43cab2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / dalea-0.1.0-py3-none-any.whl
| Download URL | dalea-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5838a74b586b04e234538b1fe0e95fef63bb58e0b4ffd0f5d12c2adea411300e
|
|
BLAKE2b-256 checksum How to use checksums |
e7f12bd71f8de0a5b3d17e99f0f32787a73b66c641cc5145f0dca527636a8fe1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Security for dalea 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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.