https://github.com/acdh-oeaw/apis-webpage-base

Base webpage application for APIS based projects

https://github.com/acdh-oeaw/apis-webpage-base

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.9%) to scientific vocabulary

Keywords

apis-app djangobaseproject
Last synced: 10 months ago · JSON representation

Repository

Base webpage application for APIS based projects

Basic Info
  • Host: GitHub
  • Owner: acdh-oeaw
  • License: mit
  • Language: Python
  • Default Branch: master
  • Size: 6.43 MB
Statistics
  • Stars: 1
  • Watchers: 11
  • Forks: 0
  • Open Issues: 6
  • Releases: 0
Archived
Topics
apis-app djangobaseproject
Created over 7 years ago · Last pushed almost 5 years ago
Metadata Files
Readme License

readme.md

About

APIS is a Django based webapplication developed by the Austrian Centre for Digital Humanities. We use it to store named entities and relations between them in DH projects.

This is a base project for APIS installations. We use different branches to adapt the base project to the needs of the various projects

Basic Installation

  • Clone this repository and checkout the branch you intend to use
  • Create a virtualenv and activate it:

    bash virtualenv -p python3 myenv source myenv/bin/activate

  • Install the requirements:

    bash pip install -r requirements.txt

  • Migrate the database:

    bash python manage.py migrate

  • Add apis-core to urls.py:

    bash vim ROOT_OF_APIS/apis/urls.py uncomment line #8 and save the file

  • Migrate again:

    bash python manage.py makemigrations browsing python manage.py migrate

  • and run the development server:

    bash python manage.py runserver

Installation for production

For security and performance reasons you dont want to use the development server and/or sqllite.

Use mysql instead of sqllite

  • change to ROOTOFAPIS/apis/settings
  • copy dev.py to server.py
  • change the DATABASES entry to something along the lines of:

    python DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'DATABASE NAME', 'USER': 'MYSQL USER', 'PASSWORD': 'password', 'HOST': 'localhost', # Or an IP Address that your DB is hosted on 'PORT': '3306', } }

  • install the myqlclient library to your virtualenv:

    bash pip install mysqlclient

Use apache2 instead of the development server

  • for installing and configuring apache2 refer to instructions of your system
  • an example virtualhost definition file:

Additional packages

We have developed (and still are developing) some additional packages to extend the functionalities of APIS.

Highlighter

This package is used to provide annotation functionalities for texts stored in APIS. If installed and

Customization

Basic metadata of the project can be set in apis.settings.base by adapting PROJECT_DEFAULT_MD. The prefered way though is to provide a remote metadata.json. * A proper project description should be stored in infos.models.AboutTheProject * Info about the project's team members can be stored in infos.models.TeamMember.

References

Owner

  • Name: Austrian Centre for Digital Humanities & Cultural Heritage
  • Login: acdh-oeaw
  • Kind: organization
  • Email: acdh@oeaw.ac.at
  • Location: Vienna, Austria

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: over 1 year ago

All Time
  • Total issues: 3
  • Total pull requests: 11
  • Average time to close issues: about 15 hours
  • Average time to close pull requests: 26 days
  • Total issue authors: 2
  • Total pull request authors: 1
  • Average comments per issue: 0.33
  • Average comments per pull request: 7.82
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 11
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • csae8092 (2)
  • sennierer (1)
Pull Request Authors
  • dependabot[bot] (11)
Top Labels
Issue Labels
Pull Request Labels
dependencies (11)

Dependencies

Pipfile pypi
  • black * develop
  • flake8 * develop
  • mysqlclient * develop
  • networkx * develop
  • python-language-server * develop
  • Django ==2.1.12
  • Jinja2 ==2.10
  • MarkupSafe ==1.0
  • PyYAML ==3.13
  • Pygments ==2.2.0
  • SPARQLWrapper ==1.8.2
  • Send2Trash ==1.5.0
  • acdh-django-charts ==0.5.3
  • backcall ==0.1.0
  • beautifulsoup4 *
  • bleach ==3.0.2
  • calmjs ==3.3.1
  • certifi ==2018.8.24
  • chardet ==3.0.4
  • colorama ==0.4.0
  • convertdate *
  • coreapi *
  • decorator ==4.3.0
  • defusedxml ==0.5.0
  • django-autocomplete-light ==3.3.2
  • django-cors-headers *
  • django-crispy-forms ==1.7.2
  • django-extensions ==2.1.3
  • django-filter ==2.0.0
  • django-guardian ==1.4.9
  • django-haystack *
  • django-leaflet *
  • django-model-utils ==3.1.2
  • django-rest-swagger *
  • django-reversion ==3.0.0
  • django-reversion-compare ==0.8.5
  • django-tables2 ==2.0.1
  • django-url-filter *
  • djangorestframework ==3.9.4
  • djangorestframework-csv ==2.1.0
  • djangorestframework-filters *
  • djangorestframework-xml ==1.3.0
  • drf-yasg *
  • entrypoints ==0.2.3
  • et_xmlfile ==1.0.1
  • idna ==2.7
  • ipykernel ==5.1.0
  • ipython ==7.1.1
  • ipython_genutils ==0.2.0
  • ipywidgets ==7.4.2
  • isodate ==0.6.0
  • jdcal ==1.4
  • jedi ==0.13.1
  • jmespath *
  • jsonschema ==2.6.0
  • jupyter ==1.0.0
  • jupyter_client ==5.2.3
  • jupyter_console ==6.0.0
  • jupyter_core ==4.4.0
  • lxml ==4.2.5
  • mistune ==0.8.4
  • mysqlclient *
  • nbconvert ==5.4.0
  • nbformat ==4.4.0
  • networkx *
  • notebook ==5.7.2
  • odfpy ==1.3.6
  • openpyxl ==2.5.9
  • packaging *
  • pandas ==0.23.4
  • pandocfilters ==1.4.2
  • parso ==0.3.1
  • pickleshare ==0.7.5
  • ply ==3.11
  • prometheus_client ==0.4.2
  • prompt_toolkit ==2.0.6
  • pyparsing ==2.2.2
  • python-dateutil ==2.7.3
  • pytz ==2018.5
  • pywinpty ==0.5.4
  • pyzmq ==17.1.2
  • qtconsole ==4.4.2
  • rdflib ==4.2.2
  • requests ==2.20.0
  • six ==1.11.0
  • spacy *
  • tablib ==0.12.1
  • terminado ==0.8.1
  • testpath ==0.4.2
  • tornado ==5.1.1
  • traitlets ==4.3.2
  • unicodecsv ==0.14.1
  • urllib3 ==1.23
  • wcwidth ==0.1.7
  • webencodings ==0.5.1
  • whoosh *
  • widgetsnbextension ==3.4.2
  • wincertstore ==0.2
  • xlrd ==1.1.0
  • xlwt ==1.3.0
