https://github.com/kharazi/snapp-cli
a command-line interface to get a ride with Snapp (Snapp API)
https://github.com/kharazi/snapp-cli
cli python-api
Last synced: 3 months ago
JSON representation
a command-line interface to get a ride with Snapp (Snapp API)
- Host: GitHub
- URL: https://github.com/kharazi/snapp-cli
- Owner: kharazi
- License: gpl-3.0
- Created: 2017-12-06T20:40:05.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-02T14:04:06.000Z (almost 8 years ago)
- Last Synced: 2025-03-18T09:51:37.580Z (8 months ago)
- Topics: cli, python-api
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 72
- Watchers: 3
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Snapp CLI
[](https://asciinema.org/a/4LMxOtcPPQDZQI8xpXdck1059)
`snapp-cli` is a command-line interface for [Snapp](https://en.wikipedia.org/wiki/Snapp_(company)) 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
```