Skip to main content

AutoCode is a flexible tool to autogenerate a model from an existing database.

Project description

This is a tool that helps you creating a model based on an existing database scheme. The resulting code will be compatible with sqlalchemy.

Installation:

easy_install sqlautocode
$PYTHON/bin/sqlautocode

Example:

sqlautocode postgres://user:password@myhost/database -o out.py -t person*,account

Options:

-h, --help            show this help message and exit
-o OUTPUT, --output=OUTPUT
                      Write to file (default is stdout)
--force               Overwrite file (default is stdout)
-s SCHEMA, --schema=SCHEMA
                      Optional, reflect a non-default schema
-t TABLES, --tables=TABLES
                      Optional, only reflect this comma-separated list of
                      tables. Wildcarding with '*' is supported, e.g:
                      --tables account_*,orders,order_items,*_audit
-i, --noindexes, --noindex
                      Do not emit index information
-g, --generic-types   Emit generic ANSI column types instead of database-
                      specific.
--encoding=ENCODING   Encoding for output, default utf8
-e, --example         Generate code with examples how to access data (outdated)
-3, --z3c             Generate code for use with z3c.sqlalchemy

For more information and sourcecode go to: http://code.google.com/p/sqlautocode/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqlautocode-0.5.2.tar.gz (14.1 kB view details)

Uploaded Source

File details

Details for the file sqlautocode-0.5.2.tar.gz.

File metadata

  • Download URL: sqlautocode-0.5.2.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sqlautocode-0.5.2.tar.gz
Algorithm Hash digest
SHA256 be09fd1cdaa936d1072013ce6eaa74c6e08ea03ccf7898445bb4757a862a1457
MD5 f2ca087e3073f69edf65907a41fd51d8
BLAKE2b-256 5ccbac042977c5b2547c2b7f8710317501f2e2cf768250d8633dbc71a1c44414

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page