Registry / devops / django-autotyping

django-autotyping

JSON →
library0.5.1pypypi✓ verified 81d ago

Automatically add type hints for Django powered applications. Version 0.5.1. Helps with Django type annotations for querysets, models, and more. Release cadence: infrequent, focused on compatibility.

pip install django-autotyping
INSTALL
IMPORT
SIG · DJANGO-AUTOTYPING
D
django-autotyping
devopspythonv0.5.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

django_autotyping
import django_autotyping
import autotyping

Add the app and run the management command to auto-add type hints.

# Add to INSTALLED_APPS in Django settings INSTALLED_APPS = [ ... 'django_autotyping', ] # Then use management command: # python manage.py autotype
Debug
Known issues
gotchaThe management command might overwrite existing annotations. Backup your code first.
fix
Use version control and review diffs before committing.
affects: all
deprecatedPython 3.8 support is deprecated; Python 3.9+ recommended.
fix
Upgrade to Python 3.9+
affects: >=0.5.0
gotchaEnsure django-stubs is installed for full type inference.
fix
pip install django-stubs
affects: all
Upgrade
Version history
0.5.1latest on PyPI · released May 29, 2024
Audit
Dependencies
djangorequiredPrimary framework being typed
django-stubsoptionalRequired for type annotations on Django
Agent activity
7 hits · last 30 days
node
6
Resources
django-autotyping — pip install django-autotyping · libregistry