Celes 0.1
A tag-based markup language and toolkit. Write documents in Celes, convert to HTML, validate, or round-trip with Markdown.
Install
pip install celes
CLI Usage
# Convert a Celes file to HTML
celes parse doc.celes doc.html
# Validate a Celes file
celes validate doc.celes
# Convert Markdown to Celes
celes md README.md README.celes
# Convert Celes to Markdown
celes tomd doc.celes doc.md
Python API
from celes import parse_celes, validate_celes, convert_md_to_celes, convert_celes_to_md
# Parse to HTML
html = parse_celes(source)
# Validate
is_valid, errors = validate_celes(source)
for e in errors:
print(e) # " ✗ Line 3: <header> is missing required -size attribute"
# Convert
celes_source = convert_md_to_celes(markdown_source)
markdown_source = convert_celes_to_md(celes_source)
Celes Syntax (0.1)
<!Celes-0.1>
; This is a comment
<title>{My Page}
<header -size=1>{Hello, World!}
<line>{This is <bold>{bold} and <italic>{italic} text.}
<list -bullet=circle>{Item one}<sublist -bullet=circle>{Sub-item}
<list -bullet=number>{Numbered item}
<table>{Name, Age}
<item>{Alice, 30}
<codeblock>{print("hello")}
<image>{photo.png}
<linkimage -image=photo.png>{https://example.com}
<blockquote>{A quote <nestquote>{nested}}
<line -align=center>{Centered}
<newline>
<pagebreak>
<insertspace>
<empty>{<raw> text with <angle> brackets}
Metadata
Release files for celes 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| celes-0.1.5.tar.gz | 15.8 kB | Without provenance | Details for celes-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| celes-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for celes-0.1.5-py3-none-any.whl |
Total release size: 33.6 kB
Release files / celes-0.1.5.tar.gz
| Download URL | celes-0.1.5.tar.gz |
|---|---|
| Size | 15.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3266243f60ca57a76998b79dfd1102a25b26df2b9dc0ee947bec27ae77b536ed
|
|
BLAKE2b-256 checksum How to use checksums |
eef21626196f316906338daf40bb6d6fbd5d05891b0503ad1d8a387d08b7539f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / celes-0.1.5-py3-none-any.whl
| Download URL | celes-0.1.5-py3-none-any.whl |
|---|---|
| Size | 17.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
16381a887268b5d4f444e351b9e9058cc40ff3f1ac5efc03850d067ab91c63a8
|
|
BLAKE2b-256 checksum How to use checksums |
19dcc4406a5aac86e5c6533df218dfd10d49c4140033ea5a60234510aa088469
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for celes 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.