Skip to main content

snakemd-stubs

PEP 561 type stubs for SnakeMD, the Markdown-generation library for Python.

Supported versions

The first release targets the SnakeMD 2.4 API:

  • first tag: v2.4.1.0
  • runtime dependency: SnakeMD>=2.4.0,<2.5.0
  • Python: >=3.10,<4.0

SnakeMD 2.4.0 and 2.4.1 expose the same public API. SnakeMD 2.3.x is intentionally outside this package's range because 2.4 introduced Alert, Checklist, and the Inline.breakline() API, while also changing list internals.

The version format is RUNTIME_MAJOR.RUNTIME_MINOR.RUNTIME_PATCH.STUB_REV. The first three components identify the runtime API line; the final component increments when the stubs are corrected or expanded without changing the supported SnakeMD runtime range.

Each release line has one runtime dependency range. For example, a future 2.3.x.y line would require SnakeMD>=2.3,<2.4, while a 2.5.x.y line would require SnakeMD>=2.5,<2.6. The latest API line is maintained on main; an older line receives a release/<major>.<minor> branch only when it needs a correction.

Versions are derived from Git tags with setuptools-scm. Release tags use the form vRUNTIME_MAJOR.RUNTIME_MINOR.RUNTIME_PATCH.STUB_REV; do not edit a version string in pyproject.toml.

Installation

python -m pip install snakemd-stubs

The runtime package is declared as a dependency, as recommended for a standalone PEP 561 stub distribution. The stubs are used automatically by type checkers after installation; application imports remain import snakemd.

Scope

The declarations cover the public classes and convenience methods exported by SnakeMD's snakemd, snakemd.document, snakemd.elements, and snakemd.templates modules. They are based on the existing declarations in GitHub-Org-Observer/typings/snakemd and checked against the published SnakeMD 2.4.0 and 2.4.1 source archives.

Releasing

CI validates formatting, type checking, runtime/stub compatibility, and both PyPI artifacts. To release, commit the changes, create a matching version tag (for example, v2.4.1.0), and push the tag. The publish workflow uses PyPI Trusted Publishing; configure the PyPI project to trust this repository's publish.yml workflow before pushing the first release tag.

License

The stubs are distributed under the MIT License. See LICENSE.

Download files

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

Source Distribution

snakemd_stubs-2.4.1.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

snakemd_stubs-2.4.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file snakemd_stubs-2.4.1.0.tar.gz.

File metadata

  • Download URL: snakemd_stubs-2.4.1.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.16

File hashes

Hashes for snakemd_stubs-2.4.1.0.tar.gz
Algorithm Hash digest
SHA256 dc5b298934379c063015795271dfb2f2d05cb6195c35db68c220ecfbf53f8402
MD5 c42648a34f2050bf3f33eafdafd12285
BLAKE2b-256 320cef39f1ea9f505518cd2f8ecc98576906ac17e5eca817b266a2142fef16b0

See more details on using hashes here.

File details

Details for the file snakemd_stubs-2.4.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for snakemd_stubs-2.4.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 02b299cc85b59de64a5af7d64db628e65602f39bc3c92dfa0b6fb01d5e4d821e
MD5 9ed87a78f8c1fb7f9f5cdb0564429755
BLAKE2b-256 51952c2a98227cb15e50613ee4c1bdb116ea11c6c364f3f8edc2472e951bbaa6

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.4.1.0 This release

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