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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59e48c3f4eedd62739c8a7b6795b748d01f15ea07d94e3363aca1f279eb493cd
|
|
| MD5 |
c8b9abb4359af1edb2d83ffc8c5f94c4
|
|
| BLAKE2b-256 |
f7d384822ee7e750be3155d59fbc679867d2a4382e7acac383b2770c19711d07
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
961c9813ba7f7b00c3c03a1e586b0810c16ab2e288f26d5a6e4f791f4cfb69e1
|
|
| MD5 |
219b480beb7e73ff9fda54689d749613
|
|
| BLAKE2b-256 |
212623cf18f83a63586e329379c54f162742edb586fef68d5e5505a9801fcd03
|