{"id":28205171,"url":"https://github.com/ome/stats","last_synced_at":"2025-06-14T12:30:57.273Z","repository":{"id":144756822,"uuid":"41805353","full_name":"ome/stats","owner":"ome","description":null,"archived":false,"fork":false,"pushed_at":"2017-05-16T12:42:14.000Z","size":799,"stargazers_count":1,"open_issues_count":0,"forks_count":5,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-05-17T08:12:48.656Z","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":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ome.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,"governance":null}},"created_at":"2015-09-02T14:18:03.000Z","updated_at":"2019-05-10T19:59:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"930aa8a8-476d-4e30-a718-e65dcea06381","html_url":"https://github.com/ome/stats","commit_stats":{"total_commits":13,"total_committers":6,"mean_commits":"2.1666666666666665","dds":0.6153846153846154,"last_synced_commit":"33fe771caf7c980e2aae29061befad0f6adc8179"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ome%2Fstats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ome%2Fstats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ome%2Fstats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ome%2Fstats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ome","download_url":"https://codeload.github.com/ome/stats/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":256592469,"owners_count":22412832,"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":"2025-05-17T08:13:28.840Z","updated_at":"2025-06-14T12:30:57.260Z","avatar_url":"https://github.com/ome.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"OMERO.qa\n========\n\nOMERO.qa is the web application which helps support community by OMERO team.\n\nRequirements\n============\n\n* PostgreSQL 8.2+\n* Python 2.6+\n\nDevelopment Installation\n========================\n\n1. Clone the repository\n\n        git clone git@github.com:openmicroscopy/stats.git\n\n2. Set up a virtualenv (http://www.pip-installer.org/) and activate it\n\n        pip install virtualenv\n        virtualenv --system-site-packages stats-virtualenv\n        source stats-virtualenv/bin/activate\n\n3. Install dependencies\n\n        pip install matplotlib\n        pip install psycopg2\n        pip install mercurial\n        pip install -r requirements.txt\n\n4. Dump and restore database.\n\n5. Download and extract GeoIP databases\n\n        GeoIP2-Domain.mmdb, GeoIPOrg.dat, GeoLite2-City.mmdb\n\nConfiguration\n=============\n\n* Create new settings-prod.py and import default settings\n\n        from settings import *\n\n* Set `DEBUG`\n\n        DEBUG=False\n        TEMPLATE_DEBUG = DEBUG\n\n* Set `ADMINS`\n\n        ADMINS = (\n            ('Full Name', 'email@example.com'),\n        )\n\n* Change database settings\n\n        DATABASES = {\n            'default': {\n                'ENGINE': 'django.db.backends.postgresql_psycopg2',\n                                                # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.\n                'NAME': 'stats_database',       # Or path to database file if using sqlite3.\n                'USER': 'stats_user',           # Not used with sqlite3.\n                'PASSWORD': 'secret',           # Not used with sqlite3.\n                'HOST': 'localhost',            # Set to empty string for localhost. Not used with sqlite3.\n                'PORT': '5432',                 # Set to empty string for default. Not used with sqlite3.\n            }\n        }\n\n* Set up email server\n    \n        # Application allows to notify user\n        EMAIL_HOST = 'localhost'\n        EMAIL_HOST_PASSWORD = ''\n        EMAIL_HOST_USER = ''\n        EMAIL_PORT = 25\n        EMAIL_SUBJECT_PREFIX = '[OMERO.stats] '\n        EMAIL_USE_TLS = False\n        SERVER_EMAIL = 'email@example.com' # email address\n\n* WSGI config file for virtual environment (omerostats/django.wsgi):\n\n        import os\n        import sys\n        import site\n\n        # Add the site-packages of the chosen virtualenv to work with\n        site.addsitedir('/path/to/stats-virtualenv/lib64/python2.6/site-packages')\n\n        # Add the app's directory to the PYTHONPATH\n        sys.path.append('/path/to/stats.git/')\n        sys.path.append('/path/to/stats.git/omerostats')\n\n        os.environ.setdefault(\"DJANGO_SETTINGS_MODULE\", \"omerostats.settings-prod\")\n\n        # Activate your virtual env\n        activate_env=os.path.expanduser('/path/to/stats-virtualenv/bin/activate_this.py')\n        execfile(activate_env, dict(__file__=activate_env))\n\n        import django.core.handlers.wsgi\n        application = django.core.handlers.wsgi.WSGIHandler()\n\n* Synchronise the database\n\n        export DJANGO_SETTINGS_MODULE=omerostats.settings-prod\n        python manage.py syncdb\n        python manage.py sqlcustom registry | python manage.py dbshell\n\n* Populated GEO details about IPs\n        python upgrade/ip.py\n\n* Collect statics\n\n        python manage.py collectstatic\n\n* Setup apache\n\n    \u003cVirtualHost *:80\u003e\n\n        ServerAlias stats.openmicroscopy.org\n        ServerName stats.openmicroscopy.org\n        ServerAdmin sysadmin@openmicroscopy.org\n\n        ErrorLog /var/log/httpd/stats.openmicroscopy.org.err\n        CustomLog /var/log/httpd/stats.openmicroscopy.org.log combined\n\n        DocumentRoot /home/omero-stats/stats.git\n\n        WSGIDaemonProcess omerostats processes=2 threads=15 display-name=%{GROUP} python-path=/home/omero-stats/stats.git:/home/omero-stats/reg-virtualenv/lib/python2.6/site-packages\n        WSGIProcessGroup omerostats\n\n        WSGIScriptAlias / /home/omero-stats/stats.git/omerostats/django.wsgi\n\n        \u003cDirectory /home/omero-stats/stats.git/omerostats/\u003e\n            Order allow,deny\n            Allow from all\n        \u003c/Directory\u003e\n\n        Alias /static /home/omero-stats/stats.git/static\n        \u003cLocation \"/static/\"\u003e\n            Options -Indexes\n        \u003c/Location\u003e\n\n    \u003c/VirtualHost\u003e\n    WSGISocketPrefix run/wsgi\n\n\nLegal\n=====\n\nThe source for OMERO.stats is released under the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n\nOMERO.stats is Copyright (C) 2015 University of Dundee\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fome%2Fstats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fome%2Fstats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fome%2Fstats/lists"}