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.2

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.2
File Size Uploaded Provenance Actions
steamify-2.2.2.tar.gz 70.8 kB Without provenance Details for steamify-2.2.2.tar.gz

Built distribution (wheel)

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

Total release size: 85.9 kB

Release files / steamify-2.2.2.tar.gz

Download URL steamify-2.2.2.tar.gz
Size 70.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fbd92c5ce120ef83a6fd8f066818b30f1bd773d054770f85a20cde9ab3b10d26
BLAKE2b-256 checksum
How to use checksums
8294358b425b4bc4409b95a0cd0cd9dfc90f263ab56f6d7493582af93ab7e1ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","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.2-py3-none-any.whl

Download URL steamify-2.2.2-py3-none-any.whl
Size 15.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
174407f1906ef5db2c5c4cc59e5fc10df82532e50eada68be0f2bd27a1c83b34
BLAKE2b-256 checksum
How to use checksums
fe00d2a28cb497c6df9881af63d2030d93a31ad19724bdea0810901c2c836fb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","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.2

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