Skip to main content

admin interface for aiohttp application

Project description

aiohttp_admin

https://travis-ci.org/jettify/aiohttp_admin.svg?branch=master https://coveralls.io/repos/github/jettify/aiohttp_admin/badge.svg?branch=master

aiohttp_admin will help you on building an admin interface on top of an existing data model.

aiohttp_admin using following design philosophy:

1) backend and frontend of admin views are decoupled by REST API as result it is possible to change admin views without changing any python code. On browser side user interacts with single page application (ng-admin).

https://cdn.rawgit.com/jettify/aiohttp_admin/master/docs/diagram.svg

2) admin views are database agnostic, if it is possible to implement REST API it should be strait forward to add admin views. Some filtering features may be disabled if database do not support some kind of filtering.

https://raw.githubusercontent.com/jettify/aiohttp_admin/master/docs/admin_polls.png

Run Tests

Fist of all just clone repository:

$ git clone git@github.com:jettify/aiohttp_admin.git

Install docker using instruction from the official site, for OSX we use docker-machine.

Create virtualenv with python3.5 (older version are not supported). For example using virtualenvwrapper commands could look like:

$ cd aiohttp_admin
$ mkvirtualenv --python=`which python3.5` aiohttp_admin

After that please install libraries required for development:

$ pip install -r requirements-dev.txt

Congratulations, you are ready to run the test suite:

$ py.test --dp -s -v ./tests

Under the hood python docker client pulls images for PostgreSQL, MySQL and Mongodb. Fixtures start databases and insert testing data. You do not have to install any database at all.

Next time –dp (docker pull) flag could be dropped since all required images are cached on local machine. To make sure you have required images please execute:

$ docker images

Among results you should find something like:

postgres  9.5  247a11721cbd  2 weeks ago  265.9 MB
mysql     5.7  63a92d0c131d  8 weeks ago  374.1 MB
mongo     2.6  150dd5b5bd1b  9 weeks ago  390.9 MB

For OSX users one extra step is required, before running tests, please init environment variables:

$ eval $(docker-machine env default)
$ export DOCKER_MACHINE_IP=$(docker-machine ip)

Supported backends

Requirements

CHANGES

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiohttp-admin-0.0.1.tar.gz (1.1 MB view details)

Uploaded Source

File details

Details for the file aiohttp-admin-0.0.1.tar.gz.

File metadata

  • Download URL: aiohttp-admin-0.0.1.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for aiohttp-admin-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d2f26049e4d6632d1377b71b99ea86cb93030339f69a8e49d6562afe20281865
MD5 06334a5683ef7b73cc6608569ec0dea4
BLAKE2b-256 d9dbaf3c6374539672baf8f81610d7112ca038d93ddae141d6ef90763da8aa94

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page