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[fastapi,jinja,markdown]
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.fastapi import (
TemplateResponseFactory)
from invisibleroads_macros_web.jinja import (
RelativeTemplateEnvironment,
TemplatePathLoader,
url_for)
Test
git clone https://github.com/invisibleroads/invisibleroads-macros-web
cd invisibleroads-macros-web
pip install -e .[fastapi,jinja,markdown,test]
pytest --cov=invisibleroads_macros_web --cov-report term-missing tests
0.2
- Add TemplateResponseFactory
- Add RelativeTemplateEnvironment, TemplatePathLoader
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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b40473c031d60d45e9cb92b95db5918052daaa17fcb5e046debf5482c3b32235 |
|
MD5 | 14eef5c4c4f2bcd46d21ae60cb2aa5bb |
|
BLAKE2b-256 | 3970185eb37349df59f268bffa0def53951018a4c2da9e98322cb746140e5ddb |
Close
Hashes for invisibleroads_macros_web-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22cb3395035578b9a6784174752961a14759179586ee78d4cedf7df969225688 |
|
MD5 | a3b05505ff97b8c91c619277c34c1666 |
|
BLAKE2b-256 | ddd441aecdce6b1072229f8eeb8f0e3b82ebf254580795ad7b2a940514fce2fc |