Shortcut Functions for Web Operations
Install
# Install without extras
pip install invisibleroads-macros-web
# Install with extras
pip install invisibleroads-macros-web[jinja,markdown,starlette]
Use
# Open browser
from invisibleroads_macros_web.browser import (
open_browser)
# Escape characters
from invisibleroads_macros_web.escape import (
escape_quotes_html,
escape_quotes_js)
# Check ports
from invisibleroads_macros_web.port import (
find_open_port,
is_port_in_use)
# Render markdown
from invisibleroads_macros_web.markdown import (
get_html_from_markdown,
remove_single_paragraph,
remove_parent_paragraphs,
remove_line_break_after_div)
# Configure templates
from invisibleroads_macros_web.jinja import (
AssetStorage,
RelativeTemplateEnvironment,
PathTemplateLoader)
from invisibleroads_macros_web.starlette import (
ExtraResponseHeadersMiddleware,
TemplateResponseFactory)
Test
git clone https://github.com/invisibleroads/invisibleroads-macros-web
cd invisibleroads-macros-web
pip install -e .[jinja,markdown,starlette,test]
pytest --cov=invisibleroads_macros_web --cov-report term-missing tests
0.3
- Add
AssetStorage - Add
remove_single_paragraph,remove_parent_paragraphs
0.2
- Add
TemplateResponseFactory - Add
RelativeTemplateEnvironment,TemplatePathLoader - Remove extraneous p tags in
get_html_from_markdown
0.1
- Add
open_browser,escape_quotes_html,escape_quotes_js - Add
get_html_from_markdown,find_open_port,is_port_in_use
Metadata
Release files for invisibleroads-macros-web 0.3.7
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 |
|---|---|---|---|---|
| invisibleroads_macros_web-0.3.7.tar.gz | 5.3 kB | Without provenance | Details for invisibleroads_macros_web-0.3.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| invisibleroads_macros_web-0.3.7-py3-none-any.whl | Python 3 | none | any | Details for invisibleroads_macros_web-0.3.7-py3-none-any.whl |
Total release size: 12.5 kB
Release files / invisibleroads_macros_web-0.3.7.tar.gz
| Download URL | invisibleroads_macros_web-0.3.7.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b4f0bcd764b523258dfb25d0b35677f2b70d3fbec6be1c043955dd5ae2550c9d
|
|
BLAKE2b-256 checksum How to use checksums |
0b5ee1c7d2eef8c9655d668270803afa551d7a2b8bb62243b889e879ca06d81f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / invisibleroads_macros_web-0.3.7-py3-none-any.whl
| Download URL | invisibleroads_macros_web-0.3.7-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
25d55d9a69f904acdd4045c5988bc9f86fa955244972e2d7e10fb32d72d2a2fa
|
|
BLAKE2b-256 checksum How to use checksums |
333386bafef592fe89f8080a5dafebe894057daff4847b671d765a4afeeff567
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Security for invisibleroads-macros-web 0.3.7
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.