https://github.com/centrefordigitalhumanities/django-shared-core
A shared code library for CDH Django projects
https://github.com/centrefordigitalhumanities/django-shared-core
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 (14.5%) to scientific vocabulary
Keywords
Repository
A shared code library for CDH Django projects
Basic Info
Statistics
- Stars: 1
- Watchers: 5
- Forks: 2
- Open Issues: 26
- Releases: 56
Topics
Metadata Files
README.md
CDH Django libraries
A collection of Django apps for CDH Django projects. Developed by the ILS Labs and the Humanities IT Portal Development and Support Team
Documentation provided here: https://centrefordigitalhumanities.github.io/django-shared-core/
Currently targeting:
- Python 3.9 (Django 4 only)
- Python 3.11
- Django 4.2
- Django 5.0
Tests are run using these versions; Some apps have lower requirements, but are not tested against these lower versions. check the app collection below for specifics.
Installing
Quick
Add the following line to your python requirements:
cdh-django-core[all] @ git+https://github.com/CentreForDigitalHumanities/django-shared-core.git@<version>
Replacing <version> with the latest DSC release tag. (e.g. v3.2.0).
This will install the entire library with all required dependencies.
See the documentation for per-app instructions on installing the specific apps in your django project.
Lean
The library can be installed with a reduced dependency set for the apps your
project uses. To do this, replace the all with a comma-separated list of
the apps your project uses (sans cdh.). For example:
cdh-django-core[core,files,rest] @ git+https://github.com/CentreForDigitalHumanities/django-shared-core.git@[version]
App collection
Core (cdh.core)
Base block for pure-Django projects, containing base templates, generic views, extra form/model fields and other miscellaneous code.
Requires Django >= 4.2;
Federated authentication (cdh.federated_auth)
Helper app to connect a Django application as a Service Provider to a Federated Authentication realm. Currently only supports SAML.
Requires Django >= 4.2;
Files (cdh.files)
An alternative to Django's built-in FileField, that manages a file's
lifecycle, allows for copy-on-write sharing of files, is object-storage ready,
allows arbitrary metadata to be added and most-importantly makes sysadmins
happy.
Soft requirement on cdh.core, can work standalone if needed.
Required Django >= 4.2.
Integration platform (cdh.integration_platform)
Ready-to-use API clients for the UU's integration platform.
Requires cdh.rest;
Requires Django >= 4.2.
Mail (cdh.mail)
Helper app to send emails with Django, both in-code and as user defined/written. Supports generating plain/html emails from templates without having to define separate templates for each.
Replaces cdh.core.mail.
Requires Django >= 4.2.
Soft-requires cdh.core, when using the mail-editor widget.
Rest (cdh.rest)
Contains code for both server and client roles. Server code contains some mixins, JWT authentication support and other helpfull snippits.
Client code contains a full Django-ORM inspired REST client, for easy (de)serialization and transactions with REST APIs.
Requires Django >= 4.2;
System messages (cdh.systemmessages)
Simple app to quickly add a 'system message' system to your app, useful for temporary announcements.
Requires Django >= 4.2;
Vue (cdh.vue)
DEPRECATED
Helper app to (more) easily integrate small(-ish) Vue 2 components in your Django templates.
Requires Django >= 4.2;
Vue 3 (cdh.vue3)
Helper app to (more) easily integrate small(-ish) Vue 3 components in your Django templates.
Requires Django >= 4.2;
Included libraries
These libraries have been completely integrated into this codebase
django-encrypted-model-fields
Modified for better Django 2.2 support and some additional tweaks.
Source: https://gitlab.com/lansharkconsulting/django/django-encrypted-model-fields/
Licenced under the MIT licence, see cdh/core/fields/LICENSE.
django-js-urls
Modified to better suit our usage
Source: https://github.com/impak-finance/django-js-urls
Licenced under the MIT license, see cdh/core/js_urls/LICENSE
Select2 Bootstrap 5 Theme
Modified to always apply, minor fixes and better SCSS integration
Source: https://github.com/apalfrey/select2-bootstrap-5-theme
Licenced under the MIT license, see scss/select2-bootstrap/LICENSE
Partly included libraries
These libraries are partly integrated into this codebase. This means that we still use the original package as a dependency, but parts of it have been copied and modified into this codebase as overrides.
vbuild
Partly overriden for integration into a larger Django infrastructure (the cdh.vue app)
Source: https://github.com/manatlan/vbuild
Licensed under the MIT license, see https://github.com/manatlan/vbuild/blob/master/LICENSE
Owner
- Name: Centre for Digital Humanities
- Login: CentreForDigitalHumanities
- Kind: organization
- Email: cdh@uu.nl
- Location: Netherlands
- Website: https://cdh.uu.nl/
- Repositories: 39
- Profile: https://github.com/CentreForDigitalHumanities
Interdisciplinary centre for research and education in computational and data-driven methods in the humanities.
GitHub Events
Total
- Issues event: 11
- Issue comment event: 13
- Push event: 12
- Pull request review event: 5
- Pull request event: 14
- Create event: 8
Last Year
- Issues event: 11
- Issue comment event: 13
- Push event: 12
- Pull request review event: 5
- Pull request event: 14
- Create event: 8
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 41
- Total pull requests: 81
- Average time to close issues: 5 months
- Average time to close pull requests: about 1 month
- Total issue authors: 5
- Total pull request authors: 4
- Average comments per issue: 0.93
- Average comments per pull request: 0.58
- Merged pull requests: 44
- Bot issues: 0
- Bot pull requests: 27
Past Year
- Issues: 7
- Pull requests: 8
- Average time to close issues: 14 days
- Average time to close pull requests: 12 days
- Issue authors: 4
- Pull request authors: 3
- Average comments per issue: 0.29
- Average comments per pull request: 0.0
- Merged pull requests: 3
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- tymees (29)
- bbonf (6)
- miggol (5)
- EdoStorm96 (2)
- BeritJanssen (1)
Pull Request Authors
- tymees (42)
- dependabot[bot] (27)
- bbonf (11)
- miggol (3)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- scss ^0.2.4 development
- uu-bootstrap git+ssh://git@github.com/DH-IT-Portal-Development/bootstrap-theme.git
- bootstrap 5.2.0-beta1
- ometa 0.2.2
- scss 0.2.4
- uu-bootstrap 1.0.0-alpha.1
- actions/checkout v2 composite
- actions/setup-python v2 composite
- actions/upload-artifact v2 composite
- actions/checkout v3 composite
- actions/deploy-pages v1 composite
- actions/setup-python v4 composite
- actions/upload-pages-artifact v1 composite
- ammaraskar/sphinx-problem-matcher master composite
- peaceiris/actions-gh-pages v3 composite
- Django >=4.0,<4.1 development
- PyJWT * development
- closure * development
- cryptography * development
- django-braces * development
- django-csp * development
- django-debug-toolbar * development
- django-extensions * development
- django-impersonate * development
- django-modeltranslation * development
- django-simple-menu * development
- djangorestframework * development
- djangosaml2 * development
- lesscpy * development
- mysqlclient * development
- pip-tools * development
- pyscss * development
- python-magic * development
- requests * development
- vbuild * development
- asgiref ==3.6.0 development
- build ==0.10.0 development
- certifi ==2022.12.7 development
- cffi ==1.15.1 development
- charset-normalizer ==3.0.1 development
- click ==8.1.3 development
- closure ==20191111 development
- cryptography ==39.0.0 development
- defusedxml ==0.7.1 development
- django ==4.0.8 development
- django-braces ==1.15.0 development
- django-csp ==3.7 development
- django-debug-toolbar ==3.8.1 development
- django-extensions ==3.2.1 development
- django-impersonate ==1.8.2 development
- django-modeltranslation ==0.18.7 development
- django-simple-menu ==2.1.0 development
- djangorestframework ==3.14.0 development
- djangosaml2 ==1.5.5 development
- elementpath ==3.0.2 development
- idna ==3.4 development
- importlib-metadata ==6.0.0 development
- lesscpy ==0.15.1 development
- mysqlclient ==2.1.1 development
- packaging ==23.0 development
- pip-tools ==6.12.1 development
- ply ==3.11 development
- pscript ==0.7.7 development
- pycparser ==2.21 development
- pyjwt ==2.6.0 development
- pyopenssl ==23.0.0 development
- pyproject-hooks ==1.0.0 development
- pysaml2 ==7.2.1 development
- pyscss ==1.4.0 development
- python-dateutil ==2.8.2 development
- python-magic ==0.4.27 development
- pytz ==2022.7.1 development
- requests ==2.28.2 development
- six ==1.16.0 development
- sqlparse ==0.4.3 development
- tomli ==2.0.1 development
- typing-extensions ==4.4.0 development
- urllib3 ==1.26.14 development
- vbuild ==0.8.1 development
- wheel ==0.38.4 development
- xmlschema ==2.1.1 development
- zipp ==3.11.0 development
- Deprecated *
- Django >=2.0,<5.0