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.3.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bde2ff06c638b357b539794b371784f3d525ad87e6a71c6c24a2f3e0678e0f4d |
|
MD5 | d538db8d12c99e944a53964cbfe12f53 |
|
BLAKE2b-256 | b568fc9b7391d67c4028338a7b918762e3b6f40a5c8a3d72ec663b0737b5abbb |
Close
Hashes for invisibleroads_macros_web-0.3.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 523b2718a1636e3aa5cce87a6bc71abff9425fbbe08d86c8c6284d0bbe10e687 |
|
MD5 | e8c56a9923f5d0c0033501be98ca9c79 |
|
BLAKE2b-256 | cba252af07ed0bc6c0214ff3e064d746d3d622fbedaa86e632fb0f0a4e1616fb |