Skip to main content

mdium

publish your markdown to Medium, from the CLI

Installation

$ pip install mdium

Usage

Initializing

First off, set up mdium with your Medium integration token. You’ll have to generate one from the settings page.

$ mdium init <integration-token>

This will create a file at ~/.mdium, containing your integration token and author ID.

Publishing

For publishing, your markdown doc must have the following frontmatter:

---
title: My Awesome Post
tags: ['some', 'tags', 'here']
status: draft
---

## markdown here
...

Note that the status field can be either draft or public.

Finally, run

$ mdium publish path/to/markdown.md
Done! Your post has been published at https://medium.com/@gaben/76272e9d241c

It’s that simple.

License

MIT © Anirudh Oppiliappan

Metadata

Release files for mdium 2.0.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 mdium 2.0.0
File Size Uploaded Provenance Actions
mdium-2.0.0.tar.gz 2.4 kB Without provenance Details for mdium-2.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 5.7 kB

Release files / mdium-2.0.0.tar.gz

Download URL mdium-2.0.0.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
59e48c3f4eedd62739c8a7b6795b748d01f15ea07d94e3363aca1f279eb493cd
BLAKE2b-256 checksum
How to use checksums
f7d384822ee7e750be3155d59fbc679867d2a4382e7acac383b2770c19711d07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

Release files / mdium-2.0.0-py3-none-any.whl

Download URL mdium-2.0.0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
961c9813ba7f7b00c3c03a1e586b0810c16ab2e288f26d5a6e4f791f4cfb69e1
BLAKE2b-256 checksum
How to use checksums
212623cf18f83a63586e329379c54f162742edb586fef68d5e5505a9801fcd03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

Security for mdium 2.0.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.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files No provenance

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