Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Author | David Slusser | |
Description | A collection of handy utilities to support django projects | |
Requirements | Python 3.x Django 2.2.x |
Full documentation can be found on http://django-handyhelpers.readthedocs.org. Documentation source files are available in the docs folder.
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',
]
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
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
Allows your list views to be filtered by query parameters.
Returns an applicable error, instead of results based on an unfiltered queryset, if a provided lookup expression, filter, or model field is invalid.
FAQs
A collection of handy utilities to support django operations
We found that django-handyhelpers demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.