require-python-3 contains this code:
if sys.version_info[0] != 3:
print("This script requires Python 3")
exit()
How to use
Install package
Either:
Add require-python-3 to your requirements.txt file and run pip3 install -r requirements.txt
Or run directly: pip3 install require-python-3
Or download require_python_3.py directly and put it next to your script sources
Include module
Add import require_python_3 to your scripts that require python 3.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
require-python-3-1.tar.gz
(1.4 kB
view details)
File details
Details for the file require-python-3-1.tar.gz.
File metadata
- Download URL: require-python-3-1.tar.gz
- Upload date:
- Size: 1.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25b741f8cf8293c4952635725106901ac59c1311153de6376a3116dec50a2046
|
|
| MD5 |
1d346f54b6cb21ac93496e4140e5dedd
|
|
| BLAKE2b-256 |
2576e18099108e3028ee0ec33b727d08427eabf6d6d405059f05f127bcf4a063
|