使用fuse的blogger文件系统

bloggerfs的Python项目详细描述


Author:mg
Date:2010-07-02
Copyright:Lesser GNU Public License
Version:0.5.1
Manual section:1
Manual group:FUSE

概要

bloggerfs [fuse options] <mount point> [options]

说明

bloggerfs是用户空间中的一个文件系统,允许您浏览 blogger的博客、帖子和评论。 主要是所有文件都是只读的,无法创建新的 但是有一些特别的可以让你添加新的帖子和评论 和标签。

安装

bloggerfs需要fuse-pythongdatazope.interface。全部 需求应该由pipdistribute自动安装。

使用pip:

$ pip install bloggerfs

或使用Distribute:

$ python setup.py install

岗位互动

添加帖子:

cat feed.xml > <mnt>/<blog id>/add_post

或者用rst2atom

rst2atom README.txt > <mnt>/<blog id>/add_post

删除帖子:

rmdir <mnt>/<blog id>/posts/<post id>/

添加标签:

echo label 1 > <mnt>/<blog id>/posts/<post id>/add_label

添加两个标签:

echo label 1,label 2 > <mnt>/<blog id>/posts/<post id>/add_label

评论互动

添加注释:

echo hello world > <mnt>/<blog id>/posts/<post id>/add_comment

添加HTML注释:

echo hello world > <mnt>/<blog id>/posts/<post id>/add_html_comment

可以删除评论,只需删除评论目录即可:

rmdir <mnt>/<blog id>/posts/<post id>/comments/<comment id>/

文件系统结构

享受ascii艺术:)

mnt/
├── <blog id>/
├── .../
└── <blog id>/
    ├── add_post
    ├── author/
    │   └── 0/
    │       ├── email/
    │       │   └── text
    │       ├── name/
    │       │   └── text
    │       └── uri/
    │           └── text
    ├── category/
    ├── contributor/
    ├── etag
    ├── id/
    │   └── text
    ├── link/
    │   ├── 0/
    │   │   ├── href
    │   │   ├── rel
    │   │   └── type
    │   └── ...
    ├── posts/
    │   ├── <post id>/
    │   ├── .../
    │   └── <post id>/
    │       ├── add_comment
    │       ├── add_html_comment
    │       ├── add_label
    │       ├── author/
    │       │   └── 0/
    │       │       ├── email/
    │       │       │   └── text
    │       │       ├── name/
    │       │       │   └── text
    │       │       └── uri/
    │       │           └── text
    │       ├── category/
    │       ├── comments/
    │       │   ├── <comment id>/
    │       │   ├── .../
    │       │   └── <comment id>/
    │       │       ├── author/
    │       │       │   └── 0/
    │       │       │       ├── email/
    │       │       │       │   └── text
    │       │       │       ├── name/
    │       │       │       │   └── text
    │       │       │       └── uri/
    │       │       │           └── text
    │       │       ├── category/
    │       │       ├── content
    │       │       ├── contributor/
    │       │       ├── etag
    │       │       ├── id/
    │       │       │   └── text
    │       │       ├── in_reply_to/
    │       │       │   ├── href
    │       │       │   ├── ref
    │       │       │   ├── source
    │       │       │   └── type
    │       │       ├── link/
    │       │       │   ├── 0/
    │       │       │   │   ├── href
    │       │       │   │   ├── rel
    │       │       │   │   └── type
    │       │       │   └── ...
    │       │       ├── published/
    │       │       │   └── text
    │       │       ├── title
    │       │       └── updated/
    │       │           └── text
    │       ├── content
    │       ├── contributor/
    │       ├── etag
    │       ├── id/
    │       │   └── text
    │       ├── link/
    │       │   ├── 0/
    │       │   │   ├── href
    │       │   │   ├── rel
    │       │   │   ├── title
    │       │   │   └── type
    │       │   └── ...
    │       ├── published/
    │       │   └── text
    │       ├── title
    │       └── updated/
    │           └── text
    ├── published/
    │   └── text
    ├── summary
    ├── title
    └── updated/
        └── text

选项

-h, --helpshow the help message and exit
-o optmount options (can be repeated)
-e, --email=EMAIL
Google account email
-p, --password=PASSWORD
Google account password
-b, --debugShow debugging info
--syslogLog messages to syslog
-l, --logfile=LOGFILE
Log messages to file

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java无法使用JAXB配置Moxy   java如何让我的简单Swing telnet客户端正确显示字符?   java中从可运行线程调用主线程的多线程处理   java数据源。EBJ3会话bean中的getConnection()   使用java和正则表达式从xml文件提取值时出现问题   java定制Jersy胡须Mvc   在Java中,“限制并发”是什么意思?   java有没有更干净的方法可以在这里使用Optional,而不在三个地方返回“NA”?   java Tomcat启动,然后崩溃,除非我打电话   java理解客户机和服务器   java时间戳将在视图对象>实体转换期间丢失   如何在java中返回布尔值(基元)?   java使用spring mvc设置日志记录,希望仅对我的代码进行跟踪/调试   用Jackson解析嵌套对象