https://github.com/codewithgodstime/hng-number-classification-api
https://github.com/codewithgodstime/hng-number-classification-api
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/codewithgodstime/hng-number-classification-api
- Owner: codeWithGodstime
- Created: 2025-02-02T19:56:16.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-02-04T22:38:14.000Z (4 months ago)
- Last Synced: 2025-05-07T18:16:21.120Z (14 days ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Testing Number Classification API
## Overview
An API that takes a number and returns interesting mathematical properties about it, along with a fun fact.## Requirements
- Python 3.8+
- FastAPI
- requests## Installation
1. Clone the repository:```sh
git clone https://github.com/yourusername/number-classification-api.git
cd number-classification-api
```2. Create a virtual environment and activate it:
```sh
python -m venv venv
source venv/bin/activate # On Windows use: venv\Scripts\activate
```
3. Install dependencies:
```
pip install -r requirements.txt
```
4. Run the Server
```sh
uvicorn main:app --host 0.0.0.0 --port 8000
```