Skip to main content

TelePress

语言 / Language: 中文 · English

向 Telegraph 发布文本、图片与档案的 Python 库与 CLI。

CI PyPI Python Docs

完整文档

TelePress 把 Markdown、纯文本、图片和富媒体内容发布为 Telegraph 页面, 不关心内容来自哪个平台。

  • 纯文本 / Markdown:自动分页并生成上一页、下一页导航
  • 图片 / ZIP 图集:压缩后发布为 Telegra.ph 相册
  • 富媒体(REST):通过 /publish/rich-novel 发布 Markdown + 本地图
  • 图片可在「上传图床」与「通用 CDN 代理」两条路径间选择

安装

pip install telepress

# 可选:REST API 服务
pip install "telepress[api]"

# 可选:S3 / R2 / OSS / MinIO 等 S3 兼容图床
pip install "telepress[s3]"

# 可选:YAML 配置
pip install "telepress[yaml]"

30 秒快速开始

pip install telepress
telepress article.md --title "我的文章"

# 或者显式子命令
telepress publish article.md --title "我的文章"

发布图片 / ZIP 图集前先配置一个图床:

telepress configure
telepress check
telepress photo.jpg --title "照片"
telepress gallery.zip --title "图集"

需要服务化时:

pip install "telepress[api]"
telepress-server --host 127.0.0.1 --port 8000
# OpenAPI 交互文档:http://127.0.0.1:8000/docs

运行时首次使用会自动创建并保存 Telegraph token(默认 ~/.telegraph_token)。

文档

README 不是全量文档;稳定契约放在 docs/:

License

MIT

致谢

TelePress 建立在这些项目之上:

接口与规范参考:Telegraph API。

Release files for telepress 0.16.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 telepress 0.16.0
File Size Uploaded
telepress-0.16.0.tar.gz 117.8 kB Details

Built distribution (wheel)

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

Total release size: 168.5 kB

Release files / telepress-0.16.0.tar.gz

Download URL telepress-0.16.0.tar.gz
Size 117.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3a29cbbc4a561527fe75675d7eb52b0cc8dd7d92f19783167a3f9f7ff3b391b4
BLAKE2b-256 checksum
How to use checksums
3915a2be92b4b37ed756768df4f78b81fcead136091990c6cf3b4afc6d6b3b50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.

Transparency log

Release files / telepress-0.16.0-py3-none-any.whl

Download URL telepress-0.16.0-py3-none-any.whl
Size 50.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb71eceea1d05dcecbf9c747f44e31d57e097930337c1f17cf68fd73109fa5a7
BLAKE2b-256 checksum
How to use checksums
513d0fd2e5f9b74bb6ba43a024dcf524b788504f8dba33a74b45c17f581de428
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.

Transparency log

Release history Release notifications | RSS feed

0.16.1

2 release files

This release

0.16.0 This release

2 release files

0.15.0

2 release files

0.14.2

2 release files

0.14.1

2 release files

0.14.0

2 release files

0.13.1

2 release files

0.13.0

2 release files

0.12.1

2 release files

0.12.0

2 release files

0.11.0

2 release files

0.10.0

2 release files

0.9.0

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

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