django-inspect-model

Model inspection for Django
Download

django-inspect-model Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Publisher Name:
  • Mathieu Agopian
  • Publisher web site:
  • https://github.com/magopian/

django-inspect-model Tags


django-inspect-model Description

Model inspection for Django django-inspect-model is a Django app for model inspection. It allows you to easily list all available "items" on a model, and get their value.An item is either:- a django field (standard field or relation field)- a standard attribute- a method that only takes one attribute: 'self'The code is generic enough to be applied on just any python object, so Django isn't a requirement. However, it was tailored towards Django models.Usage:Instantiate inspect_model.InspectModel with your model class or instance, and profit. >>> from django.contrib.comments.models import Comment >>> from inspect_model import InspectModel >>> im = InspectModel(Comment) >>> im.fields >>> im.attributes [] >>> im.methods Requirements: · Python · Django


django-inspect-model Related Software