Skip to main content

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)

Source distribution for celes 0.1.5
File Size Uploaded
celes-0.1.5.tar.gz 15.8 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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