{ "info": { "author": "Matthew Power", "author_email": "matthew@mthpower.uk", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Natural Language :: English", "Programming Language :: Python", "Topic :: Software Development", "Topic :: Utilities" ], "description": "Taal\n====\n\nTaal is a framework for translating your data. It plugs in to e.g. `SQLAlchemy\n`_ or `Kaiso\n`_, providing a ``TranslatableString``\nfield type and a mechanism for storing and retrieving content in multiple\nlanguages.\n\n\nFor use-cases where the most common interaction with the translated data is for\nreading, an application can be set up so that language context and translations\nare handled centrally, after which business logic can be written almost as it\nwould for a single-language app.\n\nPhilosophy\n----------\n\nTaal uses a two-phase process for managing translatable data. Upon retrieval,\ndata is marked up as \"requires translation\". Subsequently (typically higher up\nin the stack, e.g. in some middleware), information about which particular\nlanguage we are interested in may be supplied to find the actual translation\nstring.\n\n\nExample use\n-----------\n\n::\n\n class MyModel(Base):\n __tablename__ = \"my_model\"\n\n id = Column(Integer, primary_key=True)\n name = Column(TranslatableString())\n\n::\n\n\n >>> instance = session.query(MyModel).first()\n >>> instance.name\n \n\n >>> translator = get_translator('en')\n >>> translator.translate(instance.name)\n \"Spam\"\n\n\nDevelopment\n===========\n\nTo make your life easier, create a ``setup.cfg`` file with a ``[pytest]``\nsection to define your database and neo4j connection strings::\n\n $ cat setup.cfg\n [pytest]\n addopts= --neo4j_uri=http://... --db_uri=mysql://...\n\n(Note that pytest gets upset if you indent the ``addopts`` line)", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mthpower/taal", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "mthpower-taal", "package_url": "https://pypi.org/project/mthpower-taal/", "platform": "", "project_url": "https://pypi.org/project/mthpower-taal/", "project_urls": { "Homepage": "https://github.com/mthpower/taal" }, "release_url": "https://pypi.org/project/mthpower-taal/0.9.1/", "requires_dist": null, "requires_python": "", "summary": "Model translations", "version": "0.9.1" }, "last_serial": 3374975, "releases": { "0.9.0": [ { "comment_text": "", "digests": { "md5": "2340a167c0d72fb2a5af160f8f852651", "sha256": "7336c2f681e73edd61d631e0afd0bf46af5ffdc08888740ac796d1595a942ef4" }, "downloads": -1, "filename": "mthpower_taal-0.9.0-py2-none-any.whl", "has_sig": false, "md5_digest": "2340a167c0d72fb2a5af160f8f852651", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 17868, "upload_time": "2017-11-28T10:42:51", "url": "https://files.pythonhosted.org/packages/fe/90/97527b5f1d91616647411da050c544dc6695874857bd046f7da58cd004a3/mthpower_taal-0.9.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "189ae2c50e55ce5fdad3632fa8b1d311", "sha256": "4b2f2adad3cbe28bd2147c4aa5a1b8f1abe843fcf8d377aa73b9b86aee684aa0" }, "downloads": -1, "filename": "mthpower-taal-0.9.0.tar.gz", "has_sig": false, "md5_digest": "189ae2c50e55ce5fdad3632fa8b1d311", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13660, "upload_time": "2017-11-28T10:42:53", "url": "https://files.pythonhosted.org/packages/e6/1b/e8c24c41a3e4b848a298ebcd4ee9b220158ab9800c2ff6513b994e737c11/mthpower-taal-0.9.0.tar.gz" } ], "0.9.1": [ { "comment_text": "", "digests": { "md5": "f46b5caec08441cf18a38d114803becf", "sha256": "b78459b2ad4bc3bc6e4e091007145873b115f0e6ff2402286614543242d88dea" }, "downloads": -1, "filename": "mthpower-taal-0.9.1.tar.gz", "has_sig": false, "md5_digest": "f46b5caec08441cf18a38d114803becf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13642, "upload_time": "2017-11-29T18:43:09", "url": "https://files.pythonhosted.org/packages/40/49/eee07b9c0e7ef1cd7ed03472a0255144640d62263c1c61bbd73271bd3ce2/mthpower-taal-0.9.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f46b5caec08441cf18a38d114803becf", "sha256": "b78459b2ad4bc3bc6e4e091007145873b115f0e6ff2402286614543242d88dea" }, "downloads": -1, "filename": "mthpower-taal-0.9.1.tar.gz", "has_sig": false, "md5_digest": "f46b5caec08441cf18a38d114803becf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13642, "upload_time": "2017-11-29T18:43:09", "url": "https://files.pythonhosted.org/packages/40/49/eee07b9c0e7ef1cd7ed03472a0255144640d62263c1c61bbd73271bd3ce2/mthpower-taal-0.9.1.tar.gz" } ] }