Sample
>>> from pyny import api
>>> data = api.get_by_id('c1161', 2)
>>>
>>> import pprint
>>> p = pprint.PrettyPrinter()
>>> p.pprint(data)
{'attrs': {'attr0': '市役所・出張所',
'attr1': '出張所',
'attr2': 'おおたかの森出張所',
'attr3': '流山市西初石6-185-2(流山おおたかの森S・C内3階)',
'attr6': '35.8706965',
'attr7': '139.9261438',
'attr8': '04-7154-0333 '},
'created': '2013/07/19 17:01:02',
'distance': 0,
'feature_id': 2,
'files': {},
'geometry': 'POINT(139.9261438 35.8706965)',
'layer_id': 'c1161',
'mid': 0,
'moduserid': 0,
'status': 0,
'user_id': 307}
>>>
>>> from pyny.models import Model
>>> from pyny.fields import DecimalField, StringField
>>>
>>> class SampleModel(Model):
... layer_id = StringField()
... longitude = DecimalField('attrs.attr7')
...
>>> data = SampleModel.get_by_id('c1161', 2)
>>> data.layer_id
'c1161'
>>> data.longitude
Decimal('139.9261438')
>>>
Documentation
Metadata
Release files for pyny 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pyny-1.1.0.tar.gz | 5.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyny-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.6 kB
Release files / pyny-1.1.0.tar.gz
| Download URL | pyny-1.1.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03b624131cfa6c27482bd2dafaa917495ddd205f9d2a3023601a87b85483660d
|
|
BLAKE2b-256 checksum How to use checksums |
6296831db13a0a08f92381f2fa237f765c0b94188876d52f2be65b5e4a980340
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pyny-1.1.0-py3-none-any.whl
| Download URL | pyny-1.1.0-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d0a85419371385d2fabd3820ad081d2c8e960b4085a55a4839609ae0b11f9bd
|
|
BLAKE2b-256 checksum How to use checksums |
adf3c5b3b8f04a574ed80fb1bad70b26c0e1e16dac016bd6ae1a8e1aca240503
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyny 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.