A Python package for converting US zip codes to latitude and longitude
Project description
geocodeus
The ZipCache module from the geocodeus package is a Python library that enables users to retrieve data for US zip codes, such as the latitude and longitude coordinates, city, state, county, and timezone information. This module leverages a caching mechanism to speed up data retrieval and optimize memory usage.
To use the ZipCache module, users must first import it using the from geocodeus import ZipCache statement. Once the module is imported, they can create an instance of the ZipCache class with no arguments, which initializes the cache and makes it ready for use. To obtain data for a particular US zip code, users can then call the getData() method with a zip code string as the argument. The method returns a dictionary that contains information about the specified zip code.
The ZipCache module employs a caching mechanism that enhances performance and memory usage efficiency. When a user calls the getData() method with a zip code, the module first checks whether the data for that code is already in the cache.
Overall, the ZipCache module from the geocodeus package is a powerful and easy-to-use tool for obtaining data for US zip codes. With its efficient caching mechanism and reliable data sources, this module is a must-have for any Python developer working with US zip codes.
Installation
You can install geocodeus using pip:
pip install geocodeus
Usage
Here's an example of how to use Zip Cache:
from geocodeus import ZipCache
cache = ZipCache()
# Get data for a zip code
data = cache.getData("96105")
print(data)
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file geocodeus-22.0.tar.gz.
File metadata
- Download URL: geocodeus-22.0.tar.gz
- Upload date:
- Size: 359.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf24e290ee60260ef09bf8090cb2345734617a014289b44412905a84eceda1e0
|
|
| MD5 |
e593ca779042915f1bc331a81e0106d3
|
|
| BLAKE2b-256 |
53741e859e6d41e10fdf8f24b3beb74bf4e3d18971fe23cea62c5c79f3e87145
|
File details
Details for the file geocodeus-22.0-py3-none-any.whl.
File metadata
- Download URL: geocodeus-22.0-py3-none-any.whl
- Upload date:
- Size: 361.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5af90c145dccb865991143a88f5f68f1b12fa62ebe51bee26a4c77fd012c4ac0
|
|
| MD5 |
990978f70241b1e3e3ddecf6892c0dde
|
|
| BLAKE2b-256 |
abf5376d5c60d20f14d1519e03f4b5f008971468f810781aaabe9802e2a123de
|