{ "info": { "author": "Jacobo de Vera", "author_email": "devel@jacobodevera.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Java", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: SQL", "Topic :: Database", "Topic :: Software Development :: Build Tools", "Topic :: Software Development :: Code Generators", "Topic :: Utilities" ], "description": "# Ogma\n\n> According to legend, he is the inventor of Ogham, the runic language in which Irish Gaelic was first written. \n\n**Ogma** is a database access code generator for Java. It will take your database schema definition written in a Python-based DSL and generate (with jOOQ, among others) the necessary Java code to perform typed queries on that database.\n\nIt can also generate the necessary DDL to create the database structure according to spec.\n\n*Ogma* has been written for MySQL and MariaDB, but could be made to work with other engines that are both supported by SQLAlchemy and jOOQ.\n\n# How to install\n\nJust run the usual for a Python package:\n\n```bash\npip install ogma\n```\n\nThen you can run `ogma`.\n\n# Code generation and other tools\n\n*Ogma* obviously generates code, but it can also do other things. The tool is organized with subcommands.\n\n## Generation\n\nThe `generate` subcommand is used to generate Java code from the model file. The model file is a Python with some restrictions and additions:\n\n1. There is an implicit import of everything from `modelutils`\n1. No imports are allowed\n\n# For Developers\n## Structure\n * `modelutils` contains all the code that is imported into the database model files and that internally deals with model operations.\n * `commands` contains the entry points for the tool's subcommands\n * `templates` contains *mustache* templates for jOOQ's configuration and additional generated Java code\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://www.github.com/jdevera/ogma", "keywords": "", "license": "MIT", "maintainer": "Jacobo de Vera", "maintainer_email": "devel@jacobodevera.com", "name": "ogma", "package_url": "https://pypi.org/project/ogma/", "platform": "", "project_url": "https://pypi.org/project/ogma/", "project_urls": { "Homepage": "https://www.github.com/jdevera/ogma" }, "release_url": "https://pypi.org/project/ogma/0.1.0/", "requires_dist": [ "SQLAlchemy (>=1.3,<1.4)", "PyMySQL (>=0.9,<0.10)", "argcomplete (>=1.10,<1.11)", "colorama (>=0.4,<0.5)", "colored (>=1.3,<1.4)", "pystache (>=0.5,<0.6)" ], "requires_python": ">=3.6,<4.0", "summary": "Ogma: A database access code generator for Java", "version": "0.1.0" }, "last_serial": 5440531, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "21460670015e6e80294ac7923c77ce89", "sha256": "3ebd4571028ecc240b5f723861ca70e8c80dd6ff16278b517e854cc375e471c9" }, "downloads": -1, "filename": "ogma-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "21460670015e6e80294ac7923c77ce89", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 26193, "upload_time": "2019-06-24T12:50:35", "url": "https://files.pythonhosted.org/packages/cd/e3/8e0b964f969d5dad66633fef5bdf5bc9ff9d82cc9653f1150920327ffdb8/ogma-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a67bdb7f2e19e80a683ed59ffe55b52a", "sha256": "3502eb30f7ed0986ecd349e76f2bdf9fd50128000ff58f8349f28651fd3744a8" }, "downloads": -1, "filename": "ogma-0.1.0.tar.gz", "has_sig": false, "md5_digest": "a67bdb7f2e19e80a683ed59ffe55b52a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 20777, "upload_time": "2019-06-24T12:50:38", "url": "https://files.pythonhosted.org/packages/3f/27/20bb14202766109a240499d6d44e658dfc992e81f4aac9f75aafeefb521f/ogma-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "21460670015e6e80294ac7923c77ce89", "sha256": "3ebd4571028ecc240b5f723861ca70e8c80dd6ff16278b517e854cc375e471c9" }, "downloads": -1, "filename": "ogma-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "21460670015e6e80294ac7923c77ce89", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 26193, "upload_time": "2019-06-24T12:50:35", "url": "https://files.pythonhosted.org/packages/cd/e3/8e0b964f969d5dad66633fef5bdf5bc9ff9d82cc9653f1150920327ffdb8/ogma-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a67bdb7f2e19e80a683ed59ffe55b52a", "sha256": "3502eb30f7ed0986ecd349e76f2bdf9fd50128000ff58f8349f28651fd3744a8" }, "downloads": -1, "filename": "ogma-0.1.0.tar.gz", "has_sig": false, "md5_digest": "a67bdb7f2e19e80a683ed59ffe55b52a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 20777, "upload_time": "2019-06-24T12:50:38", "url": "https://files.pythonhosted.org/packages/3f/27/20bb14202766109a240499d6d44e658dfc992e81f4aac9f75aafeefb521f/ogma-0.1.0.tar.gz" } ] }