python-poco provides classes that can be used to integrate your software with the South African postal code lookup service at http://poco.co.za. Basic usage is crazy simple:
#!/usr/bin/env python
from poco.poco import PocoSearcher
results = PocoSearcher.results_as_dicts('Wingate Park')
objects = PocoSearcher.results_as_objects('Wingate Park')
In the above example, ‘results’ is a list which contains dictionaries with the following keys: id, suburb, area, postal, street. Similarly, ‘objecst’ is a list which contains objects of the PocoLocation class. The PocoLocation class has the same keys mentioned above as class attributes. So basically, use results_as_dicts or results_as_objects, depending on what your application needs.
One important caveat: The following rules apply:
The search term cannot be empty.
The search term must contain at least 3 characters.
An exception of type requests.exceptions.HTTPError will be raised if the above requirements are not met.
For reference, the Poco API documentation is available at http://poco.co.za/api/.
Metadata
Release files for python-poco 0.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 | |
|---|---|---|---|---|
| python-poco-0.1.0.tar.gz | 3.2 kB | Without provenance | Details |
Release files / python-poco-0.1.0.tar.gz
| Download URL | python-poco-0.1.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d4ff8cfb05a30e962e5a70f504540a6f82ac4655978f621771de36d49930e1fb
|
|
BLAKE2b-256 checksum How to use checksums |
782a62e7f6b50dfdda24c25718aa6b38d7747671f36f5f5035151e407c29d18b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for python-poco 0.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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.