Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Squirro text project

Setup

Download

clone the repository from github

git clone git@github.com:verthais/squirro-task.git

Environment

python -m virtualenv env-squirro

then activate virtual environment

Windows

env-squirro\Scripts\activate

Linux

. env-squirro/bin/activate

Dependencies

Upgrade pip just in case

python -m pip install --upgrade pip

then install all the dependencies

python -m pip -r requirements.txt

Launch the tests

Run in the main folder

python -m pytest

Launch the flask server

python ./app.py

Api

Application exposes three endpoints

Request:

GET /text/{id}

Response:

{
    "text_id": string,
    "text": string,
}

Request:

POST /text {'text': 'content'}

Response:

{
    "text_id": string,
}

Request:

GET /summary/{text_id}

Response:

{
    "id": string,
    "summary": string,
    "text_id": string,
}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages