Skip to main content

Publish your markdown to Medium, from the CLI

Project description

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

Project details


Download files

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

Source Distribution

mdium-2.0.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

mdium-2.0.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file mdium-2.0.0.tar.gz.

File metadata

  • Download URL: mdium-2.0.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for mdium-2.0.0.tar.gz
Algorithm Hash digest
SHA256 59e48c3f4eedd62739c8a7b6795b748d01f15ea07d94e3363aca1f279eb493cd
MD5 c8b9abb4359af1edb2d83ffc8c5f94c4
BLAKE2b-256 f7d384822ee7e750be3155d59fbc679867d2a4382e7acac383b2770c19711d07

See more details on using hashes here.

File details

Details for the file mdium-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: mdium-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for mdium-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 961c9813ba7f7b00c3c03a1e586b0810c16ab2e288f26d5a6e4f791f4cfb69e1
MD5 219b480beb7e73ff9fda54689d749613
BLAKE2b-256 212623cf18f83a63586e329379c54f162742edb586fef68d5e5505a9801fcd03

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page