django-command-server


Namedjango-command-server JSON
Version 0.1.3 PyPI version JSON
download
home_pageNone
SummaryDjango management.command is running a long live task, we make it a linux daemon server, so that you can start, stop, restart the task.
upload_time2025-10-23 04:07:13
maintainerrRR0VrFP
docs_urlNone
authorrRR0VrFP
requires_pythonNone
licenseMIT
keywords django extentions
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # django-command-server

Django management.command is running a long live task, we make it a linux daemon server, so that you can start, stop, restart the task.

## Install

```
pip install django-command-server
```


## Usage

**app/management/commands/helloserver.py**

```
import djclick as click
from django_command_server import DjangoCommandServer

class HelloServer(DjangoCommandServer):
    def main(self):
        while True:
            print("hello")

@click.group()
def main():
    pass

hello_server = HelloServer()
hello_server.setup(main)
```

**Notes:**

- django_command_server is not a django application, do do NOT include it in django's INSTALLED_APPS.
- DjangoCommandServer setup takes a djclick.group(), so create an instance and pass it to setup.
- Implement your own server main.


## Release

### v0.1.0 2020/11/09

- First release.

### v0.1.1 2020/11/09

- Add deps in requirements.txt.

### v0.1.2 2023/09/18

- Doc update.

### v0.1.3 2025/10/23

- Doc update.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "django-command-server",
    "maintainer": "rRR0VrFP",
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "django extentions",
    "author": "rRR0VrFP",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/8b/b7/b1f02855b305be3c9e023953a96b7210824cee050189095667894dde162d/django_command_server-0.1.3.tar.gz",
    "platform": null,
    "description": "# django-command-server\n\nDjango management.command is running a long live task, we make it a linux daemon server, so that you can start, stop, restart the task.\n\n## Install\n\n```\npip install django-command-server\n```\n\n\n## Usage\n\n**app/management/commands/helloserver.py**\n\n```\nimport djclick as click\nfrom django_command_server import DjangoCommandServer\n\nclass HelloServer(DjangoCommandServer):\n    def main(self):\n        while True:\n            print(\"hello\")\n\n@click.group()\ndef main():\n    pass\n\nhello_server = HelloServer()\nhello_server.setup(main)\n```\n\n**Notes:**\n\n- django_command_server is not a django application, do do NOT include it in django's INSTALLED_APPS.\n- DjangoCommandServer setup takes a djclick.group(), so create an instance and pass it to setup.\n- Implement your own server main.\n\n\n## Release\n\n### v0.1.0 2020/11/09\n\n- First release.\n\n### v0.1.1 2020/11/09\n\n- Add deps in requirements.txt.\n\n### v0.1.2 2023/09/18\n\n- Doc update.\n\n### v0.1.3 2025/10/23\n\n- Doc update.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Django management.command is running a long live task, we make it a linux daemon server, so that you can start, stop, restart the task.",
    "version": "0.1.3",
    "project_urls": null,
    "split_keywords": [
        "django",
        "extentions"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "56ee9fa1c9667eaca4d5e6f128cbd6c515a42cb16f792aa07c0a3c73b75e0b95",
                "md5": "820adddbd0dbe6d786f08f777e62093e",
                "sha256": "64d1255a64531f687f128e06e5cd9702279eedc8bc4f2016d9aa84b95b522721"
            },
            "downloads": -1,
            "filename": "django_command_server-0.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "820adddbd0dbe6d786f08f777e62093e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 3669,
            "upload_time": "2025-10-23T04:07:11",
            "upload_time_iso_8601": "2025-10-23T04:07:11.712296Z",
            "url": "https://files.pythonhosted.org/packages/56/ee/9fa1c9667eaca4d5e6f128cbd6c515a42cb16f792aa07c0a3c73b75e0b95/django_command_server-0.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "8bb7b1f02855b305be3c9e023953a96b7210824cee050189095667894dde162d",
                "md5": "52c3df06de655d354cc94704920230d2",
                "sha256": "a968ef235c4b5fed7a0ae35cec15870429cf88e66b2fc667579d1bc52a57c48d"
            },
            "downloads": -1,
            "filename": "django_command_server-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "52c3df06de655d354cc94704920230d2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3734,
            "upload_time": "2025-10-23T04:07:13",
            "upload_time_iso_8601": "2025-10-23T04:07:13.090786Z",
            "url": "https://files.pythonhosted.org/packages/8b/b7/b1f02855b305be3c9e023953a96b7210824cee050189095667894dde162d/django_command_server-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-10-23 04:07:13",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "django-command-server"
}
        
Elapsed time: 1.57838s