Code for the server I use to get all data I need from Nadeo API
- Install python 3.11
sudo apt install python3.11
- Install virtualenv
sudo apt install virtualenv
- Create virtual environment
virtualenv -p /usr/bin/python3.11 env
- Activate virtual environment
source env/bin/activate
- Install all requirements of the server
pip install -r requirements.txt
- Create src/utils/authenticate.txt file
This file only contains one line : email@adress.com:password
Email and password are the identifiers of the Ubisoft connect account you want to use
- Start server
python App.py
- Install build
pip install -r src/utils/requirements.txt
- Build a wheel
python -m build --wheel
- Find the right
.whl
file
Available at
dist/{project name}-{version}-{python tag} -{abi tag}-{platform tag}.whl
-
Copy this file to your production machine
-
Set up a new virtualenv
virtualenv -p /usr/bin/python3.11 env
source env/bin/activate
- Install your wheel file
pip install your-wheel-file.whl
- Run your WSGI server with
waitress
waitress-serve --call 'flaskr:create_app'
2023 Martin CORNU-MANSUY martin2001.cornumansuy@gmail.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.