Skip to content

dsaucez/avignon18

Repository files navigation

Femto tutorial

Installing the environment

To make sure we have the right environment, we will use virtualenv.

To prepare an virtualenv:

gullinbursti:avignon18 dsa$ virtualenv venv
New python executable in /Users/dsa/Documents/inria/Cours/Avignon/2018-2019/1e_semestre_2/projet/avignon18/venv/bin/python
Installing setuptools, pip, wheel...done.
gullinbursti:avignon18 dsa$

Then we go in our virtualenv:

gullinbursti:avignon18 dsa$ source venv/bin/activate
(venv) gullinbursti:avignon18 dsa$ 

Now, every Python tuning that we will do will not affect the rest of our system.

In this project we will use the Flask microframework to create the APIs needed in our project. See src/server.py to see a basic functional system.

The best way to interact with our REST API is to use the Requests library. See src/requests.py

We put all dependencies in src/requirements.txt. To install them, we can just use pip as usual:

(venv) gullinbursti:avignon18 dsa$ pip install -r src/requirements.txt 

Voila! Now you have anything you need for the project, have fun :)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages