Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/perylemke/swcli

A simple CLI to consult Star Wars infos in StarWars API (https://swapi.dev/api/).
https://github.com/perylemke/swcli

Last synced: 12 days ago
JSON representation

A simple CLI to consult Star Wars infos in StarWars API (https://swapi.dev/api/).

Awesome Lists containing this project

README

        

# Star Wars CLI (swcli)

This CLI give the possibility to do a queries in [Star Wars API](https://swapi.dev/documentation) and returns a JSON in a terminal.

## Install

```
$ pip install swcli
```

## Queries Objects

- films
- people
- planets
- species
- starships
- vehicles

Ever object you can search by the name. Like below:

```
$ swcli people --name=Luke
Name: Luke Skywalker
Height: 1.72
Mass: 77
Hair color: blond
Skin color: fair
Eye color: blue
Birth year: 19BBY
Gender: male
Homeworld: Tatooine
Films: ['A New Hope', 'The Empire Strikes Back', 'Return of the Jedi', 'Revenge of the Sith']
Species: []
Vehicles: ['Snowspeeder', 'Imperial Speeder Bike']
Starships: ['X-wing', 'Imperial shuttle']
```

## Tools and Libs

- Python 3.8
- Poetry
- Fire
- httpx
- PyTest

# Improvements

- Refactoring
- Implement tests
- Improve performance
- Implement CI/CD.