zipcodes 1.1.3__tar.gz → 1.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {zipcodes-1.1.3 → zipcodes-1.3.0}/MANIFEST.in +1 -1
- {zipcodes-1.1.3/zipcodes.egg-info → zipcodes-1.3.0}/PKG-INFO +18 -25
- {zipcodes-1.1.3 → zipcodes-1.3.0}/README.md +11 -14
- zipcodes-1.3.0/VERSION.txt +1 -0
- zipcodes-1.3.0/pyproject.toml +42 -0
- {zipcodes-1.1.3 → zipcodes-1.3.0}/setup.cfg +4 -0
- {zipcodes-1.1.3 → zipcodes-1.3.0}/zipcodes/__pycache__/__init__.cpython-39.pyc +0 -0
- zipcodes-1.3.0/zipcodes/zips.json.bz2 +0 -0
- {zipcodes-1.1.3 → zipcodes-1.3.0/zipcodes.egg-info}/PKG-INFO +18 -25
- {zipcodes-1.1.3 → zipcodes-1.3.0}/zipcodes.egg-info/SOURCES.txt +1 -1
- {zipcodes-1.1.3 → zipcodes-1.3.0}/zipcodes.egg-info/top_level.txt +1 -0
- zipcodes-1.1.3/VERSION.txt +0 -1
- zipcodes-1.1.3/setup.py +0 -54
- zipcodes-1.1.3/zipcodes/zips.json.bz2 +0 -0
- {zipcodes-1.1.3 → zipcodes-1.3.0}/LICENSE.txt +0 -0
- {zipcodes-1.1.3 → zipcodes-1.3.0}/zipcodes/__init__.py +0 -0
- {zipcodes-1.1.3 → zipcodes-1.3.0}/zipcodes/__pycache__/__init__.cpython-37.pyc +0 -0
- {zipcodes-1.1.3 → zipcodes-1.3.0}/zipcodes.egg-info/dependency_links.txt +0 -0
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: zipcodes
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.0
|
|
4
4
|
Summary: Query U.S. state zipcodes without SQLite.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Keywords: zipcode zip code us state query filter validate sqlite
|
|
10
|
-
Platform: UNKNOWN
|
|
5
|
+
Author-email: Sean Pianka <pianka@eml.cc>
|
|
6
|
+
Project-URL: Homepage, https://github.com/seanpianka/zipcodes
|
|
7
|
+
Project-URL: Issues, https://github.com/seanpianka/zipcodes/issues
|
|
8
|
+
Keywords: zipcode,zip,code,us,state,query,filter,validate,sqlite
|
|
11
9
|
Classifier: Development Status :: 5 - Production/Stable
|
|
12
10
|
Classifier: Intended Audience :: Developers
|
|
13
11
|
Classifier: Topic :: Software Development :: Build Tools
|
|
@@ -19,27 +17,24 @@ Classifier: Programming Language :: Python :: 3.6
|
|
|
19
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
20
18
|
Classifier: Programming Language :: Python :: 3.8
|
|
21
19
|
Classifier: Programming Language :: Python :: 3.9
|
|
20
|
+
Requires-Python: >=2.6
|
|
22
21
|
Description-Content-Type: text/markdown
|
|
23
|
-
License-File: LICENSE.txt
|
|
24
22
|
|
|
25
23
|
# Zipcodes
|
|
26
24
|
|
|
27
|
-
Zipcodes is a simple library for querying
|
|
25
|
+
Zipcodes is a simple library for querying U.S. zipcodes.
|
|
28
26
|
|
|
29
|
-
The Python `sqlite3` module is not required.
|
|
27
|
+
The Python `sqlite3` module is not required in order to use this package.
|
|
30
28
|
|
|
31
29
|
```python
|
|
32
30
|
>>> import zipcodes
|
|
33
31
|
>>> assert zipcodes.is_real('77429')
|
|
34
32
|
>>> assert len(zipcodes.similar_to('7742')) != 0
|
|
35
|
-
>>> exact_zip = zipcodes.matching('77429')
|
|
36
|
-
>>>
|
|
37
|
-
|
|
38
|
-
"state": "TX"
|
|
39
|
-
})
|
|
40
|
-
>>> assert exact_zip == filtered_zip
|
|
33
|
+
>>> exact_zip = zipcodes.matching('77429')[0]
|
|
34
|
+
>>> filtered_zips = zipcodes.filter_by(city="Cypress", state="TX")
|
|
35
|
+
>>> assert exact_zip in filtered_zips
|
|
41
36
|
>>> pprint.pprint(exact_zip)
|
|
42
|
-
|
|
37
|
+
{'acceptable_cities': [],
|
|
43
38
|
'active': True,
|
|
44
39
|
'area_codes': ['281', '832'],
|
|
45
40
|
'city': 'Cypress',
|
|
@@ -52,10 +47,10 @@ The Python `sqlite3` module is not required.
|
|
|
52
47
|
'unacceptable_cities': [],
|
|
53
48
|
'world_region': 'NA',
|
|
54
49
|
'zip_code': '77429',
|
|
55
|
-
'zip_code_type': 'STANDARD'}
|
|
50
|
+
'zip_code_type': 'STANDARD'}[
|
|
56
51
|
```
|
|
57
52
|
|
|
58
|
-
⚠️ The zipcode data was last updated on: **
|
|
53
|
+
⚠️ The zipcode data was last updated on: **Feb. 16, 2025** ⚠️
|
|
59
54
|
|
|
60
55
|
[](https://pepy.tech/project/zipcodes/month)
|
|
61
56
|
[](https://pypi.org/project/zipcodes)
|
|
@@ -70,7 +65,7 @@ Zipcodes is available on PyPI:
|
|
|
70
65
|
$ python -m pip install zipcodes
|
|
71
66
|
```
|
|
72
67
|
|
|
73
|
-
|
|
68
|
+
Zipcodes supports Python 2.6+ and Python 3.2+.
|
|
74
69
|
|
|
75
70
|
### Compiling with PyInstaller
|
|
76
71
|
|
|
@@ -154,12 +149,12 @@ $ python tests/__init__.py
|
|
|
154
149
|
>>> zipcodes.matching('0646a')
|
|
155
150
|
Traceback (most recent call last):
|
|
156
151
|
...
|
|
157
|
-
|
|
152
|
+
ValueError: Invalid characters, zipcode may only contain digits and "-".
|
|
158
153
|
|
|
159
154
|
>>> zipcodes.matching('064690')
|
|
160
155
|
Traceback (most recent call last):
|
|
161
156
|
...
|
|
162
|
-
|
|
157
|
+
ValueError: Invalid format, zipcode must be of the format: "#####" or "#####-####"
|
|
163
158
|
|
|
164
159
|
>>> zipcodes.matching(None)
|
|
165
160
|
Traceback (most recent call last):
|
|
@@ -270,5 +265,3 @@ True
|
|
|
270
265
|
>>> # Have any other ideas? Make a pull request and start contributing today!
|
|
271
266
|
>>> # Made with love by Sean Pianka
|
|
272
267
|
```
|
|
273
|
-
|
|
274
|
-
|
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
# Zipcodes
|
|
2
2
|
|
|
3
|
-
Zipcodes is a simple library for querying
|
|
3
|
+
Zipcodes is a simple library for querying U.S. zipcodes.
|
|
4
4
|
|
|
5
|
-
The Python `sqlite3` module is not required.
|
|
5
|
+
The Python `sqlite3` module is not required in order to use this package.
|
|
6
6
|
|
|
7
7
|
```python
|
|
8
8
|
>>> import zipcodes
|
|
9
9
|
>>> assert zipcodes.is_real('77429')
|
|
10
10
|
>>> assert len(zipcodes.similar_to('7742')) != 0
|
|
11
|
-
>>> exact_zip = zipcodes.matching('77429')
|
|
12
|
-
>>>
|
|
13
|
-
|
|
14
|
-
"state": "TX"
|
|
15
|
-
})
|
|
16
|
-
>>> assert exact_zip == filtered_zip
|
|
11
|
+
>>> exact_zip = zipcodes.matching('77429')[0]
|
|
12
|
+
>>> filtered_zips = zipcodes.filter_by(city="Cypress", state="TX")
|
|
13
|
+
>>> assert exact_zip in filtered_zips
|
|
17
14
|
>>> pprint.pprint(exact_zip)
|
|
18
|
-
|
|
15
|
+
{'acceptable_cities': [],
|
|
19
16
|
'active': True,
|
|
20
17
|
'area_codes': ['281', '832'],
|
|
21
18
|
'city': 'Cypress',
|
|
@@ -28,10 +25,10 @@ The Python `sqlite3` module is not required.
|
|
|
28
25
|
'unacceptable_cities': [],
|
|
29
26
|
'world_region': 'NA',
|
|
30
27
|
'zip_code': '77429',
|
|
31
|
-
'zip_code_type': 'STANDARD'}
|
|
28
|
+
'zip_code_type': 'STANDARD'}[
|
|
32
29
|
```
|
|
33
30
|
|
|
34
|
-
⚠️ The zipcode data was last updated on: **
|
|
31
|
+
⚠️ The zipcode data was last updated on: **Feb. 16, 2025** ⚠️
|
|
35
32
|
|
|
36
33
|
[](https://pepy.tech/project/zipcodes/month)
|
|
37
34
|
[](https://pypi.org/project/zipcodes)
|
|
@@ -46,7 +43,7 @@ Zipcodes is available on PyPI:
|
|
|
46
43
|
$ python -m pip install zipcodes
|
|
47
44
|
```
|
|
48
45
|
|
|
49
|
-
|
|
46
|
+
Zipcodes supports Python 2.6+ and Python 3.2+.
|
|
50
47
|
|
|
51
48
|
### Compiling with PyInstaller
|
|
52
49
|
|
|
@@ -130,12 +127,12 @@ $ python tests/__init__.py
|
|
|
130
127
|
>>> zipcodes.matching('0646a')
|
|
131
128
|
Traceback (most recent call last):
|
|
132
129
|
...
|
|
133
|
-
|
|
130
|
+
ValueError: Invalid characters, zipcode may only contain digits and "-".
|
|
134
131
|
|
|
135
132
|
>>> zipcodes.matching('064690')
|
|
136
133
|
Traceback (most recent call last):
|
|
137
134
|
...
|
|
138
|
-
|
|
135
|
+
ValueError: Invalid format, zipcode must be of the format: "#####" or "#####-####"
|
|
139
136
|
|
|
140
137
|
>>> zipcodes.matching(None)
|
|
141
138
|
Traceback (most recent call last):
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.3.0
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "zipcodes"
|
|
7
|
+
version = "1.3.0"
|
|
8
|
+
authors = [
|
|
9
|
+
{ name="Sean Pianka", email="pianka@eml.cc" },
|
|
10
|
+
]
|
|
11
|
+
description="Query U.S. state zipcodes without SQLite."
|
|
12
|
+
readme = "README.md"
|
|
13
|
+
requires-python = ">=2.6"
|
|
14
|
+
classifiers = [
|
|
15
|
+
# How mature is this project? Common values are
|
|
16
|
+
# 3 - Alpha
|
|
17
|
+
# 4 - Beta
|
|
18
|
+
# 5 - Production/Stable
|
|
19
|
+
"Development Status :: 5 - Production/Stable",
|
|
20
|
+
# Indicate who your project is intended for
|
|
21
|
+
"Intended Audience :: Developers",
|
|
22
|
+
"Topic :: Software Development :: Build Tools",
|
|
23
|
+
# Pick your license as you wish (should match "license" above)
|
|
24
|
+
"License :: OSI Approved :: MIT License",
|
|
25
|
+
# Specify the Python versions you support here. In particular, ensure
|
|
26
|
+
# that you indicate whether you support Python 2, Python 3 or both.
|
|
27
|
+
"Programming Language :: Python :: 2.6",
|
|
28
|
+
"Programming Language :: Python :: 2.7",
|
|
29
|
+
"Programming Language :: Python :: 3.5",
|
|
30
|
+
"Programming Language :: Python :: 3.6",
|
|
31
|
+
"Programming Language :: Python :: 3.7",
|
|
32
|
+
"Programming Language :: Python :: 3.8",
|
|
33
|
+
"Programming Language :: Python :: 3.9",
|
|
34
|
+
]
|
|
35
|
+
keywords = ["zipcode", "zip", "code", "us", "state", "query", "filter", "validate", "sqlite"]
|
|
36
|
+
|
|
37
|
+
[project.urls]
|
|
38
|
+
Homepage = "https://github.com/seanpianka/zipcodes"
|
|
39
|
+
Issues = "https://github.com/seanpianka/zipcodes/issues"
|
|
40
|
+
|
|
41
|
+
[tool.setuptools]
|
|
42
|
+
license-files = []
|
|
Binary file
|
|
Binary file
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: zipcodes
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.0
|
|
4
4
|
Summary: Query U.S. state zipcodes without SQLite.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Keywords: zipcode zip code us state query filter validate sqlite
|
|
10
|
-
Platform: UNKNOWN
|
|
5
|
+
Author-email: Sean Pianka <pianka@eml.cc>
|
|
6
|
+
Project-URL: Homepage, https://github.com/seanpianka/zipcodes
|
|
7
|
+
Project-URL: Issues, https://github.com/seanpianka/zipcodes/issues
|
|
8
|
+
Keywords: zipcode,zip,code,us,state,query,filter,validate,sqlite
|
|
11
9
|
Classifier: Development Status :: 5 - Production/Stable
|
|
12
10
|
Classifier: Intended Audience :: Developers
|
|
13
11
|
Classifier: Topic :: Software Development :: Build Tools
|
|
@@ -19,27 +17,24 @@ Classifier: Programming Language :: Python :: 3.6
|
|
|
19
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
20
18
|
Classifier: Programming Language :: Python :: 3.8
|
|
21
19
|
Classifier: Programming Language :: Python :: 3.9
|
|
20
|
+
Requires-Python: >=2.6
|
|
22
21
|
Description-Content-Type: text/markdown
|
|
23
|
-
License-File: LICENSE.txt
|
|
24
22
|
|
|
25
23
|
# Zipcodes
|
|
26
24
|
|
|
27
|
-
Zipcodes is a simple library for querying
|
|
25
|
+
Zipcodes is a simple library for querying U.S. zipcodes.
|
|
28
26
|
|
|
29
|
-
The Python `sqlite3` module is not required.
|
|
27
|
+
The Python `sqlite3` module is not required in order to use this package.
|
|
30
28
|
|
|
31
29
|
```python
|
|
32
30
|
>>> import zipcodes
|
|
33
31
|
>>> assert zipcodes.is_real('77429')
|
|
34
32
|
>>> assert len(zipcodes.similar_to('7742')) != 0
|
|
35
|
-
>>> exact_zip = zipcodes.matching('77429')
|
|
36
|
-
>>>
|
|
37
|
-
|
|
38
|
-
"state": "TX"
|
|
39
|
-
})
|
|
40
|
-
>>> assert exact_zip == filtered_zip
|
|
33
|
+
>>> exact_zip = zipcodes.matching('77429')[0]
|
|
34
|
+
>>> filtered_zips = zipcodes.filter_by(city="Cypress", state="TX")
|
|
35
|
+
>>> assert exact_zip in filtered_zips
|
|
41
36
|
>>> pprint.pprint(exact_zip)
|
|
42
|
-
|
|
37
|
+
{'acceptable_cities': [],
|
|
43
38
|
'active': True,
|
|
44
39
|
'area_codes': ['281', '832'],
|
|
45
40
|
'city': 'Cypress',
|
|
@@ -52,10 +47,10 @@ The Python `sqlite3` module is not required.
|
|
|
52
47
|
'unacceptable_cities': [],
|
|
53
48
|
'world_region': 'NA',
|
|
54
49
|
'zip_code': '77429',
|
|
55
|
-
'zip_code_type': 'STANDARD'}
|
|
50
|
+
'zip_code_type': 'STANDARD'}[
|
|
56
51
|
```
|
|
57
52
|
|
|
58
|
-
⚠️ The zipcode data was last updated on: **
|
|
53
|
+
⚠️ The zipcode data was last updated on: **Feb. 16, 2025** ⚠️
|
|
59
54
|
|
|
60
55
|
[](https://pepy.tech/project/zipcodes/month)
|
|
61
56
|
[](https://pypi.org/project/zipcodes)
|
|
@@ -70,7 +65,7 @@ Zipcodes is available on PyPI:
|
|
|
70
65
|
$ python -m pip install zipcodes
|
|
71
66
|
```
|
|
72
67
|
|
|
73
|
-
|
|
68
|
+
Zipcodes supports Python 2.6+ and Python 3.2+.
|
|
74
69
|
|
|
75
70
|
### Compiling with PyInstaller
|
|
76
71
|
|
|
@@ -154,12 +149,12 @@ $ python tests/__init__.py
|
|
|
154
149
|
>>> zipcodes.matching('0646a')
|
|
155
150
|
Traceback (most recent call last):
|
|
156
151
|
...
|
|
157
|
-
|
|
152
|
+
ValueError: Invalid characters, zipcode may only contain digits and "-".
|
|
158
153
|
|
|
159
154
|
>>> zipcodes.matching('064690')
|
|
160
155
|
Traceback (most recent call last):
|
|
161
156
|
...
|
|
162
|
-
|
|
157
|
+
ValueError: Invalid format, zipcode must be of the format: "#####" or "#####-####"
|
|
163
158
|
|
|
164
159
|
>>> zipcodes.matching(None)
|
|
165
160
|
Traceback (most recent call last):
|
|
@@ -270,5 +265,3 @@ True
|
|
|
270
265
|
>>> # Have any other ideas? Make a pull request and start contributing today!
|
|
271
266
|
>>> # Made with love by Sean Pianka
|
|
272
267
|
```
|
|
273
|
-
|
|
274
|
-
|
zipcodes-1.1.3/VERSION.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.1.3
|
zipcodes-1.1.3/setup.py
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# Always prefer setuptools over distutils
|
|
2
|
-
from setuptools import setup, find_packages
|
|
3
|
-
|
|
4
|
-
with open("README.md") as f:
|
|
5
|
-
readme = f.read()
|
|
6
|
-
|
|
7
|
-
with open("VERSION.txt") as f:
|
|
8
|
-
version = f.read()
|
|
9
|
-
|
|
10
|
-
setup(
|
|
11
|
-
name="zipcodes",
|
|
12
|
-
# Versions should comply with PEP440. For a discussion on single-sourcing
|
|
13
|
-
# the version across setup.py and the project code, see
|
|
14
|
-
# https://packaging.python.org/en/latest/single_source_version.html
|
|
15
|
-
|
|
16
|
-
# remove whitespace (some IDE's add trailing newlines automatically)
|
|
17
|
-
version=version.strip(),
|
|
18
|
-
description="Query U.S. state zipcodes without SQLite.",
|
|
19
|
-
long_description=readme,
|
|
20
|
-
long_description_content_type="text/markdown",
|
|
21
|
-
# The project's main homepage.
|
|
22
|
-
url="https://github.com/seanpianka/zipcodes",
|
|
23
|
-
# Author details
|
|
24
|
-
author="Sean Pianka",
|
|
25
|
-
author_email="pianka@eml.cc",
|
|
26
|
-
# Choose your license
|
|
27
|
-
license="MIT",
|
|
28
|
-
packages=find_packages(exclude=("ci", "tests")),
|
|
29
|
-
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
|
|
30
|
-
classifiers=[
|
|
31
|
-
# How mature is this project? Common values are
|
|
32
|
-
# 3 - Alpha
|
|
33
|
-
# 4 - Beta
|
|
34
|
-
# 5 - Production/Stable
|
|
35
|
-
"Development Status :: 5 - Production/Stable",
|
|
36
|
-
# Indicate who your project is intended for
|
|
37
|
-
"Intended Audience :: Developers",
|
|
38
|
-
"Topic :: Software Development :: Build Tools",
|
|
39
|
-
# Pick your license as you wish (should match "license" above)
|
|
40
|
-
"License :: OSI Approved :: MIT License",
|
|
41
|
-
# Specify the Python versions you support here. In particular, ensure
|
|
42
|
-
# that you indicate whether you support Python 2, Python 3 or both.
|
|
43
|
-
"Programming Language :: Python :: 2.6",
|
|
44
|
-
"Programming Language :: Python :: 2.7",
|
|
45
|
-
"Programming Language :: Python :: 3.5",
|
|
46
|
-
"Programming Language :: Python :: 3.6",
|
|
47
|
-
"Programming Language :: Python :: 3.7",
|
|
48
|
-
"Programming Language :: Python :: 3.8",
|
|
49
|
-
"Programming Language :: Python :: 3.9",
|
|
50
|
-
],
|
|
51
|
-
# What does your project relate to?
|
|
52
|
-
keywords="zipcode zip code us state query filter validate sqlite",
|
|
53
|
-
include_package_data=True,
|
|
54
|
-
)
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|