# auto_sender
适用于可公开的数据,比如摘抄本,个人博客,笔记等。
比如,我在个人电脑的某个专用文件夹,放了许多个人博客文章,每篇文章是一个以 .md 结尾的文本文件。
auto_sender 的作用是:
1、把该文件夹与 rum group 形成映射;
2、把文件夹下的每个文本文件,映射一条 trx;
3、然后自动或手动提交/更新/同步。
为什么?
存储在 rum group 的数据,既是可靠的、分布式的数据备份,可一键恢复到新的指定目录或新设备上;也可以作为产品的数据源,比如论坛的主帖,博客主的个人文集,被运用到 port.base.one 等相似的站点。
关于:
采用 python 实现,偏后端,作为 demo 而存在,目前几乎没有图形交互。
换言之,rum group 的数据可以采用任何已有的产品应用来渲染,这个 bot 只处理原始数据与 rum group 的映射与同步。
### 安装
```sh
pip install rum_auto_sender
```
### 使用
[example](./example/bot_blog.py)
Raw data
{
"_id": null,
"home_page": "https://github.com/liujuanjuan1984/auto_sender",
"name": "rum-auto-sender",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "mininode,rumsystem,quorum",
"author": "liujuanjuan1984",
"author_email": "qiaoanlu@163.com",
"download_url": "https://files.pythonhosted.org/packages/5f/71/af125d17bbe78329c22a5f1f2f1bb2cc8b5c76fad6dbebfffaac56823b3f/rum_auto_sender-0.1.3.tar.gz",
"platform": null,
"description": "# auto_sender\r\n\r\n\u9002\u7528\u4e8e\u53ef\u516c\u5f00\u7684\u6570\u636e\uff0c\u6bd4\u5982\u6458\u6284\u672c\uff0c\u4e2a\u4eba\u535a\u5ba2\uff0c\u7b14\u8bb0\u7b49\u3002\r\n\r\n\u6bd4\u5982\uff0c\u6211\u5728\u4e2a\u4eba\u7535\u8111\u7684\u67d0\u4e2a\u4e13\u7528\u6587\u4ef6\u5939\uff0c\u653e\u4e86\u8bb8\u591a\u4e2a\u4eba\u535a\u5ba2\u6587\u7ae0\uff0c\u6bcf\u7bc7\u6587\u7ae0\u662f\u4e00\u4e2a\u4ee5 .md \u7ed3\u5c3e\u7684\u6587\u672c\u6587\u4ef6\u3002\r\n\r\nauto_sender \u7684\u4f5c\u7528\u662f\uff1a\r\n\r\n1\u3001\u628a\u8be5\u6587\u4ef6\u5939\u4e0e rum group \u5f62\u6210\u6620\u5c04\uff1b\r\n\r\n2\u3001\u628a\u6587\u4ef6\u5939\u4e0b\u7684\u6bcf\u4e2a\u6587\u672c\u6587\u4ef6\uff0c\u6620\u5c04\u4e00\u6761 trx\uff1b\r\n\r\n3\u3001\u7136\u540e\u81ea\u52a8\u6216\u624b\u52a8\u63d0\u4ea4/\u66f4\u65b0/\u540c\u6b65\u3002\r\n\r\n\u4e3a\u4ec0\u4e48\uff1f\r\n\r\n\u5b58\u50a8\u5728 rum group \u7684\u6570\u636e\uff0c\u65e2\u662f\u53ef\u9760\u7684\u3001\u5206\u5e03\u5f0f\u7684\u6570\u636e\u5907\u4efd\uff0c\u53ef\u4e00\u952e\u6062\u590d\u5230\u65b0\u7684\u6307\u5b9a\u76ee\u5f55\u6216\u65b0\u8bbe\u5907\u4e0a\uff1b\u4e5f\u53ef\u4ee5\u4f5c\u4e3a\u4ea7\u54c1\u7684\u6570\u636e\u6e90\uff0c\u6bd4\u5982\u8bba\u575b\u7684\u4e3b\u5e16\uff0c\u535a\u5ba2\u4e3b\u7684\u4e2a\u4eba\u6587\u96c6\uff0c\u88ab\u8fd0\u7528\u5230 port.base.one \u7b49\u76f8\u4f3c\u7684\u7ad9\u70b9\u3002\r\n\r\n\u5173\u4e8e\uff1a\r\n\r\n\u91c7\u7528 python \u5b9e\u73b0\uff0c\u504f\u540e\u7aef\uff0c\u4f5c\u4e3a demo \u800c\u5b58\u5728\uff0c\u76ee\u524d\u51e0\u4e4e\u6ca1\u6709\u56fe\u5f62\u4ea4\u4e92\u3002\r\n\r\n\u6362\u8a00\u4e4b\uff0crum group \u7684\u6570\u636e\u53ef\u4ee5\u91c7\u7528\u4efb\u4f55\u5df2\u6709\u7684\u4ea7\u54c1\u5e94\u7528\u6765\u6e32\u67d3\uff0c\u8fd9\u4e2a bot \u53ea\u5904\u7406\u539f\u59cb\u6570\u636e\u4e0e rum group \u7684\u6620\u5c04\u4e0e\u540c\u6b65\u3002\r\n\r\n### \u5b89\u88c5\r\n\r\n```sh\r\npip install rum_auto_sender\r\n```\r\n\r\n### \u4f7f\u7528\r\n\r\n[example](./example/bot_blog.py)\r\n",
"bugtrack_url": null,
"license": "",
"summary": "auto sender for local dirpath to rum group",
"version": "0.1.3",
"split_keywords": [
"mininode",
"rumsystem",
"quorum"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8ce38105aafa5c9371e92afa2e463e662218b39a07aee3d5b3dc799668405ec5",
"md5": "334f263c4e73876ac60ca95044b4f58e",
"sha256": "c91ee63437d0644f36249b2de9ed83efb783c1b5b68979644e5aa200e0ea1b58"
},
"downloads": -1,
"filename": "rum_auto_sender-0.1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "334f263c4e73876ac60ca95044b4f58e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 17270,
"upload_time": "2023-01-12T09:30:02",
"upload_time_iso_8601": "2023-01-12T09:30:02.092953Z",
"url": "https://files.pythonhosted.org/packages/8c/e3/8105aafa5c9371e92afa2e463e662218b39a07aee3d5b3dc799668405ec5/rum_auto_sender-0.1.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5f71af125d17bbe78329c22a5f1f2f1bb2cc8b5c76fad6dbebfffaac56823b3f",
"md5": "b0b5a6ecb31960cc95bc15f2eaa669f1",
"sha256": "c129dcbfa35889bb9c8cc77df8a8c6da990f7dda0c1ace02380d5d05bed3914c"
},
"downloads": -1,
"filename": "rum_auto_sender-0.1.3.tar.gz",
"has_sig": false,
"md5_digest": "b0b5a6ecb31960cc95bc15f2eaa669f1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 17420,
"upload_time": "2023-01-12T09:30:03",
"upload_time_iso_8601": "2023-01-12T09:30:03.806849Z",
"url": "https://files.pythonhosted.org/packages/5f/71/af125d17bbe78329c22a5f1f2f1bb2cc8b5c76fad6dbebfffaac56823b3f/rum_auto_sender-0.1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-12 09:30:03",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "liujuanjuan1984",
"github_project": "auto_sender",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "rum-auto-sender"
}