Command line tools to create new Camelot projects and manage existing ones.
camelot_admin is a tool to assist in the creation and development of Camelot projects. Use this application without any options to start a GUI to create a new Camelot project.
Starts a new project, use startproject project_name.
Outputs a message file with all field names of all entities. This command requires settings.py of the project to be in the PYTHONPATH
Extract API documentation from source code, to be used with sphinx.
Change the license header of a project, use license_update project_directory license_file
Takes a folder with PyQt4 source code and translates it to PySide source code. A directory to_pyside will be created containing the output of the translation
Bases: optparse.OptionParser
camelot_manage is oriented towards administrators of an installed camelot application. It is used for interacting the database, the model and migration of the database to a certain schema revision.
To use this application, PYTHONPATH should contain a valid settings.py file that will be used to resolve the database engine and the model.
Launches a python console with the model all setup for command line interaction.
Within the example movie project one could do the following to print a list of all movie titles to the screen:
from model import Movie
for movie in Movie.query.all():
print movie.title
Get the version of the database schema from the current database
Get the latest available database schema version
Upgrade or downgrade the database to the specified version, use upgrade version_number.
Put the database under version control
Generate a graph of the database schema. The result is stored in schema.png. This option requires pydot to be installed.
Bases: optparse.OptionParser
Cache the stdout text so we can analyze it before returning it
Bases: code.InteractiveConsole
Wrapper around Python that can filter input/output to the shell
Utility functions and classes to start a new Camelot project, this could be the start of MetaCamelot
Bases: camelot.admin.action.base.Action
Action to create a new project, based on a form with options the user fills in.
Bases: camelot.admin.application_admin.ApplicationAdmin
ApplicationAdmin class to be used within meta camelot
Bases: camelot.view.main.Application
A Camelot application to build new Camelot projects.
Bases: object
settings target to be used within MetaCamelot, when no real settings are available yet
Bases: object
Bases: camelot.admin.object_admin.ObjectAdmin