{ "info": { "author": "UNKNOWN", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [], "description": "*****************\nTastypie Sepomex\n*****************\n\nLittle django application that exposes the sepomex database in a RESTful way.\n\n.. image:: https://api.travis-ci.org/slackmart/tastypie-sepomex.svg?branch=master\n :target: https://travis-ci.org/slackmart/tastypie-sepomex\n\n.. image:: https://coveralls.io/repos/slackmart/tastypie-sepomex/badge.svg?branch=master&service=github\n :target: https://coveralls.io/github/slackmart/tastypie-sepomex?branch=master \n\nInstallation\n============\n\n::\n\n $ pip install django-tastypie-sepomex\n\nConfiguration\n=============\n\n1. Once installed, you must add `sepomex` to your `INSTALLED_APPS`\n\n::\n\n INSTALLED_APPS += ['sepomex']\n\n2. Apply migrate command to add the sepomex models to your database.\n\n::\n\n $ python manage.py migrate sepomex\n\n3. The sepomex data is provided in a file called `sepomex-data.tar.gz`, you need to extract the content.\n\n::\n\n $ tar xvf sepomex-data.tar.gz\n\n4. Populate your sepomex models\n\n::\n\n $ python manage.py loadsepomex\n\nThis command will call the `loadmxstates` and `loadmxmunicipalities` commands. It finally will fill the `sepomex_mxasentamiento` table to complete the process.\n\nRun your server\n===============\n\n::\n\n $ python manage.py runserver\n\n\n... and use the endpoints provided\n==================================\n\nGet the list of states\n----------------------\n\nThere are 32 states, so we pass that as a query string.\n\n::\n\n $ curl localhost:8000/api/v1/mxestado/?limit=32\n\nList first 20 municipalities for Coahuila\n-----------------------------------------\n\nCoahuila's id is 5. If not specified, the limit objects per query is 20\n\n::\n\n $ curl localhost:8000/api/v1/mxmunicipio/?mx_estado__id=5\n\nActivate sepomex logger\n-----------------------\n\nExample of `LOGGING` dict in `settings.py`. You might have more loggers.\n\n::\n\n LOGGING = {\n 'version': 1.0,\n 'disable_existing_loggers': False,\n 'handlers': {\n 'console': {\n 'class': 'logging.StreamHandler'\n }\n },\n 'loggers': {\n 'sepomex': {\n 'handlers': ['console'],\n 'level': os.getenv('DJANGO_LOG_LEVEL', 'INFO'),\n },\n # Your loggers here\n }\n }\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/slackmart/tastypie-sepomex", "keywords": "sepomex,tastypie,django", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-tastypie-sepomex", "package_url": "https://pypi.org/project/django-tastypie-sepomex/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-tastypie-sepomex/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/slackmart/tastypie-sepomex" }, "release_url": "https://pypi.org/project/django-tastypie-sepomex/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Little django application that exposes the sepomex database in a RESTful way.", "version": "0.1.0" }, "last_serial": 2491191, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "f718ad43e8114f5babaed4277ec294e7", "sha256": "3abd27f8708cd2755aad14238824a3adb80b1da951503e5ae73d3546eda431b3" }, "downloads": -1, "filename": "django-tastypie-sepomex-0.0.1.tar.gz", "has_sig": false, "md5_digest": "f718ad43e8114f5babaed4277ec294e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4312, "upload_time": "2016-04-30T18:08:52", "url": "https://files.pythonhosted.org/packages/f7/b8/78f664412407479c80c73753c3c4bdc324d1500a090161c4bf421f7bcbe5/django-tastypie-sepomex-0.0.1.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "51358f672e2b1fdae049a76d592cdcc1", "sha256": "d4d77774c833bcf5a06f0c5de67b58b9cc758d182312f89007b03e02d62be724" }, "downloads": -1, "filename": "django-tastypie-sepomex-0.1.0.tar.gz", "has_sig": false, "md5_digest": "51358f672e2b1fdae049a76d592cdcc1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4952, "upload_time": "2016-11-30T08:16:33", "url": "https://files.pythonhosted.org/packages/3d/7c/b94c802902fb15ebf5e5854864b03093ced401eefffa1675a00a2996af29/django-tastypie-sepomex-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "51358f672e2b1fdae049a76d592cdcc1", "sha256": "d4d77774c833bcf5a06f0c5de67b58b9cc758d182312f89007b03e02d62be724" }, "downloads": -1, "filename": "django-tastypie-sepomex-0.1.0.tar.gz", "has_sig": false, "md5_digest": "51358f672e2b1fdae049a76d592cdcc1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4952, "upload_time": "2016-11-30T08:16:33", "url": "https://files.pythonhosted.org/packages/3d/7c/b94c802902fb15ebf5e5854864b03093ced401eefffa1675a00a2996af29/django-tastypie-sepomex-0.1.0.tar.gz" } ] }