pofile


Namepofile JSON
Version 0.1.3 PyPI version JSON
download
home_pagehttps://www.python-office.com/
Summarypip install pofile
upload_time2024-03-11 13:46:58
maintainer
docs_urlNone
authorCoderWanFeng
requires_python>=3.6
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <p align="center">
	👉 <a target="_blank" href="https://www.python-office.com/">项目官网:https://www.python-office.com/</a> 👈
</p>
<p align="center">
	👉 <a target="_blank" href="https://python-office-1300615378.cos.ap-chongqing.myqcloud.com/python-office.jpg">本开源项目的交流群</a> 👈
</p>



-------------------------------------------------------------------------------

## 📚简介

pofile是python自动化办公之**批量处理文件/文件夹**的代码合集。

-------------------------------------------------------------------------------

## 📦安装

### 🍊pip 自动下载&更新

```
pip install -i https://mirrors.aliyun.com/pypi/simple/ pofile -U
```

-------------------------------------------------------------------------------

## 📝功能

| 方法名            | 功能               | 视频(文档)                                              | 演示代码                                                    |
| ----------------- | ------------------ | --------------------------------------------------------- | ----------------------------------------------------------- |
| replace4filename  | 批量重命名         | [视频](https://www.bilibili.com/video/BV12r4y187Yj)       | [源码](https://github.com/CoderWanFeng/python-office/blob/master/demo/pofile/%E6%89%B9%E9%87%8F%E9%87%8D%E5%91%BD%E5%90%8D.py)   |
| search_by_content | 根据内容,查找文件 | [视频](https://www.bilibili.com/video/BV13P411n77G)       | [源码](https://github.com/CoderWanFeng/python-office/blob/master/demo/pofile/%E6%A0%B9%E6%8D%AE%E5%86%85%E5%AE%B9%EF%BC%8C%E6%9F%A5%E6%89%BE%E6%96%87%E4%BB%B6.py)   |
| group_by_name     | 自动整理文件         | [文档](https://mp.weixin.qq.com/s/AVFttFz-IjZD1Ra3K-580A) | [源码](https://github.com/CoderWanFeng/python-office/blob/master/demo/pofile/%E8%87%AA%E5%8A%A8%E6%95%B4%E7%90%86%E6%96%87%E4%BB%B6%E5%A4%B9.py)   |
| get_files         | 获取文件列表         | [视频](https://www.bilibili.com/video/BV1ua4y1M7ya)       | [源码](https://github.com/CoderWanFeng/python-office/blob/master/demo/pofile/%E6%89%B9%E9%87%8F%E8%8E%B7%E5%8F%96%E6%96%87%E4%BB%B6%E5%88%97%E8%A1%A8.py) |
| mkdir             | 新建文件夹         | [视频](https://www.bilibili.com/video/BV1ua4y1M7ya)       | [源码](https://github.com/CoderWanFeng/python-office/blob/master/demo/pofile/%E6%96%B0%E5%BB%BA%E6%96%87%E4%BB%B6%E5%A4%B9.py) |
#### 相关资料:

- [📘官网:https://www.python-office.com/](https://www.python-office.com/)
- https://github.com/CoderWanFeng/pocode
## 🏗️添砖加瓦

### 📐PR的建议

python-office欢迎任何人来添砖加瓦,贡献代码,建议提交的pr(pull request)符合一些规范,规范如下:

参与项目建设的步骤:

- 例如:你需要给python-office添加一个add方法。
    1. 你的Github账户名为:demo
    2. 于是你在./contributors新建了文件夹./demo
    3. 新建了add.py文件,编辑你的代码
    4. 编辑完成,提交pr到master分支(gitee或者GitHub,都可以)。可以注明你对自己功能的取名建议
    5. 晚枫收到后,会对各位的代码进行测试后,合并后打包上传到python官方库

### 📐代码规范

1. 注释完备,尤其每个新增的方法应按照Google Python文档规范标明方法说明、参数说明、返回值说明等信息,必要时请添加单元测试,如果愿意,也可以加上你的大名。
2. python-office的文档,需要进行格式化。注意:只能格式化你自己的代码
3. 请直接pull request到`master`分支。`master`是主分支,表示已经发布pypi库的版本。**未来参与人数增多,会开辟新的分支,请留意本文档的更新。
   **
4. 我们如果关闭了你的issue或pr,请不要诧异,这是我们保持问题处理整洁的一种方式,你依旧可以继续讨论,当有讨论结果时我们会重新打开。

### 🧬贡献代码的步骤

1. 在Gitee或者Github上fork项目到自己的repo
2. 把fork过去的项目也就是你的项目clone到你的本地
3. 修改代码
4. commit后push到自己的库
5. 登录Gitee或Github在你首页可以看到一个 pull request 按钮,点击它,填写一些说明信息,然后提交到master分支即可。
6. 等待维护者合并

### 🐞提供bug反馈或建议

提交问题反馈时,请务必填写和python-office代码本身有关的问题,不进行有关python学习,甚至是个人练习的知识答疑和讨论。

- [Github issue](https://github.com/CoderWanFeng/pofile/issues)

-------------------------------------------------------------------------------

## 📌联系作者

<p align="center" id='开源交流群-banner'>
<a target="_blank" href='https://python-office-1300615378.cos.ap-chongqing.myqcloud.com/python-office.jpg'>
<img src="https://python-office-1300615378.cos.ap-chongqing.myqcloud.com/python-office-qr.jpg" width="100%"/>
</a> 
</p>

            

Raw data

            {
    "_id": null,
    "home_page": "https://www.python-office.com/",
    "name": "pofile",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "",
    "author": "CoderWanFeng",
    "author_email": "1957875073@qq.com",
    "download_url": "https://files.pythonhosted.org/packages/16/c1/07a2243cc39d3dd0082d98454b8c57624c41837dc5cd49e202ecd230801a/pofile-0.1.3.tar.gz",
    "platform": "any",
    "description": "<p align=\"center\">\r\n\t\ud83d\udc49 <a target=\"_blank\" href=\"https://www.python-office.com/\">\u9879\u76ee\u5b98\u7f51\uff1ahttps://www.python-office.com/</a> \ud83d\udc48\r\n</p>\r\n<p align=\"center\">\r\n\t\ud83d\udc49 <a target=\"_blank\" href=\"https://python-office-1300615378.cos.ap-chongqing.myqcloud.com/python-office.jpg\">\u672c\u5f00\u6e90\u9879\u76ee\u7684\u4ea4\u6d41\u7fa4</a> \ud83d\udc48\r\n</p>\r\n\r\n\r\n\r\n-------------------------------------------------------------------------------\r\n\r\n## \ud83d\udcda\u7b80\u4ecb\r\n\r\npofile\u662fpython\u81ea\u52a8\u5316\u529e\u516c\u4e4b**\u6279\u91cf\u5904\u7406\u6587\u4ef6/\u6587\u4ef6\u5939**\u7684\u4ee3\u7801\u5408\u96c6\u3002\r\n\r\n-------------------------------------------------------------------------------\r\n\r\n## \ud83d\udce6\u5b89\u88c5\r\n\r\n### \ud83c\udf4apip \u81ea\u52a8\u4e0b\u8f7d&\u66f4\u65b0\r\n\r\n```\r\npip install -i https://mirrors.aliyun.com/pypi/simple/ pofile -U\r\n```\r\n\r\n-------------------------------------------------------------------------------\r\n\r\n## \ud83d\udcdd\u529f\u80fd\r\n\r\n| \u65b9\u6cd5\u540d            | \u529f\u80fd               | \u89c6\u9891\uff08\u6587\u6863\uff09                                              | \u6f14\u793a\u4ee3\u7801                                                    |\r\n| ----------------- | ------------------ | --------------------------------------------------------- | ----------------------------------------------------------- |\r\n| replace4filename  | \u6279\u91cf\u91cd\u547d\u540d         | [\u89c6\u9891](https://www.bilibili.com/video/BV12r4y187Yj)       | [\u6e90\u7801](https://github.com/CoderWanFeng/python-office/blob/master/demo/pofile/%E6%89%B9%E9%87%8F%E9%87%8D%E5%91%BD%E5%90%8D.py)   |\r\n| search_by_content | \u6839\u636e\u5185\u5bb9\uff0c\u67e5\u627e\u6587\u4ef6 | [\u89c6\u9891](https://www.bilibili.com/video/BV13P411n77G)       | [\u6e90\u7801](https://github.com/CoderWanFeng/python-office/blob/master/demo/pofile/%E6%A0%B9%E6%8D%AE%E5%86%85%E5%AE%B9%EF%BC%8C%E6%9F%A5%E6%89%BE%E6%96%87%E4%BB%B6.py)   |\r\n| group_by_name     | \u81ea\u52a8\u6574\u7406\u6587\u4ef6         | [\u6587\u6863](https://mp.weixin.qq.com/s/AVFttFz-IjZD1Ra3K-580A) | [\u6e90\u7801](https://github.com/CoderWanFeng/python-office/blob/master/demo/pofile/%E8%87%AA%E5%8A%A8%E6%95%B4%E7%90%86%E6%96%87%E4%BB%B6%E5%A4%B9.py)   |\r\n| get_files         | \u83b7\u53d6\u6587\u4ef6\u5217\u8868         | [\u89c6\u9891](https://www.bilibili.com/video/BV1ua4y1M7ya)       | [\u6e90\u7801](https://github.com/CoderWanFeng/python-office/blob/master/demo/pofile/%E6%89%B9%E9%87%8F%E8%8E%B7%E5%8F%96%E6%96%87%E4%BB%B6%E5%88%97%E8%A1%A8.py) |\r\n| mkdir             | \u65b0\u5efa\u6587\u4ef6\u5939         | [\u89c6\u9891](https://www.bilibili.com/video/BV1ua4y1M7ya)       | [\u6e90\u7801](https://github.com/CoderWanFeng/python-office/blob/master/demo/pofile/%E6%96%B0%E5%BB%BA%E6%96%87%E4%BB%B6%E5%A4%B9.py) |\r\n#### \u76f8\u5173\u8d44\u6599\uff1a\r\n\r\n- [\ud83d\udcd8\u5b98\u7f51\uff1ahttps://www.python-office.com/](https://www.python-office.com/)\r\n- https://github.com/CoderWanFeng/pocode\r\n## \ud83c\udfd7\ufe0f\u6dfb\u7816\u52a0\u74e6\r\n\r\n### \ud83d\udcd0PR\u7684\u5efa\u8bae\r\n\r\npython-office\u6b22\u8fce\u4efb\u4f55\u4eba\u6765\u6dfb\u7816\u52a0\u74e6\uff0c\u8d21\u732e\u4ee3\u7801\uff0c\u5efa\u8bae\u63d0\u4ea4\u7684pr\uff08pull request\uff09\u7b26\u5408\u4e00\u4e9b\u89c4\u8303\uff0c\u89c4\u8303\u5982\u4e0b\uff1a\r\n\r\n\u53c2\u4e0e\u9879\u76ee\u5efa\u8bbe\u7684\u6b65\u9aa4\uff1a\r\n\r\n- \u4f8b\u5982\uff1a\u4f60\u9700\u8981\u7ed9python-office\u6dfb\u52a0\u4e00\u4e2aadd\u65b9\u6cd5\u3002\r\n    1. \u4f60\u7684Github\u8d26\u6237\u540d\u4e3a\uff1ademo\r\n    2. \u4e8e\u662f\u4f60\u5728./contributors\u65b0\u5efa\u4e86\u6587\u4ef6\u5939./demo\r\n    3. \u65b0\u5efa\u4e86add.py\u6587\u4ef6\uff0c\u7f16\u8f91\u4f60\u7684\u4ee3\u7801\r\n    4. \u7f16\u8f91\u5b8c\u6210\uff0c\u63d0\u4ea4pr\u5230master\u5206\u652f\uff08gitee\u6216\u8005GitHub\uff0c\u90fd\u53ef\u4ee5\uff09\u3002\u53ef\u4ee5\u6ce8\u660e\u4f60\u5bf9\u81ea\u5df1\u529f\u80fd\u7684\u53d6\u540d\u5efa\u8bae\r\n    5. \u665a\u67ab\u6536\u5230\u540e\uff0c\u4f1a\u5bf9\u5404\u4f4d\u7684\u4ee3\u7801\u8fdb\u884c\u6d4b\u8bd5\u540e\uff0c\u5408\u5e76\u540e\u6253\u5305\u4e0a\u4f20\u5230python\u5b98\u65b9\u5e93\r\n\r\n### \ud83d\udcd0\u4ee3\u7801\u89c4\u8303\r\n\r\n1. \u6ce8\u91ca\u5b8c\u5907\uff0c\u5c24\u5176\u6bcf\u4e2a\u65b0\u589e\u7684\u65b9\u6cd5\u5e94\u6309\u7167Google Python\u6587\u6863\u89c4\u8303\u6807\u660e\u65b9\u6cd5\u8bf4\u660e\u3001\u53c2\u6570\u8bf4\u660e\u3001\u8fd4\u56de\u503c\u8bf4\u660e\u7b49\u4fe1\u606f\uff0c\u5fc5\u8981\u65f6\u8bf7\u6dfb\u52a0\u5355\u5143\u6d4b\u8bd5\uff0c\u5982\u679c\u613f\u610f\uff0c\u4e5f\u53ef\u4ee5\u52a0\u4e0a\u4f60\u7684\u5927\u540d\u3002\r\n2. python-office\u7684\u6587\u6863\uff0c\u9700\u8981\u8fdb\u884c\u683c\u5f0f\u5316\u3002\u6ce8\u610f\uff1a\u53ea\u80fd\u683c\u5f0f\u5316\u4f60\u81ea\u5df1\u7684\u4ee3\u7801\r\n3. \u8bf7\u76f4\u63a5pull request\u5230`master`\u5206\u652f\u3002`master`\u662f\u4e3b\u5206\u652f\uff0c\u8868\u793a\u5df2\u7ecf\u53d1\u5e03pypi\u5e93\u7684\u7248\u672c\u3002**\u672a\u6765\u53c2\u4e0e\u4eba\u6570\u589e\u591a\uff0c\u4f1a\u5f00\u8f9f\u65b0\u7684\u5206\u652f\uff0c\u8bf7\u7559\u610f\u672c\u6587\u6863\u7684\u66f4\u65b0\u3002\r\n   **\r\n4. \u6211\u4eec\u5982\u679c\u5173\u95ed\u4e86\u4f60\u7684issue\u6216pr\uff0c\u8bf7\u4e0d\u8981\u8be7\u5f02\uff0c\u8fd9\u662f\u6211\u4eec\u4fdd\u6301\u95ee\u9898\u5904\u7406\u6574\u6d01\u7684\u4e00\u79cd\u65b9\u5f0f\uff0c\u4f60\u4f9d\u65e7\u53ef\u4ee5\u7ee7\u7eed\u8ba8\u8bba\uff0c\u5f53\u6709\u8ba8\u8bba\u7ed3\u679c\u65f6\u6211\u4eec\u4f1a\u91cd\u65b0\u6253\u5f00\u3002\r\n\r\n### \ud83e\uddec\u8d21\u732e\u4ee3\u7801\u7684\u6b65\u9aa4\r\n\r\n1. \u5728Gitee\u6216\u8005Github\u4e0afork\u9879\u76ee\u5230\u81ea\u5df1\u7684repo\r\n2. \u628afork\u8fc7\u53bb\u7684\u9879\u76ee\u4e5f\u5c31\u662f\u4f60\u7684\u9879\u76eeclone\u5230\u4f60\u7684\u672c\u5730\r\n3. \u4fee\u6539\u4ee3\u7801\r\n4. commit\u540epush\u5230\u81ea\u5df1\u7684\u5e93\r\n5. \u767b\u5f55Gitee\u6216Github\u5728\u4f60\u9996\u9875\u53ef\u4ee5\u770b\u5230\u4e00\u4e2a pull request \u6309\u94ae\uff0c\u70b9\u51fb\u5b83\uff0c\u586b\u5199\u4e00\u4e9b\u8bf4\u660e\u4fe1\u606f\uff0c\u7136\u540e\u63d0\u4ea4\u5230master\u5206\u652f\u5373\u53ef\u3002\r\n6. \u7b49\u5f85\u7ef4\u62a4\u8005\u5408\u5e76\r\n\r\n### \ud83d\udc1e\u63d0\u4f9bbug\u53cd\u9988\u6216\u5efa\u8bae\r\n\r\n\u63d0\u4ea4\u95ee\u9898\u53cd\u9988\u65f6\uff0c\u8bf7\u52a1\u5fc5\u586b\u5199\u548cpython-office\u4ee3\u7801\u672c\u8eab\u6709\u5173\u7684\u95ee\u9898\uff0c\u4e0d\u8fdb\u884c\u6709\u5173python\u5b66\u4e60\uff0c\u751a\u81f3\u662f\u4e2a\u4eba\u7ec3\u4e60\u7684\u77e5\u8bc6\u7b54\u7591\u548c\u8ba8\u8bba\u3002\r\n\r\n- [Github issue](https://github.com/CoderWanFeng/pofile/issues)\r\n\r\n-------------------------------------------------------------------------------\r\n\r\n## \ud83d\udccc\u8054\u7cfb\u4f5c\u8005\r\n\r\n<p align=\"center\" id='\u5f00\u6e90\u4ea4\u6d41\u7fa4-banner'>\r\n<a target=\"_blank\" href='https://python-office-1300615378.cos.ap-chongqing.myqcloud.com/python-office.jpg'>\r\n<img src=\"https://python-office-1300615378.cos.ap-chongqing.myqcloud.com/python-office-qr.jpg\" width=\"100%\"/>\r\n</a> \r\n</p>\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "pip install pofile",
    "version": "0.1.3",
    "project_urls": {
        "Bug Tracker": "https://github.com/CoderWanFeng/pofile/issues",
        "Documentation": "https://github.com/CoderWanFeng/pofile/blob/master/README.md",
        "Homepage": "https://www.python-office.com/",
        "Source Code": "https://github.com/CoderWanFeng/pofile"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "707156aff719cbe2a7edc60a96ffa1e95e17cb97e4d48049ba1a12df03537735",
                "md5": "dc372803ee90f6f2517118b260ecf369",
                "sha256": "db42ce308ecc57fe47ab7df6480173d091bab2ad60cf288f798d7c7c8310df2f"
            },
            "downloads": -1,
            "filename": "pofile-0.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "dc372803ee90f6f2517118b260ecf369",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 14480,
            "upload_time": "2024-03-11T13:46:56",
            "upload_time_iso_8601": "2024-03-11T13:46:56.179141Z",
            "url": "https://files.pythonhosted.org/packages/70/71/56aff719cbe2a7edc60a96ffa1e95e17cb97e4d48049ba1a12df03537735/pofile-0.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "16c107a2243cc39d3dd0082d98454b8c57624c41837dc5cd49e202ecd230801a",
                "md5": "076964a1ba7b823c714b3acf5aa344f8",
                "sha256": "9159de50b59a3f6da7bf24d4c0a4343aa17118c2cf68ad4ed48a5957e5ee6efd"
            },
            "downloads": -1,
            "filename": "pofile-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "076964a1ba7b823c714b3acf5aa344f8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 13803,
            "upload_time": "2024-03-11T13:46:58",
            "upload_time_iso_8601": "2024-03-11T13:46:58.173550Z",
            "url": "https://files.pythonhosted.org/packages/16/c1/07a2243cc39d3dd0082d98454b8c57624c41837dc5cd49e202ecd230801a/pofile-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-11 13:46:58",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "CoderWanFeng",
    "github_project": "pofile",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pofile"
}
        
Elapsed time: 0.23257s