Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
comman line parsing
#1
what is your favorite command line parsing tool?  i doubt if i use any such tool because of the way i make commands but i decided to look over one ... hopefully the best one.  this also needs to be one that requires nothing to be installed.  it will be distributed as just one big python file to download and run.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
argparse
There is not much choice if you don't want to install anything
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#3
It's no problem to distribute something that not in the standard library,so then is Click.
Eg pip freeze > requirements.txt running this in virtual environment.
requirements.txt file will be click==6.7 then this will be installed automatic with eg running pip install my_cliapp(this is all that user do).

For user that don't even have Python,it work in same way when you Freeze the code eg with Pyinstaller.
Pyinstaller finds Click and pack to my_clikapp.exe(Windows) or my_cliapp(Linux)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [gpxpy] "Error parsing XML: not well-formed (invalid token): line 1, column 1" Winfried 5 6,669 Jan-26-2020, 01:09 AM
Last Post: Winfried
  Python file parsing, can't catch strings in new line Philia 5 3,965 Apr-29-2018, 01:09 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020