Skip to content

agent3dev/allBerryStats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Poke-berries statistics API.

This API allows for the retrieval of berries from the pokeapi and calculation of some basic statistics. And the showcase of a histogram graph

Installation

  1. Clone the repository:
   git clone https://github.com/agent3dev/allBerryStats.git

Create a virtual environment:

python -m venv venv

Activate the virtual environment:

For Windows:

.\venv\Scripts\activate

For macOS and Linux:

source venv/bin/activate

Install the required dependencies:

pip install -r requirements.txt

To launch the api execute the command:

./allBerryStats/venv/bin/python ./allBerryStats/main.py 

Adjusting the routes if necessary.

The following endpoints are supported:

GET /allBerryStats

GET /histogram

To launch the API tests execute the command:

./allBerryStats/venv/bin/pytest ./allBerryStats/test_berries.py

Adjusting the routes if necessary.

You can check out the API live on Python Anywhere:

http://edgarrivera.pythonanywhere.com/
http://edgarrivera.pythonanywhere.com/allBerryStats
http://edgarrivera.pythonanywhere.com/histogram

About

a Poke-berries statistics API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages