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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

steamify-2.0.1.tar.gz (52.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

steamify-2.0.1-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file steamify-2.0.1.tar.gz.

File metadata

  • Download URL: steamify-2.0.1.tar.gz
  • Upload date:
  • Size: 52.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.9 {"installer":{"name":"uv","version":"0.12.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}

File hashes

Hashes for steamify-2.0.1.tar.gz
Algorithm Hash digest
SHA256 221240c2164e4fdfc200e24da1a30ab7c778f7c29b4187fb252278ec983862d5
MD5 370438d7933de616ef08cc7da53e1dec
BLAKE2b-256 84ce8e21b1fd6ee1531f1438b7d67a0bf6849418e2fe5053037d2ab6fdfe4661

See more details on using hashes here.

File details

Details for the file steamify-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: steamify-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.9 {"installer":{"name":"uv","version":"0.12.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}

File hashes

Hashes for steamify-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9edee98ac5d5bfc42cf5440e2997a52870f1b05ab27bcdff92accf3559830ed6
MD5 47e75c9d55d06ae0a3b47f9ddc2a2201
BLAKE2b-256 781ee5d6824447e3e8888fad9ba182145d060fd098145026cb4224e60e2d2a13

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 files

2.0.0

2 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