a Simple command that publishes Notion Page to Medium.
Project description
About Notion2Medium
- Publish a post to Medium just from your Notion Page by Console Cli
API Keys(Token)
-
Notion API Token: create an integration and find the token. → Learn more about authorization.
-
Medium API Token: create Medium Integration from Medium Setting
-
Then save your api key(token) as your os environment variable
$ export NOTION_TOKEN="{your integration token key}"
$ export MEDIUM_TOKEN="{your integration token key}"
- Or add these commands to your shell config files(
.bashrcor.zshrc)
Install
$ pip install notion2medium
Select Command
-
Retrieves Notion Page list from Notion Database.
-
Ask user titles of Notion pages and will call
publishcommand to publish the selected page. -
selectcommands require eitheridorurlof the Notion Database or Page.
$ notion2medium select -i <Notion Database id>
Publish Command
-
Publishes a Medium Post from Notion Page.
-
Retrieves Notion Page's content(children blocks) as markdown and Page's tags.
-
publishcommands require eitheridorurlof the Notion Database or Page.
$ notion2medium publish -i <Notion Page id>
Donation
If you think Notion2Medium is helpful to you, you can support me here:
License
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 notion2medium-1.0.1.tar.gz.
File metadata
- Download URL: notion2medium-1.0.1.tar.gz
- Upload date:
- Size: 23.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/22.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f09cc5577e56791fd37ef33ff0636cfd5c780480399d3faa0c26cd612e9eb46
|
|
| MD5 |
ca89614f1b4cc1068fa2752711b03c82
|
|
| BLAKE2b-256 |
6310cb6458e7f7dfda35717fcfd4a60f6b82426a0e80c8651c45c9f904efe950
|
File details
Details for the file notion2medium-1.0.1-py3-none-any.whl.
File metadata
- Download URL: notion2medium-1.0.1-py3-none-any.whl
- Upload date:
- Size: 27.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/22.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbe84f10cd07be761a8a9ff24bf99d359d1c4beeb7cc8413995050173bdf626d
|
|
| MD5 |
365aeaf3679374ca7b19e14ae7c3503d
|
|
| BLAKE2b-256 |
3f5db4499d6db20928ac30b137afa8416e170ad5f449cd327a64d7a08843ca05
|