# django-handy-helpers
| | | |
|--------------|------|---|
| Author | David Slusser | |
| Description | A collection of handy utilities to support django projects | |
| Requirements | `Python 3.x`<br>`Django 2.2.x` | |
# Documentation
Full documentation can be found on http://django-handyhelpers.readthedocs.org.
Documentation source files are available in the docs folder.
# How to Install
The django-userextensions package is available on Python Package Index (PyPI) and can be installed via pip:
pip install django-handyhelpers
add 'handyhelpers' to your INSTALLED_APPS (for management commands and templates)
INSTALLED_APPS = [
...
'handyhelpers',
]
# Management Commands
### DRF Generator
Django-handyhelpers includes manage.py commands to generate DRF files (api views, serializers, urls) for a given app in your project.
This is done using jinja templates that define the structure of each file. Default templates are provided, and custom templates
can be provided in the command. By default, all models and models fields are included.
Example command:
manage.py generate_drf <my_app> --serializer
manage.py generate_drf <my_app> --serializer --serializer_template <my_custom_template>
** use the --help parameter for a full list of options
manage.py generate_drf --help
### Admin Generator
Included with django-handyhelpers are manage.py commands to auto-generate an admin.py file for a given application in
your project. This is done using a jinja template that defines the structure of the admin.py file. A default template is
provided.
Example command:
manage.py generate_admin <my_app>
manage.py generate_admin <my_app> --template <my_custom_template>
** use the --help parameter for a full list of options
manage.py generate-admin --help
# Mixins
### FilterByQueryParamsMixin
Allows your list views to be filtered by query parameters.
### InvalidLookupMixin
Returns an applicable error, instead of results based on an unfiltered queryset, if a provided lookup expression,
filter, or model field is invalid.
Raw data
{
"_id": null,
"home_page": "https://github.com/davidslusser/django-handyhelpers",
"name": "django-handyhelpers",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "django, helpers, handyhelpers",
"author": "David Slusser",
"author_email": "dbslusser@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/71/78/980636f776cef16a34aecc0fc68a08df99b82adf598e699922413159d635/django_handyhelpers-0.3.31.tar.gz",
"platform": null,
"description": "# django-handy-helpers\n\n\n| | | |\n|--------------|------|---|\n| Author | David Slusser | |\n| Description | A collection of handy utilities to support django projects | |\n| Requirements | `Python 3.x`<br>`Django 2.2.x` | |\n\n\n# Documentation\nFull documentation can be found on http://django-handyhelpers.readthedocs.org. \nDocumentation source files are available in the docs folder.\n\n\n# How to Install\nThe django-userextensions package is available on Python Package Index (PyPI) and can be installed via pip:\n\n pip install django-handyhelpers\n \n\nadd 'handyhelpers' to your INSTALLED_APPS (for management commands and templates)\n\n INSTALLED_APPS = [\n ...\n 'handyhelpers',\n ]\n\n\n# Management Commands \n\n### DRF Generator\nDjango-handyhelpers includes manage.py commands to generate DRF files (api views, serializers, urls) for a given app in your project.\nThis is done using jinja templates that define the structure of each file. Default templates are provided, and custom templates \ncan be provided in the command. By default, all models and models fields are included. \n\nExample command:\n\n manage.py generate_drf <my_app> --serializer\n manage.py generate_drf <my_app> --serializer --serializer_template <my_custom_template>\n\n** use the --help parameter for a full list of options\n\n manage.py generate_drf --help\n\n\n\n### Admin Generator\nIncluded with django-handyhelpers are manage.py commands to auto-generate an admin.py file for a given application in \nyour project. This is done using a jinja template that defines the structure of the admin.py file. A default template is \nprovided. \n\nExample command:\n\n manage.py generate_admin <my_app>\n manage.py generate_admin <my_app> --template <my_custom_template>\n \n** use the --help parameter for a full list of options\n \n manage.py generate-admin --help \n\n\n# Mixins\n\n### FilterByQueryParamsMixin\nAllows your list views to be filtered by query parameters.\n\n\n### InvalidLookupMixin\nReturns an applicable error, instead of results based on an unfiltered queryset, if a provided lookup expression, \nfilter, or model field is invalid. \n\n",
"bugtrack_url": null,
"license": "GPL-3.0",
"summary": "A collection of handy utilities to support django operations",
"version": "0.3.31",
"project_urls": {
"Download": "https://github.com/davidslusser/django-handyhelpers/archive/0.3.31.tar.gz",
"Homepage": "https://github.com/davidslusser/django-handyhelpers"
},
"split_keywords": [
"django",
" helpers",
" handyhelpers"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9db5d05f3c196ae71e91f3f1e6c809589e5ad5cedc3e1bab2f5cd4e732c10de6",
"md5": "dd0b9cb4565dc72ce8e3059c9ddfaabe",
"sha256": "ef593e6d58897867e38775d10125bf1ba4372f9bca48d4faecbc0681e12937ac"
},
"downloads": -1,
"filename": "django_handyhelpers-0.3.31-py3-none-any.whl",
"has_sig": false,
"md5_digest": "dd0b9cb4565dc72ce8e3059c9ddfaabe",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 19436710,
"upload_time": "2024-10-19T23:27:20",
"upload_time_iso_8601": "2024-10-19T23:27:20.187707Z",
"url": "https://files.pythonhosted.org/packages/9d/b5/d05f3c196ae71e91f3f1e6c809589e5ad5cedc3e1bab2f5cd4e732c10de6/django_handyhelpers-0.3.31-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7178980636f776cef16a34aecc0fc68a08df99b82adf598e699922413159d635",
"md5": "c4a4488c6b9713d1d3f23acc647a966b",
"sha256": "9b70993bf5f655ceef33a69b36c340018469b84e3e829039c5c66f537b01ea5e"
},
"downloads": -1,
"filename": "django_handyhelpers-0.3.31.tar.gz",
"has_sig": false,
"md5_digest": "c4a4488c6b9713d1d3f23acc647a966b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 16226201,
"upload_time": "2024-10-19T23:27:23",
"upload_time_iso_8601": "2024-10-19T23:27:23.209578Z",
"url": "https://files.pythonhosted.org/packages/71/78/980636f776cef16a34aecc0fc68a08df99b82adf598e699922413159d635/django_handyhelpers-0.3.31.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-19 23:27:23",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "davidslusser",
"github_project": "django-handyhelpers",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "Django",
"specs": []
},
{
"name": "djangorestframework",
"specs": []
},
{
"name": "djangorestframework-filters",
"specs": [
[
"==",
"1.0.0.dev0"
]
]
},
{
"name": "drf-dynamic-fields",
"specs": []
},
{
"name": "hurry.filesize",
"specs": []
},
{
"name": "Jinja2",
"specs": []
},
{
"name": "MarkupSafe",
"specs": []
},
{
"name": "python-dateutil",
"specs": []
},
{
"name": "sqlparse",
"specs": []
},
{
"name": "xlwt",
"specs": [
[
"==",
"1.3.0"
]
]
}
],
"lcname": "django-handyhelpers"
}