https://github.com/dogukanurker/astronomicaldistanceconverterapi
Astronomical unit converter API built with FastAPI.🌌
https://github.com/dogukanurker/astronomicaldistanceconverterapi
Last synced: 3 months ago
JSON representation
Astronomical unit converter API built with FastAPI.🌌
- Host: GitHub
- URL: https://github.com/dogukanurker/astronomicaldistanceconverterapi
- Owner: DogukanUrker
- License: mit
- Created: 2023-09-06T10:37:21.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-07T20:10:15.000Z (over 1 year ago)
- Last Synced: 2025-03-27T02:09:05.741Z (3 months ago)
- Language: Python
- Homepage:
- Size: 53.9 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- Contributing: docs/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: docs/CODE_OF_CONDUCT.md
- Security: docs/SECURITY.md
Awesome Lists containing this project
README
# AstronomicalDistanceConverterAPI
Astronomical unit converter API built with FastAPI.🌌
### [Demo Video 📺](https://youtu.be/-jrgWP_N6xk)
## Requirements 📦
- FastAPI
- Uvicorn## Installation ⬇️
download source code from Github 💾
`git clone https://github.com/DogukanUrker/AstronomicalDistanceConverterAPI.git`go to directory 📁
`cd AstronomicalDistanceConverterAPI`install requirements.txt 🔽
`pip install -r requirements.txt`it's ready to run 🎉
`python main.py`## Requests 📚
Convert X to Y.
```
/x/y/{int}
```
X and Y can be:
- astronomical-unit / au
- kilometer / km
- light-minute / lm
- light-second / ls
- light-year / ly
- miles / mi
- parsec / pc
Note:
If X value is abbreviation then Y value must be abbreviated to, same for full unit names.Examples:
```
/ly/km/1
``````
9460730472580.8
``````
/astronomical-unit/light-second/1
``````
499.00478
``````
/parsec/mi/1
``````json
{
"detail": "Not Found"
}
```### Contributors 💕
### Support 💰