Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sundry, version 0.22.0
Filename, size File type Python version Upload date Hashes
Filename, size sundry-0.22.0-py3-none-any.whl (16.5 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page