Skip to main content

urban-json-html

Plugin urban-json : HTML vers JSON dans les templates, via loadhtml(chemin_ou_url) (port de ServiceHtml, .NET). Aucune dépendance : html.parser de la bibliothèque standard.

pip install urban-json-html

Forme produite (celle du .NET, HtmlAgilityPack) :

{ "#id": "#document", "content": { "#id": "p", "class": "x", "content": "#text: Bonjour" } }
  • élément → {"#id": balise, attributs…, "content": enfant | [enfants]} ;
  • texte → "#text: …" (blancs seuls ignorés, entités conservées) ;
  • commentaire et <!DOCTYPE> → "#comment: …".

loadhtml accepte un fichier (chemin ou URI file://) ou une URL http(s):// (délai de 30 s). Attention aux URL issues de données non fiables (SSRF).

Metadata

Release files for urban-json-html 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 urban-json-html 0.1.0
File Size Uploaded Provenance
urban_json_html-0.1.0.tar.gz 6.5 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for urban-json-html 0.1.0
File Interpreter ABI Platform
urban_json_html-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.3 kB

Release files / urban_json_html-0.1.0.tar.gz

Download URL urban_json_html-0.1.0.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2b67163d017451a71478d1af1bb1b40275cddee152aee6e99ca485b74e1f7550
BLAKE2b-256 checksum
How to use checksums
bf4ee4c528bcede63de8ff9cce979f9dc26871166f036a1a42ec0538c7ba1754
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 Oct 22, 2026.

Transparency log

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

Download URL urban_json_html-0.1.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e8a633254c7d0b57f6b59c647d02f9a4b08f0ddde59edbb15094d16f6c575896
BLAKE2b-256 checksum
How to use checksums
9f5eccad044a6924ab5ff2ac02e3ce427276b80e2336a81d25434c8e5325e71d
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 Oct 22, 2026.

Transparency log

Security for urban-json-html 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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for urban_json_html-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 Oct 22, 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.

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