Shortcut functions for web operations
Project description
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)
# Configure templates
from invisibleroads_macros_web.jinja import (
RelativeTemplateEnvironment,
TemplatePathLoader,
url_for)
from invisibleroads_macros_web.starlette import (
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.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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for invisibleroads-macros-web-0.2.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78afb3522c3a47f5ce53303401bb97d844d0c8f84b09dba0c101b8a5543de219 |
|
MD5 | 997cccb20866cf5b59638e4c6ce29c4e |
|
BLAKE2b-256 | ed12731dd8841cee37e86ddccdb133f0550ffe8fb9dd8b3f044f399793c8323a |
Close
Hashes for invisibleroads_macros_web-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 443a90f746a7f3e1a34fe1f1b6d75dd21a1eec6af960056c6d0916c7c205be15 |
|
MD5 | 5731dd18deca3e066814a540cc825524 |
|
BLAKE2b-256 | 8c35c45946d6ad3454e639cd2e76336720efef24a9aecbf25e3df03c5350a6aa |