# Библиотека логирования изменений данных в БД
## Подключение
requirements:
libaudit>=1.0.0,<2.0
settings:
INSTALLED_APPS = [
...
'libaudit',
...
]
MIDDLEWARE = [
...
'django.contrib.auth.middleware.AuthenticationMiddleware',
'libaudit.middleware.AuditLogMiddleware',
...
]
REST_FRAMEWORK = {
...
'DEFAULT_AUTHENTICATION_CLASSES': (
'libaudit.oidc.JSONWebTokenAuthentication',
)
...
}
## Запуск тестов
$ tox
Raw data
{
"_id": null,
"home_page": "https://stash.bars-open.ru/projects/EDUEO/repos/libaudit/",
"name": "libaudit",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "BARS Group",
"author_email": "education_dev@bars-open.ru",
"download_url": "https://files.pythonhosted.org/packages/35/4b/cf5498b38d0b2c17d678f2055f378dbb8f2d5bf47f730dbdb690e8f61893/libaudit-1.0.0.tar.gz",
"platform": null,
"description": "# \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0411\u0414\n## \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\n\nrequirements:\n\n libaudit>=1.0.0,<2.0\n\nsettings:\n\n INSTALLED_APPS = [\n ...\n 'libaudit',\n ...\n ]\n\n MIDDLEWARE = [\n ...\n 'django.contrib.auth.middleware.AuthenticationMiddleware',\n 'libaudit.middleware.AuditLogMiddleware',\n ...\n ]\n\n REST_FRAMEWORK = {\n ...\n\t 'DEFAULT_AUTHENTICATION_CLASSES': (\n\t 'libaudit.oidc.JSONWebTokenAuthentication',\n\t )\n\t ...\n\t}\n\n## \u0417\u0430\u043f\u0443\u0441\u043a \u0442\u0435\u0441\u0442\u043e\u0432\n $ tox\n",
"bugtrack_url": null,
"license": "",
"summary": "\u041e\u0431\u0449\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0411\u0414",
"version": "1.0.0",
"project_urls": {
"Homepage": "https://stash.bars-open.ru/projects/EDUEO/repos/libaudit/"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "19cd66cc7d733ef50809b61f42c4b5a262a801f23f7a1aef8da926cd216eb2c9",
"md5": "8bff2a5c53e212217ad062e9fd696512",
"sha256": "e13f0c9f2ac1346aa61f7aa90d1cf1b32db2f107a40fff50903f0a1ff143025c"
},
"downloads": -1,
"filename": "libaudit-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8bff2a5c53e212217ad062e9fd696512",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 10740,
"upload_time": "2024-01-16T07:03:46",
"upload_time_iso_8601": "2024-01-16T07:03:46.489034Z",
"url": "https://files.pythonhosted.org/packages/19/cd/66cc7d733ef50809b61f42c4b5a262a801f23f7a1aef8da926cd216eb2c9/libaudit-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "354bcf5498b38d0b2c17d678f2055f378dbb8f2d5bf47f730dbdb690e8f61893",
"md5": "57ddd63d069281ca4ec02fa71d2eb6e8",
"sha256": "b9f3cf4f6174b1ebb5c4e396bbe3f863020eefe2dbe21d1134a7aba961d2b32b"
},
"downloads": -1,
"filename": "libaudit-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "57ddd63d069281ca4ec02fa71d2eb6e8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8646,
"upload_time": "2024-01-16T07:03:48",
"upload_time_iso_8601": "2024-01-16T07:03:48.482380Z",
"url": "https://files.pythonhosted.org/packages/35/4b/cf5498b38d0b2c17d678f2055f378dbb8f2d5bf47f730dbdb690e8f61893/libaudit-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-16 07:03:48",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "libaudit"
}