Skip to main content

Sprout

This is a common Python library which contains reusable components, developed at Infrae.

Sprout, while mainly XML related, does not have a functional goal as such. Its goals instead are organizational:

  • Enable code reuse between projects, such as Silva and Infrae’s topicmaps implementation

  • Allow us to write modern, pure Python code without external dependencies – it only depends on the Python standard library.

  • Allow us to write solid code, covered by a large unit test suite. The lack of external dependencies and focus on modern code makes this easier.

While Sprout’s aim is mainly for use within Infrae at present, the code inside should be general enough for use in your own projects as well.

Sprout’s focus is mainly currently XML related. It features:

  • sprout.saxext, a library to make writing SAX-based code more easy.

  • htmlsubset, a system to easily create HTML-ish subsets that are secure and robust to wrong user input.

Changes

1.0 (25/09/2008)

  • Package extension as an egg.

0.9

  • When title attributes are added to <a> tags, they are now recognized but nothing is done with them. Previously, the presence of a ‘title’ attribute corrupted the link.

0.8

  • no changes logged.

0.7

  • Added support for hex entities (e.g. &#xa0; for a non-breaking space) to html2sax.

  • Added support for limiting HTML, taking safe, well-formed snippets out of larger HTML strings. Can deal with HTML that is not well-formed.

0.6.2

  • set sprout up as a Python package in a much simpler, and less wrong way.

0.6.1

  • sax2html handles empty attributes in HTML now, so that <option selected> gets turned into <option selected="selected">.

0.6

  • in Silva subset, accept nested <b>, <i> and <a href=""> in those.

  • Allow optional filtering handler that events get passed through before import happens.

0.5.1

  • In silva subset, treat \n as <br>.

  • In html2sax, we’re now making sure that any tags that cannot be singletons in HTML are kept open, by adding an extra space character event.

0.5

  • Initial public release.

Metadata

Release files for Sprout 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 Sprout 1.0
File Size Uploaded Provenance Actions
Sprout-1.0.tar.gz 41.8 kB Without provenance Details for Sprout-1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Sprout 1.0
File Interpreter ABI Platform Actions
Sprout-1.0-py2.4.egg Legacy Egg format - - Details for Sprout-1.0-py2.4.egg

Total release size: 126.2 kB

Release files / Sprout-1.0.tar.gz

Download URL Sprout-1.0.tar.gz
Size 41.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a0074b9c9a12a055062c581ab4716abd80224d75da042ec721b542ffb28bbf4b
BLAKE2b-256 checksum
How to use checksums
5cfb1f557f7feb6e41ce35910f57e8ebdb0d035e121fce4debb81b43d64b50e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / Sprout-1.0-py2.4.egg

Download URL Sprout-1.0-py2.4.egg
Size 84.4 kB
Tags Egg
SHA-256 checksum
How to use checksums
30849edc046bb0c383b3817a3fd8fafa7ca139b88a8fbea45db5397782db0696
BLAKE2b-256 checksum
How to use checksums
ea1964ee9f8dd01cda6c92fa1a717b1a605c54b0818ce9f0f506b7a957b2aa6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for Sprout 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.

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