{ "info": { "author": "Blag", "author_email": "blag@users.noreply.github.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Intended Audience :: Science/Research", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Internet :: WWW/HTTP", "Topic :: Scientific/Engineering :: Information Analysis", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: Linguistic" ], "description": "**********************\nDjango World Languages\n**********************\n\nDjango World Languages (DWL) provides you with language related models:\n\n* ``Language``\n* ``Family`` - Both ISO 639-5 and Glottolog language families\n* ``Dialect`` - Slightly different dictions and pronunciations of languages\n* ``LexicalSimilarity`` - Similarities between languages\n\nand language metadata:\n\n* ``UsedIn`` - Maps languages to countries they are spoken in\n* ``Characteristic`` - Common characteristics of languages (word type orders, number of speech sounds, subject/verb/object order, syllable patterns)\n* ``Script`` and ``ScriptStyle`` - Characters that are used in languages\n* ``DevelopmentNote`` - Development statuses of languages (tags, Bible translations, literacy rates)\n\n============\nInstallation\n============\n\n1. Install it with pip:\n\n .. code-block:: bash\n\n pip install django-world-languages\n\n2. Add ``world_languages`` to the ``INSTALLED_APPS`` variable in your project's ``settings.py`` file:\n \n .. code-block:: python\n\n INSTALLED_APPS = [\n # ...\n 'world_languages',\n # ...\n ]\n\n3. Create the database tables:\n \n .. code-block:: bash\n\n python manage.py migrate world_languages\n\n=============\nConfiguration\n=============\n\nAll configuration options should be specified in the ``LANGUAGE_SETTINGS``\nvariable in your project's ``settings.py`` file.\n\n* ``PLUGINS`` - You can specify your own functions to run before and after a language is created. This should be specified as a dictionary mapping signal names to your custom function in dotted-module notation.\n\n **Example**\n\n .. code-block:: python\n\n LANGUAGE_SETTINGS = {\n 'PLUGINS': {\n 'pre_language': 'custom_app.utils.function_name'\n },\n # ...\n }\n\n* ``FILES`` - You can also specify your own URLs where files are hosted.\n\n **Example**\n\n .. code-block:: python\n\n LANGUAGE_SETINGS = {\n # ...\n 'FILES': {\n 'language': {\n 'filename': 'iso-languagecodes.txt',\n 'urls': [url_bases['geonames']['dump'] + '{filename}'],\n 'fields': [\n 'iso639-3',\n 'iso639-2',\n 'iso639-1',\n 'name',\n ]\n },\n 'glottolog': {\n 'filename': 'languages.yaml',\n 'urls': [url_bases['glottolog']['languoids'] + '{filename}'],\n }\n }\n }\n\n===========\nImport Data\n===========\n\nOnce you have created the models and adjusted the settings to your liking, you\nwill need to import data into your database with the provided\n``world_languages`` management command:\n\n.. code-block:: bash\n\n python manage.py world_languages --import=all\n\n====\nTODO\n====\n\n* Tests\n* Add import signals for all models, not just ``Language``\n\n==============\nReporting Bugs\n==============\n\nThis package uses regexes to parse downloaded YAML, HTML, and text files from\nGlottolog_, Wikipedia_, and Geonames_. If you find a bug, especially in the\nimport script, please open an issue on `Github `_.\n\n.. _Glottolog: https://github.com/clld/glottolog-data/blob/master/languoids/languages.yaml\n.. _Wikipedia: https://en.wikipedia.org/wiki/ISO_639\n.. _Geonames: http://download.geonames.org/export/dump/iso-languagecodes.txt", "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/blag/django-world-languages", "keywords": "languages,dialects,linguistics", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-world-languages", "package_url": "https://pypi.org/project/django-world-languages/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-world-languages/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/blag/django-world-languages" }, "release_url": "https://pypi.org/project/django-world-languages/0.1/", "requires_dist": null, "requires_python": null, "summary": "Languages and dialects of the world for Django projects", "version": "0.1" }, "last_serial": 2132461, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "21f9d5dc75e21e7ca07c7a9960eaab92", "sha256": "9d3cc0914af675f4c7daf34db7ad6391de340768e0518e5d4bf0b33b3e1e1e10" }, "downloads": -1, "filename": "django-world-languages-0.1.tar.gz", "has_sig": false, "md5_digest": "21f9d5dc75e21e7ca07c7a9960eaab92", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 53798, "upload_time": "2016-05-25T06:49:02", "url": "https://files.pythonhosted.org/packages/10/0d/4815340d40c1330dd5ebcce890f0957a1a62531b760249cb4398ef1039ae/django-world-languages-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "21f9d5dc75e21e7ca07c7a9960eaab92", "sha256": "9d3cc0914af675f4c7daf34db7ad6391de340768e0518e5d4bf0b33b3e1e1e10" }, "downloads": -1, "filename": "django-world-languages-0.1.tar.gz", "has_sig": false, "md5_digest": "21f9d5dc75e21e7ca07c7a9960eaab92", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 53798, "upload_time": "2016-05-25T06:49:02", "url": "https://files.pythonhosted.org/packages/10/0d/4815340d40c1330dd5ebcce890f0957a1a62531b760249cb4398ef1039ae/django-world-languages-0.1.tar.gz" } ] }