miscellaneous code
Project description
Miscellaneous Code
is_main()
Instead of the not-so-pretty:
if __name__ == "__main__":
main()
pip install sundry from PyPI:
$pip install sundry
And use is_main() from sundry:
from sundry import is_main
if is_main():
main()
Project details
Release history Release notifications | RSS feed
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
sundry-0.23.1-py3-none-any.whl
(18.6 kB
view details)
File details
Details for the file sundry-0.23.1-py3-none-any.whl
.
File metadata
- Download URL: sundry-0.23.1-py3-none-any.whl
- Upload date:
- Size: 18.6 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.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09c9c873eec1036de49c48fd944cdc6aad23e9a1014df3944f7e3c6e5caadc7c |
|
MD5 | 068fa0886281a6f65eb7438935914011 |
|
BLAKE2b-256 | 5a39f0455f5307a2429d02bdfa95ba5cfcf6884a34ffab7c0a360a5d4c14a8f2 |