Skip to main content

Filekit

简易使用 Python 的文件读写内置模块,针对单词读写操作。省去 open 和 close。

介绍

def read(file_name, encoding='utf-8'):
    """读取文本文件全部内容"""
    file = open(file_name, mode='r', encoding=encoding)
    text = file.read()
    file.close()
    return text

如果需要相对复杂操作,请使用原生的 Python 内置读写模块,以获得更可靠和高效的处理。

安装

使用以下命令安装 Filekit:

pip install Filekit

Metadata

Release files for FileKit 1.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for FileKit 1.0.7
File Size Uploaded Provenance
FileKit-1.0.7.tar.gz 1.8 kB Without provenance Details

Release files / FileKit-1.0.7.tar.gz

Download URL FileKit-1.0.7.tar.gz
Size 1.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f3adcf4a4421c397d123afe60e1fe47e1a9a3532d2621bbd7f3bcc07ac44c016
BLAKE2b-256 checksum
How to use checksums
deb865876a2df9fdf5f1604dbeb9182b24f9b48fc2dc08b7619f04233af0cd5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Security for FileKit 1.0.7

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page