README
SETUP
pip install -U single_process
USE
Limit python script just run a single process, support python3
Use only need to directly import single_process.init module (no need for any function call)
import single_process.init
Of course, you can also manually call the single_process function
from single_process import single_process
single_process()
def main():
from time import sleep
sleep(6000)
if __name__ == "__main__":
main()
中文说明
安装
pip install -U single_process
使用
限制一个python脚本只运行一个进程,支持python3 使用只需要直接 import single_process.init 模块(不需要任何函数调用)
import single_process.init
当然,你也可以手工调用 single_process 函数
from single_process import single_process
single_process()
def main():
from time import sleep
sleep(6000)
if __name__ == "__main__":
main()
Metadata
Release files for single_process 2.4.1
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 | |
|---|---|---|---|---|
| single_process-2.4.1.tar.gz | 2.4 kB | Without provenance | Details |
Release files / single_process-2.4.1.tar.gz
| Download URL | single_process-2.4.1.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6e548dc4aeb1a62e9d0662efa5ca6ac14a92961d51bf466b8214ad6b031768fa
|
|
BLAKE2b-256 checksum How to use checksums |
85e1de76f978d3c8e1ff1bf36176ca7bc1af2611b510ec523ea86ddf11c423fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for single_process 2.4.1
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.