{ "info": { "author": "Chris Spencer", "author_email": "chrisspen@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7" ], "description": "Python Source Code Field\n==========================\n\nIf you need to store python source code in a field in a django model, this\nis the app you need.\n\nObviously, you should not be accepting any old user data if you will be\nexecuting it, but for my use case (admin users only, needed complex data\nrules that varied between models), python code was the best choice.\n\nSo, you use it by:\n\n * ``$ python setup.py install``\n \n * add ``python_field`` to your ``settings.INSTALLED_APPS`` (optional, but\n required if you want syntax highlighting).\n \n * Use as follows in your model::\n \n from django.db import models\n from python_field.fields import PythonCodeField\n \n class MyModel(models.Model):\n ....\n source = PythonCodeField(blank=True, null=True)\n \n ....\n\nThe text will be compiled using the inbuild python ``compile()`` function,\nand errors will be shown in the form errors field.\n\nCodeMirror and Syntax Highlighting\n-------------------------------------\n\nThis package uses parts of the CodeMirror package for syntax highlighting, \nand for replacing the ``textarea`` with an editable iframe.\n\nParts of the CodeMirror package that are not required have not been included,\nand the package has been minified. [This is not the case just yet.]\n\nThe original license file is included for your reference.\n\nCodeMirror can be found at http://codemirror.net/\n\nHistory\n-------\n\nThis project is a fork of Matthew Schinckel's project\nat http://bitbucket.org/schinckel/django-python-code-field/.\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mwaaas/django-python-code-field.git", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "python_field", "package_url": "https://pypi.org/project/python_field/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/python_field/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/mwaaas/django-python-code-field.git" }, "release_url": "https://pypi.org/project/python_field/1.0.1/", "requires_dist": null, "requires_python": null, "summary": "Store python source code (syntax checked) in database.", "version": "1.0.1" }, "last_serial": 1791690, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "f6810cf24c56ee201792ba0e07a225f8", "sha256": "9367bc2fb4add9753434400378d5cb11262d53325f10ea16f52a2a1e44e4a7f7" }, "downloads": -1, "filename": "python_field-0.0.1.tar.gz", "has_sig": false, "md5_digest": "f6810cf24c56ee201792ba0e07a225f8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 43191, "upload_time": "2015-10-29T09:11:24", "url": "https://files.pythonhosted.org/packages/b7/0a/0ebf7d4a3319efbbafd9131453883920e9ebd5ea5cde4ffe5ab84ff70207/python_field-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "5fbcba8f7852fc88676fa675c0beb655", "sha256": "4e600992d839e1afbd0ee4af18e7c7f2013cb855983a48c713ebd373b8e3c6eb" }, "downloads": -1, "filename": "python_field-0.0.2.tar.gz", "has_sig": false, "md5_digest": "5fbcba8f7852fc88676fa675c0beb655", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2795, "upload_time": "2015-10-29T09:19:59", "url": "https://files.pythonhosted.org/packages/40/8f/80737a63b260257a6de28532c89ddbe824cf9a8389dd6082299406354c64/python_field-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "12d46fb4a63167cca9446e575eb54991", "sha256": "4a26aa27329f29046f5cf2c3f1c65d4aa782e5386a5196c75e603a95e55937fa" }, "downloads": -1, "filename": "python_field-0.0.3.tar.gz", "has_sig": false, "md5_digest": "12d46fb4a63167cca9446e575eb54991", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2798, "upload_time": "2015-10-29T09:21:04", "url": "https://files.pythonhosted.org/packages/b3/39/5ab02a1f94625f698163d16168dbfe4df7b8cfca0875415f6a963577a2d6/python_field-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "40e400651c7b90d87d9ce136ec63cbd4", "sha256": "03cfb5de14da2bd3673910ced96f0c451b084fc739267cba05b0d057857ccdca" }, "downloads": -1, "filename": "python_field-0.0.4.tar.gz", "has_sig": false, "md5_digest": "40e400651c7b90d87d9ce136ec63cbd4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 43166, "upload_time": "2015-10-29T09:21:36", "url": "https://files.pythonhosted.org/packages/dc/b9/872bfe73e4ca23714dac248c19ff84ba79375ec4f3798572fbcf8ebaba2c/python_field-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "a11543a17b353830bb976e8e8db26df0", "sha256": "bbf3d0b74d35d88add3ff32f040702c5e46fc314c77e260075cf9e8d030b33c2" }, "downloads": -1, "filename": "python_field-0.0.5.tar.gz", "has_sig": false, "md5_digest": "a11543a17b353830bb976e8e8db26df0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 43165, "upload_time": "2015-10-29T09:24:02", "url": "https://files.pythonhosted.org/packages/fa/e1/eae2d7fc00b9ef1e941bfa6e75d04a4877ed14fb6194900a64751d396275/python_field-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "7f29b1841c5ce9ba0d8c53bb34e29c84", "sha256": "d14d2efd895db3c98d7956939d0ae5f0fdd2e6ddf450c01039f51514a4deec71" }, "downloads": -1, "filename": "python_field-0.0.6.tar.gz", "has_sig": false, "md5_digest": "7f29b1841c5ce9ba0d8c53bb34e29c84", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 43194, "upload_time": "2015-10-29T09:33:09", "url": "https://files.pythonhosted.org/packages/42/62/c0de527e00989e404e2286eaa89d5668bbf51389ed7f892fe2bf215c8fa2/python_field-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "bf81ba5f933cab40507778749baeecd2", "sha256": "290158fd4e740ba709f4d4afe5e79d55c48a329cbc2c29b3d18010964f532f47" }, "downloads": -1, "filename": "python_field-0.0.7.tar.gz", "has_sig": false, "md5_digest": "bf81ba5f933cab40507778749baeecd2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 43203, "upload_time": "2015-10-29T10:39:24", "url": "https://files.pythonhosted.org/packages/9a/d9/8dbb7a8dc642fafb43701a475c5b556af1be998a307d4422db43658fe338/python_field-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "cde36059634895fd1ff169b17c3ff45f", "sha256": "a7b8c3fcc7ab7d7e0bd706cb94ee7a317d1ea6737e52772631f5c6bc479a9294" }, "downloads": -1, "filename": "python_field-0.0.8.tar.gz", "has_sig": false, "md5_digest": "cde36059634895fd1ff169b17c3ff45f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 43194, "upload_time": "2015-10-29T10:40:03", "url": "https://files.pythonhosted.org/packages/2d/91/20568d58319b3c142b6226ed6a78ab0fea2ffe6f0650644578b70af47a02/python_field-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "08e1e64c709fd583232279eb3676f9af", "sha256": "7042c3c12fd978a55dc01c86b69f1e4e72e714b1e69e1b0fce8acd716fae2cc1" }, "downloads": -1, "filename": "python_field-0.0.9.tar.gz", "has_sig": false, "md5_digest": "08e1e64c709fd583232279eb3676f9af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 43206, "upload_time": "2015-10-29T10:45:07", "url": "https://files.pythonhosted.org/packages/32/0f/27bcd0736d0dc5d1adb23aa77431296fc2702fcb2a44ca12aac048b47d19/python_field-0.0.9.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "5f90d44238bee557740444f203116ab9", "sha256": "9f5eb15b9835a26aefe2ae5d1e663bd391d9ea428ff2e5868b39feb321ce0c23" }, "downloads": -1, "filename": "python_field-1.0.0.tar.gz", "has_sig": false, "md5_digest": "5f90d44238bee557740444f203116ab9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 43191, "upload_time": "2015-10-29T10:45:54", "url": "https://files.pythonhosted.org/packages/0c/f2/9138bce51869945f9cdd5a674d8dfd794d3e319a82dab6525940a780e425/python_field-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "a63831dc34fc2706120a5683e2fece57", "sha256": "9ffffc9ad770b02cfa23215ea4f2dd556bcf0371768bf86747dbea07162fdb0e" }, "downloads": -1, "filename": "python_field-1.0.1.tar.gz", "has_sig": false, "md5_digest": "a63831dc34fc2706120a5683e2fece57", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 43204, "upload_time": "2015-10-29T10:47:10", "url": "https://files.pythonhosted.org/packages/1d/18/69438cb3ecd21672cca75e45ffacbc5ef37975b69898723b025c31b89c47/python_field-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a63831dc34fc2706120a5683e2fece57", "sha256": "9ffffc9ad770b02cfa23215ea4f2dd556bcf0371768bf86747dbea07162fdb0e" }, "downloads": -1, "filename": "python_field-1.0.1.tar.gz", "has_sig": false, "md5_digest": "a63831dc34fc2706120a5683e2fece57", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 43204, "upload_time": "2015-10-29T10:47:10", "url": "https://files.pythonhosted.org/packages/1d/18/69438cb3ecd21672cca75e45ffacbc5ef37975b69898723b025c31b89c47/python_field-1.0.1.tar.gz" } ] }