Last active
February 13, 2022 20:58
-
-
Save Mgancita/07969d2f287cfd605d47d7ba396b7fdd to your computer and use it in GitHub Desktop.
Typer Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import typer | |
def main(name: str): | |
print(f"Hello {name}") | |
if __name__ == "__main__": | |
typer.run(main) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> python typer-example.py Marco | |
Hello Marco |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment