How to use zipcodes - 10 common examples

To help you get started, we’ve selected a few zipcodes examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github seanpianka / Zipcodes / tests / __init__.py View on Github external
                lambda: zipcodes.is_real("06905"),
                lambda: zipcodes._contains_nondigits("1234a"),
github seanpianka / Zipcodes / tests / __init__.py View on Github external
                lambda: zipcodes.is_real("91239"),
                # digits and "-" are acceptable
github seanpianka / Zipcodes / tests / __init__.py View on Github external
                    lambda: zipcodes._clean("0000a"), ValueError
                ),
github seanpianka / Zipcodes / tests / __init__.py View on Github external
                (lambda: zipcodes._clean("06469"), lambda: "06469"),
                (lambda: zipcodes.list_all(), lambda: zipcodes._zips),
github seanpianka / Zipcodes / tests / __init__.py View on Github external
                (lambda: zipcodes._clean("0646", 4), lambda: "0646"),
                # default behavior
github seanpianka / Zipcodes / tests / __init__.py View on Github external
                    lambda: zipcodes._clean("000000"), ValueError
                ),
github seanpianka / Zipcodes / tests / __init__.py View on Github external
                    lambda: zipcodes.similar_to("1005"),
                    lambda: [
github seanpianka / Zipcodes / tests / __init__.py View on Github external
                    lambda: zipcodes.similar_to("10001"),
                    lambda: [
github seanpianka / Zipcodes / tests / __init__.py View on Github external
                    lambda: zipcodes.similar_to("1018"),
                    lambda: [
github seanpianka / Zipcodes / tests / __init__.py View on Github external
lambda: len(
                    zipcodes.similar_to(
                        "2", zips=zipcodes.filter_by(active=True, city="Windsor")
                    )
                )
                == 3,
            ],

zipcodes

Query U.S. state zipcodes without SQLite.

MIT
Latest version published 3 years ago

Package Health Score

52 / 100
Full package analysis

Similar packages