django-command-log


Namedjango-command-log JSON
Version 2.2 PyPI version JSON
download
home_pagehttps://github.com/yunojuno/django-management-command-log
SummaryDjango management command auditing app
upload_time2024-03-08 11:16:03
maintainer
docs_urlNone
authorYunoJuno
requires_python>=3.8,<4.0
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            # Django Management Command Log

App to enable simple auditing of Django management commands

### Version support

This project now support Django 3.2+, and Python 3.8+.
See git tags and PyPI classifiers for support.

## Background

This app wraps the standard Django management command base class to record the
running of a command. It logs the name of the command, start and end time, and
the output (if any). If the command fails with a Python exception, the error
message is added to the record, and the exception itself is logged using
`logging.exception`.

![Screenshot of admin list
view](https://github.com/yunojuno/django-management-command-log/blob/master/screenshots/list-view.png)

![Screenshot of admin detail
view](https://github.com/yunojuno/django-management-command-log/blob/master/screenshots/detail-view.png)

See the `test_command` and `test_transaction_command` for examples.

## TODO

* Documentation.
* Convert output field to JSON

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/yunojuno/django-management-command-log",
    "name": "django-command-log",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "YunoJuno",
    "author_email": "code@yunojuno.com",
    "download_url": "https://files.pythonhosted.org/packages/7d/80/f0dbd1eccced7787001ee470381e6fd95d64548df7f30f82085e0cc222c5/django_command_log-2.2.tar.gz",
    "platform": null,
    "description": "# Django Management Command Log\n\nApp to enable simple auditing of Django management commands\n\n### Version support\n\nThis project now support Django 3.2+, and Python 3.8+.\nSee git tags and PyPI classifiers for support.\n\n## Background\n\nThis app wraps the standard Django management command base class to record the\nrunning of a command. It logs the name of the command, start and end time, and\nthe output (if any). If the command fails with a Python exception, the error\nmessage is added to the record, and the exception itself is logged using\n`logging.exception`.\n\n![Screenshot of admin list\nview](https://github.com/yunojuno/django-management-command-log/blob/master/screenshots/list-view.png)\n\n![Screenshot of admin detail\nview](https://github.com/yunojuno/django-management-command-log/blob/master/screenshots/detail-view.png)\n\nSee the `test_command` and `test_transaction_command` for examples.\n\n## TODO\n\n* Documentation.\n* Convert output field to JSON\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Django management command auditing app",
    "version": "2.2",
    "project_urls": {
        "Homepage": "https://github.com/yunojuno/django-management-command-log",
        "Repository": "https://github.com/yunojuno/django-management-command-log"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b860287244fdb6021ea1a0a5eb6eeb474314fb4d787f7e83633916eaccdb22eb",
                "md5": "d0d2bda4dc64a7d7495656509ecff61f",
                "sha256": "b495e35b400454c205927b057ee62a7d0c17cff20abcc2c771cc21cc54f5ee1b"
            },
            "downloads": -1,
            "filename": "django_command_log-2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d0d2bda4dc64a7d7495656509ecff61f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 11602,
            "upload_time": "2024-03-08T11:16:01",
            "upload_time_iso_8601": "2024-03-08T11:16:01.355941Z",
            "url": "https://files.pythonhosted.org/packages/b8/60/287244fdb6021ea1a0a5eb6eeb474314fb4d787f7e83633916eaccdb22eb/django_command_log-2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7d80f0dbd1eccced7787001ee470381e6fd95d64548df7f30f82085e0cc222c5",
                "md5": "e48d5189f6b3d37b0ef5fff9b50352f3",
                "sha256": "44392e5e692ddc5517b5210510a2b9e00e568b37a83afd034df2cd268bd5c5e1"
            },
            "downloads": -1,
            "filename": "django_command_log-2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "e48d5189f6b3d37b0ef5fff9b50352f3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 8049,
            "upload_time": "2024-03-08T11:16:03",
            "upload_time_iso_8601": "2024-03-08T11:16:03.655552Z",
            "url": "https://files.pythonhosted.org/packages/7d/80/f0dbd1eccced7787001ee470381e6fd95d64548df7f30f82085e0cc222c5/django_command_log-2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-08 11:16:03",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "yunojuno",
    "github_project": "django-management-command-log",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "tox": true,
    "lcname": "django-command-log"
}
        
Elapsed time: 0.24255s