{ "info": { "author": "Klemen Sever", "author_email": "klemen@achedeuzot.me", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "==========================================\nDjango CommandLog - Django Command logging\n==========================================\n\n.. image:: https://travis-ci.org/achedeuzot/django-commandlog.svg?branch=master\n :target: https://travis-ci.org/achedeuzot/django-commandlog?branch=master\n\n.. image:: https://coveralls.io/repos/github/achedeuzot/django-commandlog/badge.svg?branch=master\n :target: https://coveralls.io/github/achedeuzot/django-commandlog?branch=master\n\nDjango CommandLog adds the feature of logging the django management commands into the database so it's available in the admin interface.\n\nWe've been using this to check the result of scheduled management commands directly through the admin interface. It works by copying the stream of ``stdout`` and ``stderr``.\n\nThe decorator also adds some helper methods, see below.\n\nQuick start\n-----------\n\n1. Add \"django_commandlog\" to your ``INSTALLED_APPS`` settings like this:\n\n.. code-block:: python\n\n INSTALLED_APPS = [\n ...\n 'django_commandlog',\n ]\n\n\n2. Run `python manage.py migrate` to add the tables of `django_commandlog` to your database.\n\n3. To log an admin command, add the `@command_log` decorator above the class\n(see example below). Thus, it currently supports only custom management\ncommands. If you wish to add this to default django manage commands you'll\nhave to create a child class with the decorator. Pull/Merge requests\nare welcome with a fix for this.\n\n.. code-block:: python\n\n @command_log\n class SampleCommand(BaseCommand):\n\n def handle(self, *args, **options):\n ...\n\nConfiguration\n-------------\n\nThere are currently no configuration values.\n\nHelper methods\n--------------\nWhen your class is decorated with ``@command_log``, you have access to additional methods.\n\nCommandLog includes counters for basic CRUD operations (Create, Read, Update, Delete) which can be used\nthrough helper methods provided:\n\n.. code-block:: python\n\n add_log_created(10)\n add_log_read(30)\n add_log_updated(20)\n add_log_deleted(30)\n add_log_errors(14)\n\nThere are two fields used to track the commands or runs: reference and user.\nReference is any number you want to track in your manage commands.\n\nYou can also add a user to the tracking by using the `add_log_user(user)` method. `user` can be a string which will be kept as-is or you can use a `settings.AUTH_USER_MODEL` object.\n\n.. code-block:: python\n\n add_log_reference(\"C1235342321\")\n add_log_user(\"user:ldap:username\")\n # or\n add_log_user(user_instance)\n\nRequirements\n------------\n\n- python 2.7, 3.4, 3.5\n- django 1.10\n\n\nTested on `Django`_ 1.10.3\n\n.. _Django: http://www.djangoproject.com/", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/achedeuzot/django-commandlog/tarball/0.1.10", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/achedeuzot/django-commandlog", "keywords": null, "license": "BSD License", "maintainer": null, "maintainer_email": null, "name": "django-commandlog", "package_url": "https://pypi.org/project/django-commandlog/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-commandlog/", "project_urls": { "Download": "https://github.com/achedeuzot/django-commandlog/tarball/0.1.10", "Homepage": "https://github.com/achedeuzot/django-commandlog" }, "release_url": "https://pypi.org/project/django-commandlog/0.1.10/", "requires_dist": null, "requires_python": null, "summary": "A Django app to log management commands", "version": "0.1.10" }, "last_serial": 2486009, "releases": { "0.1.10": [ { "comment_text": "", "digests": { "md5": "5a161bfe9601999000fbb49d123553cb", "sha256": "1da886179f247fe5d89ae0897e2950fa3b03ef4e6e162270e321be558802fa43" }, "downloads": -1, "filename": "django-commandlog-0.1.10.tar.gz", "has_sig": false, "md5_digest": "5a161bfe9601999000fbb49d123553cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10014, "upload_time": "2016-11-28T09:19:51", "url": "https://files.pythonhosted.org/packages/b4/b4/ef70bb4c8fa960a41c0b5ea033812beb8e052d83f6869a34624eb59dd813/django-commandlog-0.1.10.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "1548e8d4005684833a67aca1f2d90878", "sha256": "8d1f19c2c9f0fc4454d028584f1ae184e16165c83d9e198836a49eb443c3cfc3" }, "downloads": -1, "filename": "django-commandlog-0.1.3.tar.gz", "has_sig": false, "md5_digest": "1548e8d4005684833a67aca1f2d90878", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8683, "upload_time": "2016-11-25T10:09:16", "url": "https://files.pythonhosted.org/packages/a4/02/477683081abf8df11cedc05efe8727caa4be40fdc791bcc5d3ff3075c3d7/django-commandlog-0.1.3.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "faec3597297ff4b49e9cfcf68df1dd02", "sha256": "77dd3cdf691710ea2853bd6696979969829e8d730489a88523e67d817d646ebf" }, "downloads": -1, "filename": "django-commandlog-0.1.6.tar.gz", "has_sig": false, "md5_digest": "faec3597297ff4b49e9cfcf68df1dd02", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9884, "upload_time": "2016-11-25T14:44:12", "url": "https://files.pythonhosted.org/packages/34/1d/f493e26b954161d70ede5e1bb74cf041b500134d98418f35e015d93f8dbd/django-commandlog-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "82dd2f0b380d05840880ef07a9794558", "sha256": "d7e2281bef67ccde14718dfe0b8bedc080e20dcfead870ab4a3581ca0516a45a" }, "downloads": -1, "filename": "django-commandlog-0.1.7.tar.gz", "has_sig": false, "md5_digest": "82dd2f0b380d05840880ef07a9794558", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9890, "upload_time": "2016-11-25T14:49:01", "url": "https://files.pythonhosted.org/packages/cd/a6/ecb01fb022dc50222dca9bb4db62b40cfb3a6d57fe78f1a84c02c38da7d8/django-commandlog-0.1.7.tar.gz" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "abb0ffdb15fc103f9bf8aeaab3528974", "sha256": "80984c52006a2685a26aefbbaed2bf2829a34a60b6f523efba9c54a602301cb3" }, "downloads": -1, "filename": "django-commandlog-0.1.8.tar.gz", "has_sig": false, "md5_digest": "abb0ffdb15fc103f9bf8aeaab3528974", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9890, "upload_time": "2016-11-25T16:23:44", "url": "https://files.pythonhosted.org/packages/d4/ff/1a0e4a506a59b67b9b5596c67408211a0b874a2b4fe12830ed1e2d1eac75/django-commandlog-0.1.8.tar.gz" } ], "0.1.9": [ { "comment_text": "", "digests": { "md5": "221a3c1a728c8dd1031395c9c475f7ea", "sha256": "2a7252a78ad0533d8cda118ce95e10c5470719a59c465308a76790fb48e62c2c" }, "downloads": -1, "filename": "django-commandlog-0.1.9.tar.gz", "has_sig": false, "md5_digest": "221a3c1a728c8dd1031395c9c475f7ea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9891, "upload_time": "2016-11-25T16:28:20", "url": "https://files.pythonhosted.org/packages/df/1a/618e8fc27b2ccc9b300957291adacf20cd079a849ca0d719751bba5a7f95/django-commandlog-0.1.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5a161bfe9601999000fbb49d123553cb", "sha256": "1da886179f247fe5d89ae0897e2950fa3b03ef4e6e162270e321be558802fa43" }, "downloads": -1, "filename": "django-commandlog-0.1.10.tar.gz", "has_sig": false, "md5_digest": "5a161bfe9601999000fbb49d123553cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10014, "upload_time": "2016-11-28T09:19:51", "url": "https://files.pythonhosted.org/packages/b4/b4/ef70bb4c8fa960a41c0b5ea033812beb8e052d83f6869a34624eb59dd813/django-commandlog-0.1.10.tar.gz" } ] }