how can i convert my python file to cmd command that can be run from anywhere on pc
for example let's call it my_file.py
i want the user to type the file name (without needing to specify the extension) and run the file
C:\Users\alsaibi\Desktop>my_file
and then the program execute
here it just print "Hello, World"
Hello, World
i want to upload this file to pip so the user download it easily and it will be easy to use from cmd easily
i saw it being done in some other projects in github
you just use pip
and can use the command in cmd without cd or extension
i'm using windows 10
edit:
project on github that use something like that
youtube-dl work just by typing youtube-dl and arguments
i want my project to work like that
another project on github
the file execute using only the file name
1 command and the file execute and you can download it via pip