Metadata-Version: 2.1
Name: ismain
Version: 0.0.3
Summary: prettier test for main
Home-page: https://github.com/jamesabel/ismain
Author: James Abel
Author-email: j@abel.co
License: MIT License
Download-URL: https://github.com/jamesabel/ismain/archive/master.zip
Keywords: utility
Platform: UNKNOWN
Description-Content-Type: text/x-rst


Sundry
======

A prettier way to test for `main`.

is_main()
---------

Instead of the not-so-pretty:

.. code-block:: python

    if __name__ == "__main__":
        main()


pip install `ismain` from PyPI:

.. code-block:: shell

    $pip install ismain

And use ``is_main()`` from `ismain`:

.. code-block:: python

    from ismain import is_main

    if is_main():
        main()



