This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

This module is a code generator, it can read Django models and outputs corresponding ones for schematics.

Of course, this is code generation, therefore a damn bad idea. This won’t keep your stuff synced.

It’s still useful, however. Sometimes you’re converting a large Django code base to domain models in schematics. In those cases, it’s a royal pain to mechanically retype hundreds of models and thousands of field definitions by hand. We have computers for that, you know.

You can either run this as a stand alone script or use it as a library.

As a Stand Alone Script

Add django2schematics to your INSTALLED_APPS settings. Then:

python 2_schematics app_name

You can specify full apps or models to export. By default the script will output to stdout. The –to-file flag will save each app models into [app-dir]/

See –help for more options.

As a Library

If you’d rather process the ouput your self then:

from django2scheamtics.exporter import SchematicsModel
# or as a string


Let me know if this works (or doesn’t) for you. Feedback is always welcome.

Feedback with accompanying pull requests and tests will buy you a beer on me next time you’re in São Paulo. Or tea, if that’s your thing.

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting