Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rand-net/visa-cli
A python script to lookup Passport Index Dataset
https://github.com/rand-net/visa-cli
passport travel visa visa-requirements
Last synced: 12 days ago
JSON representation
A python script to lookup Passport Index Dataset
- Host: GitHub
- URL: https://github.com/rand-net/visa-cli
- Owner: rand-net
- License: mit
- Created: 2021-03-17T16:11:07.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-05T15:59:47.000Z (over 2 years ago)
- Last Synced: 2024-11-01T06:34:10.178Z (19 days ago)
- Topics: passport, travel, visa, visa-requirements
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 20
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# visa-cli
A CLI app to lookup [Passport Index](https://www.passportindex.org) based on
https://github.com/ilyankou/passport-index-dataset![PyPI](https://img.shields.io/pypi/v/visa-cli?style=flat-square)
![GitHub](https://img.shields.io/github/license/rand-net/visa-cli?style=flat-square)## Installation
```
pip install visa-cli```
## Usage
```
usage: visa-cli [-h] [-d DESTINATION_COUNTRY] [-f] [-r] [-o] [-e] [-n] [-c]
[-i] [-l RESIDENT_COUNTRIES]
resident_countrypositional arguments:
resident_country Current Resident Countryoptional arguments:
-h, --help show this help message and exit
-d DESTINATION_COUNTRY, --destination-country DESTINATION_COUNTRY
Destination Country
-f, --visa-free Countries not requiring Visa
-r, --visa-required Countries requiring Visa
-o, --visa-on-arrival
Countries offering Visa on arrival
-e, --eta Countries offering Electronic Travel Authority
-n, --visa-free-days Countries offering Visa free days
-c, --covid-ban Countries not offering Visa due to Covid-19
-i, --interactive Interactive Prompt
-l RESIDENT_COUNTRIES, --resident-countries RESIDENT_COUNTRIES
A list of Resident Countries in addition to the
Current Resident Country. Format argument in a comma-
delimited string "Israel, Russia, China"```
* Lookup on an interactive prompt
```
$ visa-cli -i Vatican__ __ ___ ____ _ ____ _ ___
\ \ / /|_ _|/ ___| / \ / ___|| | |_ _|
\ \ / / | | \___ \ / _ \ _____ | | | | | |
\ V / | | ___) | / ___ \ |_____|| |___ | |___ | |
\_/ |___||____/ /_/ \_\ \____||_____||___|Downloading Visa data...
Press Any Key to Exit!
Destination Country:Italy
90Destination Country:United States
visa requiredDestination Country:Romania
90Destination Country:_
Albania
Algeria
Andorra```
* Lookup for a particular resident and destination Country.
```
$ visa-cli Vatican -d Russia__ __ ___ ____ _ ____ _ ___
\ \ / /|_ _|/ ___| / \ / ___|| | |_ _|
\ \ / / | | \___ \ / _ \ _____ | | | | | |
\ V / | | ___) | / ___ \ |_____|| |___ | |___ | |
\_/ |___||____/ /_/ \_\ \____||_____||___|Downloading Visa data...
╒═════╤═══════════════════════╤═══════════╕
│ │ Destination Country │ Status │
╞═════╪═══════════════════════╪═══════════╡
│ 144 │ Russia │ covid ban │
╘═════╧═══════════════════════╧═══════════╛```
* Lookup for a group of resident Countries.
```
$ visa-cli Israel -l "Germany, Austria, India" -d Canada__ __ ___ ____ _ ____ _ ___
\ \ / /|_ _|/ ___| / \ / ___|| | |_ _|
\ \ / / | | \___ \ / _ \ _____ | | | | | |
\ V / | | ___) | / ___ \ |_____|| |___ | |___ | |
\_/ |___||____/ /_/ \_\ \____||_____||___|Downloading Visa data...
Visa Status for various Resident Countries
╒════╤════════════════════╤═══════════════════════╤═══════════╕
│ │ Resident Country │ Destination Country │ Status │
╞════╪════════════════════╪═══════════════════════╪═══════════╡
│ 0 │ Israel │ Canada │ covid ban │
├────┼────────────────────┼───────────────────────┼───────────┤
│ 1 │ Germany │ Canada │ covid ban │
├────┼────────────────────┼───────────────────────┼───────────┤
│ 2 │ Austria │ Canada │ covid ban │
├────┼────────────────────┼───────────────────────┼───────────┤
│ 3 │ India │ Canada │ covid ban │
╘════╧════════════════════╧═══════════════════════╧═══════════╛```