GithubHelp home page GithubHelp logo

blankdots / minimalpy Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 207 KB

Minimal Python 3 project

Home Page: https://minimalpy.readthedocs.io

License: Apache License 2.0

Python 77.17% Dockerfile 18.56% Shell 4.27%
python3 python minimal aiohttp

minimalpy's Introduction

Minimal Python Project

Integration Tests Python Unit Tests Python style check Documentation Checks Coverage Status Documentation Status

An example of a minimal Python 3.11+ project that contains an web application built with aiohttp. At the same time the project exemplifies:

  • aiohttp server;
  • logging formatting;
  • unit tests;
  • tox automation for:
    • flake8 style enforcement;
    • running unit tests and coverage;
  • github-actions and coveralls integration;
  • bandit to check common security issues in Python code;
  • building documentation for readthedocs.

Install and Run

Installation can be done:

  • Github - without cloning
$ pip install git+https://github.com/blankdots/minimalpy.git
  • cloning repository:
$ git clone [email protected]:blankdots/minimalpy.git
$ cd minimalpy
$ pip install .

After install the application can be started like: $ minimal

Tests and Documentation

In order to run the tests: $ tox in the root directory of the git project.

To build documentation locally:

$ cd docs
$ make html

Structure

Following a similar structure as described in: Structuring Your (Python) Project. Main application resides in minimalpy folder, documentation in docs and unit tests in tests.

.
├── minimalpy
│   ├── __init__.py
│   └── server.py
├── data
│   └── data.json
├── docs
│   ├── conf.py
│   ├── index.rst
│   └── Makefile
├── bandit.yml
├── LICENSE
├── README.md
├── readthedocs.yml
├── requirements.txt
├── setup.py
├── tests
│   ├── conftest.py
│   ├── coveralls.py
│   ├── __init__.py
│   └── test_server.py
└── tox.ini

Build and Deployment

build and run using docker:

docker build -t minimalpy .
docker run -p 5430:5430 minimalpy

License

minimalpy python and all it sources are released under Apache License 2.0.

Similar Projects

Some projects similar in scope:

minimalpy's People

Contributors

blankdots avatar dependabot[bot] avatar github-actions[bot] avatar paraschevanegru avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.