{ "info": { "author": "Jun-ya HASEBA", "author_email": "7pairs@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Internet" ], "description": "====\npyny\n====\n\n.. image:: https://travis-ci.org/7pairs/pyny.svg?branch=master\n :target: https://travis-ci.org/7pairs/pyny\n\n.. image:: https://coveralls.io/repos/7pairs/pyny/badge.svg?branch=master\n :target: https://coveralls.io/r/7pairs/pyny?branch=master\n\nSample\n------\n\n::\n\n >>> from pyny import api\n >>> data = api.get_by_id('c1161', 2)\n >>>\n >>> import pprint\n >>> p = pprint.PrettyPrinter()\n >>> p.pprint(data)\n {'attrs': {'attr0': '\u5e02\u5f79\u6240\u30fb\u51fa\u5f35\u6240',\n 'attr1': '\u51fa\u5f35\u6240',\n 'attr2': '\u304a\u304a\u305f\u304b\u306e\u68ee\u51fa\u5f35\u6240',\n 'attr3': '\u6d41\u5c71\u5e02\u897f\u521d\u77f36-185-2\uff08\u6d41\u5c71\u304a\u304a\u305f\u304b\u306e\u68eeS\u30fbC\u51853\u968e\uff09',\n 'attr6': '35.8706965',\n 'attr7': '139.9261438',\n 'attr8': '04-7154-0333 '},\n 'created': '2013/07/19 17:01:02',\n 'distance': 0,\n 'feature_id': 2,\n 'files': {},\n 'geometry': 'POINT(139.9261438 35.8706965)',\n 'layer_id': 'c1161',\n 'mid': 0,\n 'moduserid': 0,\n 'status': 0,\n 'user_id': 307}\n >>>\n >>> from pyny.models import Model\n >>> from pyny.fields import DecimalField, StringField\n >>>\n >>> class SampleModel(Model):\n ... layer_id = StringField()\n ... longitude = DecimalField('attrs.attr7')\n ...\n >>> data = SampleModel.get_by_id('c1161', 2)\n >>> data.layer_id\n 'c1161'\n >>> data.longitude\n Decimal('139.9261438')\n >>>\n\nDocumentation\n-------------\n\nhttps://github.com/7pairs/pyny/blob/master/docs/usage.md", "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/7pairs/pyny", "keywords": "web,api,opendata,nagareyama", "license": "Apache License, Version 2.0", "maintainer": null, "maintainer_email": null, "name": "pyny", "package_url": "https://pypi.org/project/pyny/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pyny/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/7pairs/pyny" }, "release_url": "https://pypi.org/project/pyny/1.1.0/", "requires_dist": null, "requires_python": null, "summary": "Python wrapper around the Nagareyama Open Data Web API", "version": "1.1.0" }, "last_serial": 1615725, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "ab90b34fde090280e1e037a76ad41929", "sha256": "0313292413f9571089fedf835f7ee6c3e6ff7cca484c8a10f1088ae7012c2a60" }, "downloads": -1, "filename": "pyny-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "ab90b34fde090280e1e037a76ad41929", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 8424, "upload_time": "2015-06-24T06:35:12", "url": "https://files.pythonhosted.org/packages/af/df/1fc908fc17f6aa41e052805d4e55b04e6aae1b077950c66ca8f3852e5fe4/pyny-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f537f73264c80dd57a802e8d80cae36d", "sha256": "f43c82b42d6b0b676ecc0460177c742cfa12e91a86bfe6187e62f2055e095f5e" }, "downloads": -1, "filename": "pyny-1.0.0.tar.gz", "has_sig": false, "md5_digest": "f537f73264c80dd57a802e8d80cae36d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4841, "upload_time": "2015-06-24T06:35:08", "url": "https://files.pythonhosted.org/packages/aa/6d/44d91cd111705d0bc5fdaa44af318f355dad41150989bf9e838e7cde4b1e/pyny-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "beea6e4088a8133b1dcf0539abbe52b0", "sha256": "3d0a85419371385d2fabd3820ad081d2c8e960b4085a55a4839609ae0b11f9bd" }, "downloads": -1, "filename": "pyny-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "beea6e4088a8133b1dcf0539abbe52b0", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 8619, "upload_time": "2015-07-02T02:55:04", "url": "https://files.pythonhosted.org/packages/ad/f3/c5b3b8f04a574ed80fb1bad70b26c0e1e16dac016bd6ae1a8e1aca240503/pyny-1.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "db8bba7f8fc6980310dd6e1fdbade83c", "sha256": "03b624131cfa6c27482bd2dafaa917495ddd205f9d2a3023601a87b85483660d" }, "downloads": -1, "filename": "pyny-1.1.0.tar.gz", "has_sig": false, "md5_digest": "db8bba7f8fc6980310dd6e1fdbade83c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5008, "upload_time": "2015-07-02T02:54:57", "url": "https://files.pythonhosted.org/packages/62/96/831db13a0a08f92381f2fa237f765c0b94188876d52f2be65b5e4a980340/pyny-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "beea6e4088a8133b1dcf0539abbe52b0", "sha256": "3d0a85419371385d2fabd3820ad081d2c8e960b4085a55a4839609ae0b11f9bd" }, "downloads": -1, "filename": "pyny-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "beea6e4088a8133b1dcf0539abbe52b0", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 8619, "upload_time": "2015-07-02T02:55:04", "url": "https://files.pythonhosted.org/packages/ad/f3/c5b3b8f04a574ed80fb1bad70b26c0e1e16dac016bd6ae1a8e1aca240503/pyny-1.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "db8bba7f8fc6980310dd6e1fdbade83c", "sha256": "03b624131cfa6c27482bd2dafaa917495ddd205f9d2a3023601a87b85483660d" }, "downloads": -1, "filename": "pyny-1.1.0.tar.gz", "has_sig": false, "md5_digest": "db8bba7f8fc6980310dd6e1fdbade83c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5008, "upload_time": "2015-07-02T02:54:57", "url": "https://files.pythonhosted.org/packages/62/96/831db13a0a08f92381f2fa237f765c0b94188876d52f2be65b5e4a980340/pyny-1.1.0.tar.gz" } ] }