cs.djutils


Namecs.djutils JSON
Version 20241111 PyPI version JSON
download
home_pageNone
SummaryMy collection of things for working with Django.
upload_time2024-11-10 22:32:17
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseGNU General Public License v3 or later (GPLv3+)
keywords python3
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            My collection of things for working with Django.

*Latest release 20241111*:
Rename DjangoBaseCommand to just BaseCommand so that we go `from cs.djutils import BaseCommand`. Less confusing.

## <a name="BaseCommand"></a>Class `BaseCommand(cs.cmdutils.BaseCommand, django.core.management.base.BaseCommand)`

A drop in class for `django.core.management.base.BaseCommand`
which subclasses `cs.cmdutils.BaseCommand`.

This lets me write management commands more easily, particularly
if there are subcommands.

Usage summary:

    Usage: base [common-options...] [options...]
      A drop in class for `django.core.management.base.BaseCommand`
      which subclasses `cs.cmdutils.BaseCommand`.
      Subcommands:
        help [common-options...] [-l] [subcommand-names...]
          Print help for subcommands.
          This outputs the full help for the named subcommands,
          or the short help for all subcommands if no names are specified.
          -l  Long help even if no subcommand-names provided.
        info [common-options...] [field-names...]
          Recite general information.
          Explicit field names may be provided to override the default listing.
        shell [common-options...]
          Run a command prompt via cmd.Cmd using this command's subcommands.

*`BaseCommand.add_arguments(self, parser)`*:
Add the `Options.COMMON_OPT_SPECS` to the `argparse` parser.
This is basicly to support the Django `call_command` function.

*`BaseCommand.handle(*, argv, **options)`*:
The Django `BaseComand.handle` method.
This creates another instance for `argv` and runs it.

*`BaseCommand.run_from_argv(argv)`*:
Intercept `django.core.management.base.BaseCommand.run_from_argv`.
Construct an instance of `cs.djutils.DjangoBaseCommand` and run it.

# Release Log



*Release 20241111*:
Rename DjangoBaseCommand to just BaseCommand so that we go `from cs.djutils import BaseCommand`. Less confusing.

*Release 20241110*:
Initial PyPI release with DjangoBaseCommand, cs.cmdutils.BaseCommand subclass suppplanting django.core.management.base.BaseCommand.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "cs.djutils",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "python3",
    "author": null,
    "author_email": "Cameron Simpson <cs@cskk.id.au>",
    "download_url": "https://files.pythonhosted.org/packages/50/fe/c55e6b099b03e4a96b851cba2c40dc455a4918749e989edd799b2d130b0d/cs_djutils-20241111.tar.gz",
    "platform": null,
    "description": "My collection of things for working with Django.\n\n*Latest release 20241111*:\nRename DjangoBaseCommand to just BaseCommand so that we go `from cs.djutils import BaseCommand`. Less confusing.\n\n## <a name=\"BaseCommand\"></a>Class `BaseCommand(cs.cmdutils.BaseCommand, django.core.management.base.BaseCommand)`\n\nA drop in class for `django.core.management.base.BaseCommand`\nwhich subclasses `cs.cmdutils.BaseCommand`.\n\nThis lets me write management commands more easily, particularly\nif there are subcommands.\n\nUsage summary:\n\n    Usage: base [common-options...] [options...]\n      A drop in class for `django.core.management.base.BaseCommand`\n      which subclasses `cs.cmdutils.BaseCommand`.\n      Subcommands:\n        help [common-options...] [-l] [subcommand-names...]\n          Print help for subcommands.\n          This outputs the full help for the named subcommands,\n          or the short help for all subcommands if no names are specified.\n          -l  Long help even if no subcommand-names provided.\n        info [common-options...] [field-names...]\n          Recite general information.\n          Explicit field names may be provided to override the default listing.\n        shell [common-options...]\n          Run a command prompt via cmd.Cmd using this command's subcommands.\n\n*`BaseCommand.add_arguments(self, parser)`*:\nAdd the `Options.COMMON_OPT_SPECS` to the `argparse` parser.\nThis is basicly to support the Django `call_command` function.\n\n*`BaseCommand.handle(*, argv, **options)`*:\nThe Django `BaseComand.handle` method.\nThis creates another instance for `argv` and runs it.\n\n*`BaseCommand.run_from_argv(argv)`*:\nIntercept `django.core.management.base.BaseCommand.run_from_argv`.\nConstruct an instance of `cs.djutils.DjangoBaseCommand` and run it.\n\n# Release Log\n\n\n\n*Release 20241111*:\nRename DjangoBaseCommand to just BaseCommand so that we go `from cs.djutils import BaseCommand`. Less confusing.\n\n*Release 20241110*:\nInitial PyPI release with DjangoBaseCommand, cs.cmdutils.BaseCommand subclass suppplanting django.core.management.base.BaseCommand.\n",
    "bugtrack_url": null,
    "license": "GNU General Public License v3 or later (GPLv3+)",
    "summary": "My collection of things for working with Django.",
    "version": "20241111",
    "project_urls": {
        "MonoRepo Commits": "https://bitbucket.org/cameron_simpson/css/commits/branch/main",
        "Monorepo Git Mirror": "https://github.com/cameron-simpson/css",
        "Monorepo Hg/Mercurial Mirror": "https://hg.sr.ht/~cameron-simpson/css",
        "Source": "https://github.com/cameron-simpson/css/blob/main/lib/python/cs/djutils.py"
    },
    "split_keywords": [
        "python3"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2b8a5a6a0aaa13bca19de1dfb1c7783b476633f0ae3ea78ed44c4fd5ab9912ba",
                "md5": "bf367b3f61c8a345ecf3c1d8239b2bfc",
                "sha256": "4c6387bcf06bf0f24732ba28fd2fd926f1878fd6ad300217b13dc398f462ce63"
            },
            "downloads": -1,
            "filename": "cs.djutils-20241111-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bf367b3f61c8a345ecf3c1d8239b2bfc",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 3233,
            "upload_time": "2024-11-10T22:32:15",
            "upload_time_iso_8601": "2024-11-10T22:32:15.595958Z",
            "url": "https://files.pythonhosted.org/packages/2b/8a/5a6a0aaa13bca19de1dfb1c7783b476633f0ae3ea78ed44c4fd5ab9912ba/cs.djutils-20241111-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "50fec55e6b099b03e4a96b851cba2c40dc455a4918749e989edd799b2d130b0d",
                "md5": "ac907d6206dee23fe06144b56d61a6eb",
                "sha256": "e339300dc2f91ca6b33172876ba476a82987862c0a3b4da82d3b1fadb95b8b00"
            },
            "downloads": -1,
            "filename": "cs_djutils-20241111.tar.gz",
            "has_sig": false,
            "md5_digest": "ac907d6206dee23fe06144b56d61a6eb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3224,
            "upload_time": "2024-11-10T22:32:17",
            "upload_time_iso_8601": "2024-11-10T22:32:17.258129Z",
            "url": "https://files.pythonhosted.org/packages/50/fe/c55e6b099b03e4a96b851cba2c40dc455a4918749e989edd799b2d130b0d/cs_djutils-20241111.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-10 22:32:17",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cameron-simpson",
    "github_project": "css",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "cs.djutils"
}
        
Elapsed time: 0.85986s