Skip to content

Instantly share code, notes, and snippets.

@sudheesh001
Last active December 8, 2015 18:41
Show Gist options
  • Save sudheesh001/0ce9692f328107c0ac8c to your computer and use it in GitHub Desktop.
Save sudheesh001/0ce9692f328107c0ac8c to your computer and use it in GitHub Desktop.

Loklak Command line tool

Argparse library - https://docs.python.org/2/library/argparse.html#module-argparse

Reference to argparse library - https://docs.python.org/2/library/argparse.html#usage

Command line arguments listings - https://github.com/loklak/python-loklak-api/blob/master/loklak.py#L226-L236

Intended use

loklak -s <search parameters> or loklak --search <search params>

loklak -h or loklak --hello

loklak -p or loklak --peers

This should make it clear as to how the library has to be used as a command line tool.

####### Note

For the search task, assume that its only the query q parameters that are going to be sent as arguments by the user and not the since and until

Similarly for GeoCode assume that a country/place or a list of places will be passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment