How to create Python scripts you can invoke as console commands

preview_player
Показать описание
Ever wanted to write a script and automatically deploy it so you can invoke it by just typing a simple command at the console? Python's setuptools library lets you do that with any Python package. Learn in this video how to set up a Python program to run from the command line using the entry point functionality in setuptools.

Follow InfoWorld to satisfy your tech business needs!
------------------------------­----
Рекомендации по теме
Комментарии
Автор

Well explained, appreciate the fact that you took time to add that final note, you're good at teaching and your content deserves more attention, keep it up!

mossabDiae
Автор

Hello, I have a problem. I want to run my python file from the windows console and initialise some variables like this:
file.py -i 62 -e 37

cubus
visit shbcf.ru