No project description provided
Project description
main-entrypoint
A decorator to avoid if __name__ == "__main__":
from main_entrypoint import entrypoint
@entrypoint
def main():
print("Hello World")
$ python my_script.py
Hello World
$ python -c "import my_script"
# no output
Installation
pip install main-entrypoint
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
main-entrypoint-0.1.1.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for main_entrypoint-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9385960f0a1d37395f7e4443962275a0fb12cc7c5c036ed2a6c2702bf65162c5 |
|
MD5 | 1f1e183ccc87458fa4638438cb5e47d8 |
|
BLAKE2b-256 | 34e69ca98f196718ae2e448969632259160937409863e59383297cf0ad1463f6 |