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.2.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for main_entrypoint-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0367fba0bf17478599dcbba7332f65a4daf6f55f3b1b9319a94e378af37432ea |
|
MD5 | 7b602b0075787b18e2c72d696369ee80 |
|
BLAKE2b-256 | af2e6f02a79fe1a0ca1f36c0301d50adb533a598e0d9da58b4e87f79d66802ac |