Skip to main content

Flomo unofficial API with full CRUD support

Project description

flomo 浮墨

PyPI PyPI - Python Version GitHub stars

一个非官方的 API python 玩具盒 👀

prefer python3.7+
欢迎 Star 🌟、Fork 🍴、Issue 💬、PR. 一起让 flomo 用的更加得心应手

最新版在 dev 分支

This fork adds full CRUD support — create, update, and delete memos — on top of the original read-only API.

Usage 使用

pip install -U flomo

Python 封装

from flomo import Flomo, Parser

authorization = "Bearer xxxxxxxxxxx"
flomo = Flomo(authorization)

# Read
memos = flomo.get_all_memos()
memo = Parser(memos[-1])
print(memo.text) # memo 纯文本
print(memo.url)  # memo 链接
print(memo.tags)

# Create
new_memo = flomo.create("今天学到了一些新东西 #study")

# Update
flomo.update(new_memo["slug"], "修改后的内容 #study")

# Delete
flomo.delete(new_memo["slug"])

或参考 main_simple.py (by MarkShawn2020)

authorization 是用户 flomo 登录后获取的 token,可在浏览器的开发者工具中查看。

CLI 命令行

# 配置token
flomo config --token 'your_token'

# 列出前5条备忘录,表格格式
flomo list -l 5 -f table

# 搜索包含关键词的备忘录
flomo search "知识管理" -f markdown

# 创建备忘录
flomo create "今天学到了一些新东西 #study"

# 更新备忘录(需要slug)
flomo update <slug> "修改后的内容 #study"

# 删除备忘录(需要slug)
flomo delete <slug>

Tip: slug 可以从 flomo list -f json 的输出中获取。

credit to MarkShawn2020

Local Install 本地安装

git clone https://github.com/pauloil/flomo.git
cd flomo
pip install -e .

Relative Project 相关项目

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

flo_cli-1.0.0a0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flo_cli-1.0.0a0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file flo_cli-1.0.0a0.tar.gz.

File metadata

  • Download URL: flo_cli-1.0.0a0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for flo_cli-1.0.0a0.tar.gz
Algorithm Hash digest
SHA256 48135fb8a32194b1e0e6cf71c10d627c3e2e05702cb3c8f99491cd0f5696599d
MD5 9a75caff36b3c6e6840b65905bfc89d8
BLAKE2b-256 0b0040038b3f8b93f5e4db21d99ab5d76387530cc17b67bffaa9c9f39cb04af9

See more details on using hashes here.

File details

Details for the file flo_cli-1.0.0a0-py3-none-any.whl.

File metadata

  • Download URL: flo_cli-1.0.0a0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for flo_cli-1.0.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 500ed863d32066bd1b35daf126ac8315aba954b7691f12ecba320c9a8cb67629
MD5 8774afe8ae5f32bef63402c0e58b3c4e
BLAKE2b-256 6f4f3a98f4407c78e934b2bdb0a80329ee1f1103c738e213e74b83e58f719bff

See more details on using hashes here.

Supported by

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