blueprint to implement a simple spike with python3
- test python code
- use jupyter notebook with python dependencies
- ...
The implementation is compatible with python 3
-
clone this repository
-
remove .git directory
You can find the latest version to ...
git clone https://github.com/FabienArcellier/blueprint-python3.gitYou can run the application with the following command
python src/app/main.pyYou can run this template with docker. The manufactured image can be distributed and used to deploy your application to a production environment.
docker-compose build
docker-compose run appgitpod can be used as an IDE. You can load the code inside to try the code.
bash poetry add requests
Use make to instanciate a python virtual environment in ./venv and install the python dependencies.
poetry installUse make to instanciate a python virtual environment in ./venv and freeze dependencies version
poetry update updateWhen you setup the requirements, a venv directory on python 3 is created.
To activate the venv, you have to execute :
poetry shellBefore commit or send a pull request, you have to execute pylint to check the syntax
of your code and run the unit tests to validate the behavior.
$ poetry run alfred ciI have to regularly rebuild it to update dependencies.
- Fabien Arcellier
MIT License
Copyright (c) 2018-2023 Fabien Arcellier
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.