Pipfile.lock pypi
  • 163 dependencies
requirements.txt pypi
  • Django ==2.2.11
  • Jinja2 ==3.0.0a1
  • MarkupSafe ==1.1.1
  • PyYAML ==5.3.1
  • SPARQLWrapper ==1.8.5
  • acdh-django-charts ==0.5.3
  • astroid ==2.3.3
  • attrs ==19.3.0
  • autopep8 ==1.5
  • black ==19.10b0
  • cached-property ==1.5.1
  • certifi ==2019.11.28
  • chardet ==3.0.4
  • click ==7.1.1
  • coreapi ==2.3.3
  • coreschema ==0.0.4
  • decorator ==4.4.2
  • defusedxml ==0.6.0
  • diff-match-patch ==20181111
  • dj-database-url ==0.5.0
  • django-admin-csvexport ==1.9
  • django-autocomplete-light ==3.6.0.dev1
  • django-cors-headers ==3.2.1
  • django-crispy-forms ==1.9.0
  • django-crum ==0.7.6
  • django-extensions ==2.2.9
  • django-filter ==2.2.0
  • django-guardian ==2.2.0
  • django-haystack ==2.8.1
  • django-leaflet ==0.26.0
  • django-model-utils ==4.0.0
  • django-rest-swagger ==2.2.0
  • django-reversion ==3.0.7
  • django-reversion-compare ==0.12.2
  • django-tables2 ==2.2.1
  • django-url-filter ==0.3.15
  • djangorestframework ==3.11.1
  • djangorestframework-csv ==2.1.0
  • djangorestframework-xml ==1.4.0
  • drf-yasg ==1.17.1
  • entrypoints ==0.3
  • enum-compat ==0.0.3
  • flake8 ==3.7.9
  • idna ==2.9
  • importlib-metadata ==1.5.2
  • inflection ==0.3.1
  • ipython ==7.13.0
  • isodate ==0.6.0
  • isort ==4.3.21
  • itypes ==1.1.0
  • jedi ==0.15.2
  • jmespath ==0.9.5
  • jsonschema ==3.2.0
  • lazy-object-proxy ==1.4.3
  • lxml ==4.5.0
  • mccabe ==0.6.1
  • mysqlclient ==1.4.6
  • networkx ==2.4
  • numpy ==1.18.2
  • openapi-codec ==1.3.2
  • packaging ==20.3
  • pandas ==1.0.3
  • pandocfilters ==1.4.2
  • parso ==0.6.2
  • pathspec ==0.7.0
  • pluggy ==0.13.1
  • pycodestyle ==2.5.0
  • pydocstyle ==5.0.2
  • pyflakes ==2.1.1
  • pylint ==2.4.4
  • pyparsing ==2.4.6
  • pyrsistent ==0.16.0
  • pysolr ==3.9.0
  • python-dateutil ==2.8.1
  • python-jsonrpc-server ==0.3.4
  • python-language-server ==0.31.9
  • pytz ==2019.3
  • rdflib ==4.2.2
  • regex ==2020.2.20
  • requests ==2.23.0
  • rope ==0.16.0
  • ruamel.yaml ==0.16.10
  • ruamel.yaml.clib ==0.2.0
  • sentry-sdk ==0.14.3
  • simplejson ==3.17.0
  • six ==1.14.0
  • snowballstemmer ==2.0.0
  • sqlparse ==0.3.1
  • tablib ==1.1.0
  • toml ==0.10.0
  • typed-ast ==1.4.1
  • ujson ==1.35
  • unicodecsv ==0.14.1
  • uritemplate ==3.0.1
  • urllib3 ==1.25.8
  • wrapt ==1.11.2
  • yapf ==0.29.0
  • zipp ==3.1.0