Skip to content

gecdfoz/PyLabServer

 
 

Repository files navigation

PyLabServer

Introduction

Features

  • Simple flask application using application factory, blueprints

Used packages :

Usage

Installation

Install

You can install it using this command : pip install cookiecutter

Install project requirements

Let's say you named your app myapi and your project myproject

You can install it using pip :

cd myproject
pip install -r requirements.txt
pip install -e .

Configuration

Authentication

Running tests

Using pytest directly

If you want to run pytest manually without using tox you'll need to install some dependencies before

pip install pytest pytest-runner pytest-flask pytest-factoryboy factory_boy

Then you can invoke pytest

pytest

Note that tox is setting environment variables for you when testing, but when using pytest directly that's not the case. To avoid setting up env variables each time you run pytest, this cookiecutter provide a .testenv file that contains default configuration for testing. Don't forget to update it if your local env doesn't match those defaults.

Changelog

23/10/2020 - v 0.5

  • Initial project config.

About

A Python Laboratory Server to make exercises and practice.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 89.6%
  • HTML 3.4%
  • Makefile 3.2%
  • Dockerfile 1.7%
  • Mako 1.3%
  • Shell 0.8%