{"repo":"seanpianka/Zipcodes","free":true,"listed":false,"github":"https://github.com/seanpianka/Zipcodes","clone":"git clone https://github.com/seanpianka/Zipcodes.git","description":"A simple library for querying U.S. zipcodes.","language":"Python","stars":81,"topics":["python","zipcode","zipcodes","python2","python3","aws-lambda","sqlite","postal","codes"],"license":"MIT","category":"databases-storage","readme_excerpt":"Zipcodes Zipcodes is a simple library for querying U.S. zipcodes. No SQLite, no network, no runtime data files — the full dataset is embedded in the package. Since 2.0, the library is implemented in Rust and published from a single codebase as both the zipcodes Python package and the zipcodes Rust crate. The Python API is a drop-in replacement for 1.x — same functions, same dicts, same exceptions — just faster: Operation 1.x (pure Python) 2.0 (Rust) --- --- --- import zipcodes 330 ms (loads dataset) 5 ms (dataset loads lazily on first query, 200 ms) is real(\"06903\") 4.2 ms 0.03 ms matching(\"77429\") 4.2 ms 0.3 ms similar to(\"1018\") 7.2 ms 0.3 ms filter by(state=\"TX\") 9.7 ms 3.7 ms The zipcode data is refreshed automatically every month — see Zipcode Data. Installation Python Zipcodes 2.x supports Python 3.9+ and ships prebuilt wheels for Linux (x86 64, aarch64, musl), macOS, and Windows. Installing from the source distribution requires a Rust toolchain. Python 2.6+/3.2+ users are automatically served the pure-Python 1.3.0 release by pip. Rust New in 2.0 - Implemented in Rust; the dataset is compiled into the extension module and decompressed lazily on first query, so import zipcodes is effectively free. - New functions: contains , filter by state , filter by city , filter by county , filter by timezone , filter by zip code type , filter by coordinates , and haversine . - is valid now actually emits its DeprecationWarning (in 1.x it raised AttributeError ); use is real . - PyIn","default_branch":null,"files":null,"tree":[],"storefront":"/r/seanpianka","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/seanpianka/Zipcodes/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}