Skip to content

a command-line interface to get a ride with Snapp (Snapp API)

License

Notifications You must be signed in to change notification settings

kharazi/snapp-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snapp CLI

asciicast

snapp-cli is a command-line interface for Snapp APIs that emphasizes your PRIVACY:). request a ride with Snapp like a boss!

Installation

$ cd mapscii
$ npm install -g
$ cd ..
$ pip install -r requirements.pip

Usage

Usage: ride.py [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  login  Login to your Snapp account
  price  Calculate price of a trip
  ride   Compelete this function to take a ride with...

for example to caclulate price of with geo points using this:

$ python ride.py price --source 35.70071439856985 51.39509439468384 --destination 35.70364178950393 51.39932155609131

+-----------+-------+----------+
| Service   | Price | Distance |
+-----------+-------+----------+
| اسنپ اکو  | 40000 | 731      |
| اسنپ رُز  | 40000 | 731      |
| اسنپ باکس | 30000 | 731      |
| اسنپ بایک | 45000 | 731      |
+-----------+-------+----------+

and for try it using command-line map type:

$ python ride.py ride --map

About

a command-line interface to get a ride with Snapp (Snapp API)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages