osya / File_Storage_API

File storage (HTTP storage) API with IP Auth based on Bottle & SQLite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

File Storage API

Build Status Coverage Status

File storage (HTTP storage) API with IP Auth based on Bottle & SQLite

Developed File storage (HTTP storage) API with IP Auth based on Bottle & SQLite.

In the scope of this task I developed Bottle plugin for IP Auth, which can work with Bottle-SQLite plugin.

Used technologies:

  • Python & Bottle & SQLite
  • Testing: PyTest & Webtest
  • Travis CI
  • This project uses multiprocessing module for removing expired uploaded files in background in separate process.

Installation

  1. Clone project on your machine
  2. virtualenv env
  3. Activate virtual env:
    • Under Windows: env\Scripts\activate.bat
    • Under Linux: source env/bin/activate
  4. pip install -r requirements/dev.txt
  5. cd <path_where_you_cloned_app>
  6. nohup python manage.py runserver

Usage

Tests

To run all tests, run

    python manage.py test

About

File storage (HTTP storage) API with IP Auth based on Bottle & SQLite


Languages

Language:Python 100.0%