prettier test for main
Project description
A prettier way to test for main.
is_main()
Instead of the not-so-pretty:
if __name__ == "__main__":
main()
pip install ismain from PyPI:
$pip install ismain
And use is_main() from ismain:
from ismain import is_main
if is_main():
main()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file ismain-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: ismain-0.0.4-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ec9056df9d942088f8572248aac7247842fcc65d400424aff9eeaa7e6a78a64 |
|
MD5 | 7134c3b249dcc0999461862d0bd7682a |
|
BLAKE2b-256 | 65108cf3d4c7ece958c1b532075f84377020fa6fdc13ef72a068ffb1df019426 |