search4file
pip install search4file
你好,我是Python程序员晚枫。这个库实现的功能:根据文件内容,搜索文件位置。
已经集成到python-office里了👉视频教程 开发者微信:CoderWanFeng
功能
- 通过内容查找文件
- 通过名称查找图片
- ocr识别图片内容
- 通过字幕、画面查找视频
To List
有3类并行推进的任务:
1、查找逻辑
3个按照内容查找的接口,需要实现
接口传送门 负责开发:@yinzeyuan
def search_pdf_file(self, file_path, search_content):
pass
def search_ppt_file(self, file_path, search_content):
pass
def search_excel_file(self, file_path, search_content):
pass
1个按照文件名查找的接口,需要实现
接口传送门 负责开发:@yinzeyuan
class SearchByName():
# 搜索文件名的逻辑
def search_files(self, search_path, search_content):
pass
2、优化逻辑
优化内容,目前主要有:
- 目前的word查找基于python-docx库,而这个库不支持mac、linux库。
- 考虑改为解压docx的方式,对解压后的文件进行查找。
- 目前对文件的查找,采用单线程同步遍历的方式,速度太慢。
- 考虑改为进程 + 协程的异步方式,提高查询效率。
- 增加OCR自动根据指定的图片内容,进行图片搜索。
- 例如:用户输入:河流,查找出电脑里所有和河流有关的图片
- 识别出视频里的内容。
- 例如:用户输入:大山,查找出某个视频里,所有和大山有关的画面、字幕
3、交流群
Metadata
Release files for search4file 0.1.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| search4file-0.1.15.tar.gz | 15.9 kB | Without provenance | Details for search4file-0.1.15.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| search4file-0.1.15-py3-none-any.whl | Python 3 | none | any | Details for search4file-0.1.15-py3-none-any.whl |
Total release size: 32.0 kB
Release files / search4file-0.1.15.tar.gz
| Download URL | search4file-0.1.15.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a72d136a2b0e6cf88b76f4d09f0eea73fe4a30b7373d88377214fc4984d5ba4
|
|
BLAKE2b-256 checksum How to use checksums |
b2c415c761d85032ca9efd33dbaf9216ace8e83a1b3c25942aef39aaf9598e9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.5rc1
|
Release files / search4file-0.1.15-py3-none-any.whl
| Download URL | search4file-0.1.15-py3-none-any.whl |
|---|---|
| Size | 16.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62b55a4ea7ee2263e39c5e388e61d1eebd7d8ab0dfa238256c8e699b749232c1
|
|
BLAKE2b-256 checksum How to use checksums |
de3db59d5642004903817bbdc6ade7786c706f7c9106654171969fe6a05cc216
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.5rc1
|
Security for search4file 0.1.15
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.