Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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/).
- Host: GitHub
- URL: https://github.com/perylemke/swcli
- Owner: perylemke
- License: apache-2.0
- Created: 2021-10-14T14:34:15.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-05T17:45:42.000Z (about 3 years ago)
- Last Synced: 2024-08-01T22:55:16.663Z (3 months ago)
- Language: Python
- Size: 62.5 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
- vehiclesEver 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.