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
  • Bold, italic, strikethrough, inline code
  • Links and images to [url] / [img]
  • Ordered and unordered lists (nested)
  • Blockquotes (nested)
  • Fenced code blocks to [code]
  • Horizontal rules to [hr][/hr]

Steam to Markdown

  • [h1] through [h6] to # through ######
  • [b], [i], [strike], [code] to **, *, ~~, backticks
  • [url] / [img] to Markdown links and images
  • [list] / [olist] (nested) to - / 1.
  • [quote] (nested) to >
  • [hr][/hr] to ---
  • Steam-only tags such as [spoiler], [noparse], [table], and [u] 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.1.0

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.1.0
File Size Uploaded Provenance Actions
steamify-2.1.0.tar.gz 66.5 kB Without provenance Details for steamify-2.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 76.9 kB

Release files / steamify-2.1.0.tar.gz

Download URL steamify-2.1.0.tar.gz
Size 66.5 kB
Tags Source
SHA-256 checksum
How to use checksums
473a1b18f5e5b466d2b8987569e66b79bdbf719044d9ace11d231204eedfbfed
BLAKE2b-256 checksum
How to use checksums
4b5715219fc5035a79357498127e37bf1405ad9e5666a20eadf1e92a15837a60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.1.0-py3-none-any.whl

Download URL steamify-2.1.0-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
76d065d4694f7740f543000cb03b48cca31fe338968ec96ca65b3eacb338f471
BLAKE2b-256 checksum
How to use checksums
9ac1933492d310c35740de699e8d40c71ec604a5ec5f68d0e77777d04a8ac8f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.1.0

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