Skip to main content

Steamify

Python PyPI CI Ruff StandWithUkraine

Overview

A lightweight package with zero runtime dependencies for converting Markdown into Steam-compatible markup, and back again.

Features

Markdown to Steam

  • Headings (# through ######) to [h1] through [h3], since Steam caps at three levels, including Setext (=== / ---) headings
  • Bold, italic, strikethrough, underline (<u>), inline code, and ||spoiler|| to [u] / [spoiler]
  • Links and images to [url] / [img], including autolinks (<https://…>), reference-style links, and images wrapped in links
  • Ordered and unordered lists (nested), with - [ ] / - [x] task lists rendered as ☐ / ☑
  • Blockquotes (nested)
  • GitHub-flavored pipe tables to [table] / [tr] / [th] / [td]
  • Fenced code blocks (three or more backticks, or ~~~) to [code], preserving shorter fences nested inside a longer one
  • Inline code spans delimited by any number of backticks
  • Horizontal rules to [hr][/hr]

Steam to Markdown

  • [h1] through [h6] to # through ######
  • [b], [i], [u], [strike], [code] to **, *, <u>, ~~, backticks
  • [spoiler] to ||…||
  • [url] / [img] to Markdown links and images
  • [list] / [olist] (nested) to - / 1., with ☑ / ☐ restored to task-list markers
  • [quote] (nested) to >
  • [table] / [tr] / [th] / [td] to GitHub-flavored pipe tables
  • [hr][/hr] to ---
  • Steam-only tags such as [noparse], [quote=author], and [previewyoutube] have no Markdown equivalent, so they pass through verbatim rather than being dropped

Installation

Install with pip or uv:

pip install -U steamify

uv add steamify

Usage

from steamify import to_steam

md_text = """
# My Game Guide

Welcome to the **best** game ever!

## Features

- Easy to learn
- *Beautiful* graphics
- ~~Microtransactions~~ Free to play!

Check out the [wiki](https://example.com) for tips.
"""

steam_text = to_steam(md_text)
print(steam_text)

# [h1]My Game Guide[/h1]

# Welcome to the [b]best[/b] game ever!

# [h2]Features[/h2]

# [list]
# [*] Easy to learn
# [*] [i]Beautiful[/i] graphics
# [*] [strike]Microtransactions[/strike] Free to play!
# [/list]

# Check out the [url=https://example.com]wiki[/url] for tips.

Converting the other way:

from steamify import to_markdown

steam_text = """
[h1]Patch Notes[/h1]

[list]
[*] Fixed [b]crash[/b] on startup
[*] [spoiler]Secret boss[/spoiler] added
[/list]
"""

md_text = to_markdown(steam_text)
print(md_text)

# # Patch Notes

# - Fixed **crash** on startup
# - [spoiler]Secret boss[/spoiler] added

Command line

The package installs a steamify console script alongside the library, and python -m steamify does the same thing.

steamify guide.md -o guide.txt              # Markdown file to Steam file
steamify guide.md                           # Markdown file to stdout
steamify --to-markdown guide.txt            # Steam file back to Markdown
cat guide.md | steamify                     # stdin to stdout
steamify -e latin-1 guide.md -o guide.txt   # read and write as latin-1

Conventions:

  • - or an omitted argument means stdin; -o - or no -o means stdout.
  • The default direction is Markdown to Steam. --to-markdown reverses it.
  • --encoding applies to files and to stdin/stdout bytes alike, so pipes honor it too.
  • Failures print a single steamify: <message> line on stderr and exit with code 1.

Metadata

Release files for steamify 2.2.1

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

Source distribution (sdist)

Source distribution for steamify 2.2.1
File Size Uploaded Provenance Actions
steamify-2.2.1.tar.gz 72.8 kB Without provenance Details for steamify-2.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 87.9 kB

Release files / steamify-2.2.1.tar.gz

Download URL steamify-2.2.1.tar.gz
Size 72.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7b738a6149ec6e107e80708ae3a441fa4bca8d1bf65ea77e259dfc3fdc50254f
BLAKE2b-256 checksum
How to use checksums
79aca97451bef7dc4ff17697d128c777496499d656e26fe03e51231c8b3597e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / steamify-2.2.1-py3-none-any.whl

Download URL steamify-2.2.1-py3-none-any.whl
Size 15.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
90eb8219f7a36877248a6980ef3124d64ba4d103a6a28785789aafa9effec255
BLAKE2b-256 checksum
How to use checksums
cf9c06cc08149a4b9050a76b1a705f3d752611974d70cef7283faa6acf47fc24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for steamify 2.2.1

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.

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