EntryLib pages
How EntryLib shows the claimsets it publishes: the
page of a paper, as entrylib.org draws it. The portal (https://github.com/entrylib/portal) draws its pages with this
package, and claimset preview draws the same page on the author's machine before a claimset is submitted, so that
what the author sees is what will be published.
What it draws
- The paper view: the claims in reading order under the paper's sections, each with its evidence, proof or figures, the terms it uses and the assumptions it rests on.
- The record: every object of the claimset by kind (claims, evidence, definitions, assumptions, limitations, artefacts, references), to check what the paper rests on.
- The panel and the contents: the Support score and its parts when they are given (the scores are computed by EntryLib's rubric, not here), the claims by kind, conflicts of interest, and the sections of the page.
The format, its validation and the plain-text reading view for models belong to the claimset package, which
depends on this one; this package is EntryLib's presentation of it, with the site's stylesheet and script, and imports
no claimset code. What a page needs of the format (how values are written, the verifiability the platform computes,
subfield names) is given by the caller as one object, claimset.pages.FORMAT
(format.py describes it).
Install
pip install entrylib-pages
It needs Python 3.10 or later and nothing else; pip install claimset installs it too. In Python, import it as
entrylib_pages.
Use
Before submitting a claimset, see it as EntryLib will show it, with the claimset command-line tool:
claimset preview paper.claimset.json # the paper view and the record, written beside the file, and opened
claimset preview paper.zip --no-open # a submission package: unpacked beside it, so its figures show
From Python:
import json
import entrylib_pages
from claimset.pages import FORMAT # what a page needs of the claimset format
doc = json.load(open("paper.claimset.json"))
html = entrylib_pages.preview_html(doc, fmt=FORMAT) # the paper view, as one self-contained page
html = entrylib_pages.preview_html(doc, fmt=FORMAT, view="record") # the record
entrylib_pages.preview_html(doc, fmt=None, scores=None, view="paper", note="", paper_href=…, record_href=…): the page, with the site's stylesheets and script inlined. Figures the claimset names by relative path (files/figures/a.png) are shown from beside the page, so write it in the folder that holds the claimset and its files; figures already published on EntryLib are shown from there.scores: the rubric's, if the caller has them.entrylib_pages.use(fmt): the format every page of the process is drawn with (the portal calls it once);fmtgiven topreview_htmloverrides it.entrylib_pages.stylesheet(): the page view's stylesheet (claimset.css).entrylib_pages.__version__: the version of the pages.
Changing the pages
A change here changes entrylib.org's pages: it is designed in the portal's design document first
(https://github.com/entrylib/portal/blob/main/docs/design-v1.md, §7) and checked with the portal's tests
(AGENTS.md). A release raises version in pyproject.toml
and __version__ in src/entrylib_pages/__init__.py; the build workflow drafts it on GitHub, and publishing the
draft uploads it to PyPI (release).
Licence
Apache 2.0.
Metadata
Release files for entrylib-pages 0.2.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 |
|---|---|---|---|---|
| entrylib_pages-0.2.0.tar.gz | 103.3 kB | With provenance | Details for entrylib_pages-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| entrylib_pages-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for entrylib_pages-0.2.0-py3-none-any.whl |
Total release size: 209.8 kB
Release files / entrylib_pages-0.2.0.tar.gz
| Download URL | entrylib_pages-0.2.0.tar.gz |
|---|---|
| Size | 103.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
28976da0caab8a95d794978311322d6cb49ae568b9b4f2cad154905cc577f601
|
|
BLAKE2b-256 checksum How to use checksums |
663ca61e4db9f88f90ea48e4f46a7870c0eff980ef1d5119de3d92f59c8cda91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logRelease files / entrylib_pages-0.2.0-py3-none-any.whl
| Download URL | entrylib_pages-0.2.0-py3-none-any.whl |
|---|---|
| Size | 106.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8305460cf7f1892f5e2016b2138cdb3d4fcb7a93fcd59fd3b7c61b15806c74b8
|
|
BLAKE2b-256 checksum How to use checksums |
98c3d2306ba1516a89fc1b0a4e6f8daa04719570106cde85615e3fb25b343802
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logSecurity for entrylib-pages 0.2.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.
Attestation for entrylib_pages-0.2.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 Nov 30, 2026.
Transparency logA 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.