{ "info": { "author": "Guinsly Mondesir", "author_email": "guinslym@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2.7" ], "description": "# UottawaOdesiUtils\n\nCeci est une librairie pour agir en tant que Helper pour travailler avec les Documentations xml d'Odesi. Le logiciel SPPS va abr\u00e9g\u00e9 toutes les phrases qui ont une taille plus grande que 251 caract\u00e8res. Le but de cette libraire est de rendre plus facile de faire la traduction des `` et des balises `` en cr\u00e9ant un hash des valeurs des balises. Ensuite je pourrai savoir quel `` sera \u00e9court\u00e9 en examinant la taille totale de caract\u00e8res contenu dans cette balise et utilis\u00e9 une application comme Flask/Django pour faire la traduction ou pour modifier la pharse \u00e9court\u00e9e par SPSS.\n\nThis is an utils library to work with DDI-xml. The purpose of this library is to ease the process of translating variable label in a document. This library will retrieve the `` and the `` value of an IDD file and will also tell if the label.size is greater than 251 caracters, that will mean that it will be chopped in SPSS. So that it will be easy to create a json file, export it to a db for a Rails/Flask app. \n\n####Ruby\nThe ruby gem can be found [here](https://github.com/guinslym/uottawa_odesi_utils)\n\n## Installation\n\n\t$ pip install pyodesiutils\n\nOr install it yourself as:\n\n $ python setup.py\n\n## Usage example\n\nDealing with one Documentation file\n```python\n>>> from pyodesiutils import retrieve_label_and_qstnlit\na = retrieve_label_and_qstnlit('esg-c-25.xml')\nprint(a[0])\n>>>{'label_warning': False, 'variable_name': u'ABCDEF', 'qstnLit': u\"Num\\xe9ro d'identification de l'enregistrement.\", 'label': u\"Num\\xe9ro d'identification de l'enregistrement.\"}\n```\n\nComparing two files\n```python\n>>>from pyodesiutils import bilingual_files\n\tcontent = bilingual_files('esg-cycle-xx_fr.xml', 'gss-cycle-xx_en.xml')\n\t#french file must be first\n\tprint(content[0])\n\t=> {\n'label_warning_fr': False, 'variable_name': u'ABCDEF', 'qstnLit_fr': u\"Num\\xe9ro d'identification de l'enregistrement.\", 'label_fr': u\"Num\\xe9ro d'identification de l'enregistrement.\",\n'label_warning_en': False, 'qstnLit_en': u\"Record identification.\", 'label_en': u\"Record identification\"\t\n}\n```\nNow it's easier to create a web app so that I can view the English and the French translation side-by-side and make corrections if the translation is not good enough or if the label size is greater than 251 character\n\n##TODO\nFlask app to put the json in a DB\nTest file\n\n## Contributing\n\n1. Fork it ( https://github.com/guinslym/pyodesiutils/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request", "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/guinslym/pyodesi_utils", "keywords": "ddi,idd,statcan,survey,xml", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "pyodesiutils", "package_url": "https://pypi.org/project/pyodesiutils/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pyodesiutils/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/guinslym/pyodesi_utils" }, "release_url": "https://pypi.org/project/pyodesiutils/0.0.4/", "requires_dist": null, "requires_python": null, "summary": "Helper for ODESI xml DDI documentation file", "version": "0.0.4" }, "last_serial": 1453517, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "98b0a46deb67f3959360911ec78e491d", "sha256": "7278d3a8f66470b8aa70e03eadc6461180b34bc71bb7ea5d9f208c4944e6f33b" }, "downloads": -1, "filename": "pyodesiutils-0.0.2.tar.gz", "has_sig": false, "md5_digest": "98b0a46deb67f3959360911ec78e491d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2038, "upload_time": "2015-03-09T01:00:43", "url": "https://files.pythonhosted.org/packages/63/be/cfb9bf1adc7c085b4c80217b2484a47490a1c8ee3802c1544277a485dbf1/pyodesiutils-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "c9c3fb9dd6cd10e280c2ccf936db3657", "sha256": "72b27b7ea80d767bcde2cfd9070f784140584f1b414a130577d7e42c90cc77db" }, "downloads": -1, "filename": "pyodesiutils-0.0.3.tar.gz", "has_sig": false, "md5_digest": "c9c3fb9dd6cd10e280c2ccf936db3657", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2489, "upload_time": "2015-03-09T01:04:15", "url": "https://files.pythonhosted.org/packages/c9/23/c53e1d8621b428f3baeeec28588c8b13fb822cd2ede6bd5af317b9d7e57b/pyodesiutils-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "f9174e4df547daacfabb01787f2f0cf7", "sha256": "6ad3b6c496c5c12682a9cc209edfe9a2e9b52fd63f2c6ebecf88fe7c8c952c8b" }, "downloads": -1, "filename": "pyodesiutils-0.0.4.tar.gz", "has_sig": false, "md5_digest": "f9174e4df547daacfabb01787f2f0cf7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3139, "upload_time": "2015-03-09T01:05:35", "url": "https://files.pythonhosted.org/packages/9e/ae/5abdaf73fe538161725c81ce0374ccef0d5843de4ebd90f25960337c966e/pyodesiutils-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f9174e4df547daacfabb01787f2f0cf7", "sha256": "6ad3b6c496c5c12682a9cc209edfe9a2e9b52fd63f2c6ebecf88fe7c8c952c8b" }, "downloads": -1, "filename": "pyodesiutils-0.0.4.tar.gz", "has_sig": false, "md5_digest": "f9174e4df547daacfabb01787f2f0cf7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3139, "upload_time": "2015-03-09T01:05:35", "url": "https://files.pythonhosted.org/packages/9e/ae/5abdaf73fe538161725c81ce0374ccef0d5843de4ebd90f25960337c966e/pyodesiutils-0.0.4.tar.gz" } ] }