Skip to main content

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:

Metadata

Release files for textoutpc 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for textoutpc 0.3
File Size Uploaded
textoutpc-0.3.tar.gz 36.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for textoutpc 0.3
File Interpreter ABI Platform
textoutpc-0.3-py3-none-any.whl Python 3 none any Details

Total release size: 82.6 kB

Release files / textoutpc-0.3.tar.gz

Download URL textoutpc-0.3.tar.gz
Size 36.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fc498470532329f0454ce9355985942df0832210c505df9e250c26c272163048
BLAKE2b-256 checksum
How to use checksums
9279733f0268900fa316fbc35c436b0a1a0f6a9412b568782c4c8e27490d92bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.9.22

Release files / textoutpc-0.3-py3-none-any.whl

Download URL textoutpc-0.3-py3-none-any.whl
Size 46.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5dea119913d1a9ae3b9c18e17c5463672a4794a0cae24dcea57c0e440241f0a1
BLAKE2b-256 checksum
How to use checksums
98c859ddedc9d5e654b485a8b196e3bce08622c8c628d52393c1b672c89eef37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.9.22

Release history Release notifications | RSS feed

This release

0.3 This release

2 release files

0.2.1

1 release file

0.2

1 release file

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page