{"id":17172875,"url":"https://github.com/20tab/uwsgiit_console","last_synced_at":"2025-04-13T16:12:47.247Z","repository":{"id":16858835,"uuid":"19618916","full_name":"20tab/uwsgiit_console","owner":"20tab","description":"web application that use uwsgi.it api","archived":false,"fork":false,"pushed_at":"2018-10-15T12:32:47.000Z","size":1307,"stargazers_count":7,"open_issues_count":9,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-13T16:12:41.486Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/20tab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-09T17:08:45.000Z","updated_at":"2017-05-30T09:06:48.000Z","dependencies_parsed_at":"2022-09-24T10:44:59.549Z","dependency_job_id":null,"html_url":"https://github.com/20tab/uwsgiit_console","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/20tab%2Fuwsgiit_console","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/20tab%2Fuwsgiit_console/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/20tab%2Fuwsgiit_console/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/20tab%2Fuwsgiit_console/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/20tab","download_url":"https://codeload.github.com/20tab/uwsgiit_console/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248741195,"owners_count":21154255,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T23:48:34.271Z","updated_at":"2025-04-13T16:12:47.212Z","avatar_url":"https://github.com/20tab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/20tab/uwsgiit_console.svg?branch=master)](https://travis-ci.org/20tab/uwsgiit_console)\n\nuwsgiit_console\n===============\n\nA django app to simplify the use of uWSGI.it api with a few extras.\n\nReal-time notification system for alarms!\n\nYou can take a look at the metrics of your containers, domains or all of the metrics of your domains and containers with the same tag!\n\n![alt tag](https://github.com/20tab/uwsgiit_console/blob/master/demo/screens/screen.png)\n\nINSTALLATION\n============\n## Installation\n\nUse the following command:\n```sh\n    pip install uwsgiit-console\n```\n\nYou should install this [uwsgi plugin](https://github.com/unbit/uwsgi-gif) too if you want to get colored gifs for real-time alarms.\n\n## Configuration\n\nOpen settings.py and add select2 and console to your INSTALLED_APPS:\n\n- settings.py\n\n```py\nINSTALLED_APPS = {\n    ...,\n    'select2',\n    'console',\n    ...\n}\n```\n\nAdd 'console.template_context.context_processors.console_context' to TEMPLATE_CONTEXT_PROCESSORS:\n\n```py\nTEMPLATE_CONTEXT_PROCESSORS = (\n    ...,\n    'console.template_context.context_processors.console_context',\n    ...\n)\n```\n\nIn the end you can set a few variables:\n\n```py\nCONSOLE_TITLE = 'Whatever You Want'  #Default 'uWSGI.it Console'\nCONSOLE_SUBTITLE = 'Whatever You Want'  #Default ''\nDEFAULT_API_URL = 'https://whatever.you.want/'  #Default 'https://api.uwsgi.it/api/'\n```\n\n- urls.py\n\n```py\nurlpatterns = patterns('',\n    ... ,\n    (r'whatever/you/want', include('console.urls')),\n    ...\n)\n\n```\n\n- Static files\n\nRun collectstatic command or map static directory.\n\n\n- Add an uwsgi.it api in the database\n\nIn order to make it work you have to add one UwsgiItApi instance in the database containing the url you put in DEFAULT_API_URL.\n\n- uwsgi-gif\n\nIf you installed uwsgi-gif you have to add those lines to your vassals:\n\n```ini\n[uwsgi]\nplugin = gif\nroute = ^/foo_(\\d+)_(\\d+)_(\\d+)\\.gif$ gif:width=80,height=80,red=$1,green=$2,blue=$3\n```\n\n\nTEST\n====\nTo launch test you should install tox (pip install tox) and you need to add a few variable into [console/tests/test_settings.py](https://github.com/20tab/uwsgiit_console/blob/master/console/tests/test_settings.py):\n\n```py\n    TEST_USER = 'USER_EXAMPLE'\n    TEST_PASSWORD = 'PASSWORD_EXAMPLE'\n    TEST_CONTAINER = '12345'\n    TEST_DOMAIN = '123'\n    TEST_TAG = 'TAG_EXAMPLE'\n```\n\nNow you can launch the tests with::\n\n```sh\n    ./run_tests\n```\n\nNow, since this project relies on third party API... you have to be patience, normally it takes around 1 minute.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F20tab%2Fuwsgiit_console","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F20tab%2Fuwsgiit_console","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F20tab%2Fuwsgiit_console/lists"}