BBCode parser and renderer for Planète Casio
Project description
This module defines BBcode parsers, including HTML rendering, for Planète Casio.
For example, as described in Rendering BBCode as HTML, in order to render BBCode into HTML, you can use the following snippet:
from __future__ import annotations
from textoutpc import render_as_html
text = """\
[img=center]https://www.planet-casio.com/assets/img/logo.png[/img]
Hello [color=R10]world[/color]!
[list]
[li]This module is made by [url=https://thomas.touhey.fr/]me[/url]!
[li]Use `render_as_html()` to translate magically to HTML!
[/]
"""
print(render_as_html(text), end="")
The project is present at the following locations:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
textoutpc-0.3.tar.gz
(36.2 kB
view details)
Built Distribution
textoutpc-0.3-py3-none-any.whl
(46.4 kB
view details)
File details
Details for the file textoutpc-0.3.tar.gz
.
File metadata
- Download URL: textoutpc-0.3.tar.gz
- Upload date:
- Size: 36.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
fc498470532329f0454ce9355985942df0832210c505df9e250c26c272163048
|
|
MD5 |
7fad9f73d88b32647398e29bfb77f9df
|
|
BLAKE2b-256 |
9279733f0268900fa316fbc35c436b0a1a0f6a9412b568782c4c8e27490d92bf
|
File details
Details for the file textoutpc-0.3-py3-none-any.whl
.
File metadata
- Download URL: textoutpc-0.3-py3-none-any.whl
- Upload date:
- Size: 46.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
5dea119913d1a9ae3b9c18e17c5463672a4794a0cae24dcea57c0e440241f0a1
|
|
MD5 |
a0c3b42b5eea97b92991195a807d7870
|
|
BLAKE2b-256 |
98c859ddedc9d5e654b485a8b196e3bce08622c8c628d52393c1b672c89eef37
|