parseapi 1.10.0__tar.gz → 1.10.1__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.
- {parseapi-1.10.0 → parseapi-1.10.1}/PKG-INFO +2 -5
- {parseapi-1.10.0 → parseapi-1.10.1}/README.md +1 -4
- {parseapi-1.10.0 → parseapi-1.10.1}/api/public.json +0 -68
- {parseapi-1.10.0 → parseapi-1.10.1}/pyproject.toml +1 -1
- {parseapi-1.10.0 → parseapi-1.10.1}/smoke/smoke.py +2 -6
- {parseapi-1.10.0 → parseapi-1.10.1}/src/parseapi/__init__.py +1 -1
- {parseapi-1.10.0 → parseapi-1.10.1}/src/parseapi/_client.py +0 -12
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/test_client.py +4 -10
- {parseapi-1.10.0 → parseapi-1.10.1}/.github/workflows/publish.yml +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/.github/workflows/test.yml +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/.gitignore +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/CHANGELOG.md +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/LICENSE +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/scripts/public_api.py +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/src/parseapi/city.py +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/src/parseapi/py.typed +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/bank-fixtures.json +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/emoji-artwork.json +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/emoji-catalog.json +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/measure-response.json +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/response-fixtures/clean-company-coverage.json +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/response-fixtures/clean-company-profile.json +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/response-fixtures/clean-emoji-catalog.json +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/response-fixtures/clean-emoji-metadata.json +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/response-fixtures/clean-provider.json +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/response-fixtures/clean-tariff-search.json +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/response-fixtures/clean-tariff.json +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/response-fixtures/clean-time.json +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/response-fixtures/clean-timezones.json +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/response-fixtures/standard-company-coverage.json +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/response-fixtures/standard-company-profile.json +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/response-fixtures/standard-emoji-catalog.json +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/response-fixtures/standard-emoji-metadata.json +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/response-fixtures/standard-provider.json +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/response-fixtures/standard-tariff-search.json +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/response-fixtures/standard-tariff.json +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/response-fixtures/standard-time.json +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/response-fixtures/standard-timezones.json +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/test_bank.py +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/test_card_dx.py +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/test_city_canonical.py +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/test_city_quality.py +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/test_city_query_parity.py +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/test_company_directory.py +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/test_email_enrichment.py +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/test_emoji.py +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/test_language.py +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/test_measure_response.py +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/test_name_formatting.py +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/test_postal_localities.py +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/test_public_api.py +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/test_response_decoding.py +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/test_stack.py +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/test_tariff.py +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/test_tariff_short_id.py +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/test_time_complete.py +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/test_time_gaps.py +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/test_version.py +0 -0
- {parseapi-1.10.0 → parseapi-1.10.1}/tests/typing_company_directory.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: parseapi
|
|
3
|
-
Version: 1.10.
|
|
3
|
+
Version: 1.10.1
|
|
4
4
|
Summary: Official ParseAPI client for Python. One key, minimal JSON, fast.
|
|
5
5
|
Project-URL: Homepage, https://parseapi.com
|
|
6
6
|
Project-URL: Documentation, https://parseapi.com/docs
|
|
@@ -163,7 +163,6 @@ parse.mx("example.com")
|
|
|
163
163
|
parse.dns("example.com")
|
|
164
164
|
parse.dns("_dmarc.example.com", type="TXT")
|
|
165
165
|
parse.useragent(ua_string)
|
|
166
|
-
parse.vehicle("1HGCM82633A004352")
|
|
167
166
|
parse.industry("541511")
|
|
168
167
|
parse.industry.search("coffee shop", limit=5)
|
|
169
168
|
parse.tariff("8471.30.01.00")
|
|
@@ -345,7 +344,7 @@ Choose enrichment for the question you need answered.
|
|
|
345
344
|
| Country, State, District, City, Postal | The place profile on paid plans, including demographic and tax facts where held. |
|
|
346
345
|
| Name, Industry | Name evidence or the industry definition profile on paid plans. |
|
|
347
346
|
| NPI | Deactivation date, Medicare enrollment, opt-out and enrollment rows from stored sources on paid plans. Exclusion evidence stays core. |
|
|
348
|
-
|
|
|
347
|
+
| Tariff, Company | The complete product detail bag on paid plans. |
|
|
349
348
|
| Weather | Specialist current measurements and the existing forecast, alert, air and history bag on paid plans. |
|
|
350
349
|
| Carrier, HLR | Optional diagnostic detail within the same metered core unit, including Free allowance units. No second gate or additional check. |
|
|
351
350
|
|
|
@@ -449,8 +448,6 @@ Successful checks may be reused for up to 24 hours. `pretty` optionally formats
|
|
|
449
448
|
|
|
450
449
|
Stack defaults to a 35-second transport timeout so a first scan has time to finish. Other lookups retain their 10-second default. An explicit client timeout takes precedence.
|
|
451
450
|
|
|
452
|
-
Vehicle lookups use `vin` as the input and response field. Existing VIN methods remain available for compatibility.
|
|
453
|
-
|
|
454
451
|
## Emoji catalog additions
|
|
455
452
|
|
|
456
453
|
Resolve Unicode emoji or a named shortcode, search or browse a bounded catalog,
|
|
@@ -144,7 +144,6 @@ parse.mx("example.com")
|
|
|
144
144
|
parse.dns("example.com")
|
|
145
145
|
parse.dns("_dmarc.example.com", type="TXT")
|
|
146
146
|
parse.useragent(ua_string)
|
|
147
|
-
parse.vehicle("1HGCM82633A004352")
|
|
148
147
|
parse.industry("541511")
|
|
149
148
|
parse.industry.search("coffee shop", limit=5)
|
|
150
149
|
parse.tariff("8471.30.01.00")
|
|
@@ -326,7 +325,7 @@ Choose enrichment for the question you need answered.
|
|
|
326
325
|
| Country, State, District, City, Postal | The place profile on paid plans, including demographic and tax facts where held. |
|
|
327
326
|
| Name, Industry | Name evidence or the industry definition profile on paid plans. |
|
|
328
327
|
| NPI | Deactivation date, Medicare enrollment, opt-out and enrollment rows from stored sources on paid plans. Exclusion evidence stays core. |
|
|
329
|
-
|
|
|
328
|
+
| Tariff, Company | The complete product detail bag on paid plans. |
|
|
330
329
|
| Weather | Specialist current measurements and the existing forecast, alert, air and history bag on paid plans. |
|
|
331
330
|
| Carrier, HLR | Optional diagnostic detail within the same metered core unit, including Free allowance units. No second gate or additional check. |
|
|
332
331
|
|
|
@@ -430,8 +429,6 @@ Successful checks may be reused for up to 24 hours. `pretty` optionally formats
|
|
|
430
429
|
|
|
431
430
|
Stack defaults to a 35-second transport timeout so a first scan has time to finish. Other lookups retain their 10-second default. An explicit client timeout takes precedence.
|
|
432
431
|
|
|
433
|
-
Vehicle lookups use `vin` as the input and response field. Existing VIN methods remain available for compatibility.
|
|
434
|
-
|
|
435
432
|
## Emoji catalog additions
|
|
436
433
|
|
|
437
434
|
Resolve Unicode emoji or a named shortcode, search or browse a bounded catalog,
|
|
@@ -2917,40 +2917,6 @@
|
|
|
2917
2917
|
],
|
|
2918
2918
|
"returns": "Json"
|
|
2919
2919
|
},
|
|
2920
|
-
"vehicle": {
|
|
2921
|
-
"async": true,
|
|
2922
|
-
"parameters": [
|
|
2923
|
-
{
|
|
2924
|
-
"kind": "POSITIONAL_OR_KEYWORD",
|
|
2925
|
-
"name": "vin",
|
|
2926
|
-
"type": "str"
|
|
2927
|
-
},
|
|
2928
|
-
{
|
|
2929
|
-
"default": false,
|
|
2930
|
-
"kind": "KEYWORD_ONLY",
|
|
2931
|
-
"name": "deep",
|
|
2932
|
-
"type": "bool"
|
|
2933
|
-
}
|
|
2934
|
-
],
|
|
2935
|
-
"returns": "Json"
|
|
2936
|
-
},
|
|
2937
|
-
"vin": {
|
|
2938
|
-
"async": true,
|
|
2939
|
-
"parameters": [
|
|
2940
|
-
{
|
|
2941
|
-
"kind": "POSITIONAL_OR_KEYWORD",
|
|
2942
|
-
"name": "vin",
|
|
2943
|
-
"type": "str"
|
|
2944
|
-
},
|
|
2945
|
-
{
|
|
2946
|
-
"default": false,
|
|
2947
|
-
"kind": "KEYWORD_ONLY",
|
|
2948
|
-
"name": "deep",
|
|
2949
|
-
"type": "bool"
|
|
2950
|
-
}
|
|
2951
|
-
],
|
|
2952
|
-
"returns": "Json"
|
|
2953
|
-
},
|
|
2954
2920
|
"weather": {
|
|
2955
2921
|
"async": true,
|
|
2956
2922
|
"parameters": [
|
|
@@ -5898,40 +5864,6 @@
|
|
|
5898
5864
|
],
|
|
5899
5865
|
"returns": "Json"
|
|
5900
5866
|
},
|
|
5901
|
-
"vehicle": {
|
|
5902
|
-
"async": false,
|
|
5903
|
-
"parameters": [
|
|
5904
|
-
{
|
|
5905
|
-
"kind": "POSITIONAL_OR_KEYWORD",
|
|
5906
|
-
"name": "vin",
|
|
5907
|
-
"type": "str"
|
|
5908
|
-
},
|
|
5909
|
-
{
|
|
5910
|
-
"default": false,
|
|
5911
|
-
"kind": "KEYWORD_ONLY",
|
|
5912
|
-
"name": "deep",
|
|
5913
|
-
"type": "bool"
|
|
5914
|
-
}
|
|
5915
|
-
],
|
|
5916
|
-
"returns": "Json"
|
|
5917
|
-
},
|
|
5918
|
-
"vin": {
|
|
5919
|
-
"async": false,
|
|
5920
|
-
"parameters": [
|
|
5921
|
-
{
|
|
5922
|
-
"kind": "POSITIONAL_OR_KEYWORD",
|
|
5923
|
-
"name": "vin",
|
|
5924
|
-
"type": "str"
|
|
5925
|
-
},
|
|
5926
|
-
{
|
|
5927
|
-
"default": false,
|
|
5928
|
-
"kind": "KEYWORD_ONLY",
|
|
5929
|
-
"name": "deep",
|
|
5930
|
-
"type": "bool"
|
|
5931
|
-
}
|
|
5932
|
-
],
|
|
5933
|
-
"returns": "Json"
|
|
5934
|
-
},
|
|
5935
5867
|
"weather": {
|
|
5936
5868
|
"async": false,
|
|
5937
5869
|
"parameters": [
|
|
@@ -116,12 +116,8 @@ expect_ok("measure.units", lambda: parse.measure.units(unit="m"), lambda r: None
|
|
|
116
116
|
expect_ok("dns", lambda: parse.dns("example.com", type="A"), lambda r: None if any(record["type"] == "A" and isinstance(record["ttl"], int) for record in r["records"]) else "no A records")
|
|
117
117
|
expect_ok("mx", lambda: parse.mx("gmail.com"), lambda r: None if r["mx"] else "no mx")
|
|
118
118
|
expect_ok("useragent", lambda: parse.useragent(UA), lambda r: None if r["browser"] == "Chrome" else f"browser {r['browser']}")
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
lambda: parse.vin("1HGCM82633A004352"),
|
|
122
|
-
lambda r: None if r.get("valid") is True and r.get("make") == "Honda" and r.get("year") == 2003 else "wrong decode",
|
|
123
|
-
)
|
|
124
|
-
expect_ok("vin junk", lambda: parse.vin("1HGCM82613A004352"), lambda r: None if r.get("valid") is False else "expected invalid")
|
|
119
|
+
|
|
120
|
+
|
|
125
121
|
expect_ok("currency", lambda: parse.currency("USD"), lambda r: None if r["symbol"] == "$" else "wrong symbol")
|
|
126
122
|
expect_ok("currency.rate", lambda: parse.currency.rate("USD", "EUR"), lambda r: None if 0 < r["rate"] < 10 else "bad rate")
|
|
127
123
|
expect_ok(
|
|
@@ -368,12 +368,6 @@ class ParseAPI:
|
|
|
368
368
|
def useragent(self, ua: str, *, deep: bool = False) -> Json:
|
|
369
369
|
return self._get("/useragent", {"deep": deep}, headers={"User-Agent": ua})
|
|
370
370
|
|
|
371
|
-
def vehicle(self, vin: str, *, deep: bool = False) -> Json:
|
|
372
|
-
return self._get(f"/vehicle/{_seg(vin)}", {"deep": deep})
|
|
373
|
-
|
|
374
|
-
def vin(self, vin: str, *, deep: bool = False) -> Json:
|
|
375
|
-
return self._get(f"/vin/{_seg(vin)}", {"deep": deep})
|
|
376
|
-
|
|
377
371
|
@_CompanySyncDescriptor
|
|
378
372
|
def company(self, number: str, *, country: Optional[str] = None, deep: bool = False, lang: Optional[str] = None) -> Json:
|
|
379
373
|
return self._get(f"/company/{_seg(number)}", {"country": country, "deep": deep, "lang": lang})
|
|
@@ -894,12 +888,6 @@ class AsyncParseAPI:
|
|
|
894
888
|
async def useragent(self, ua: str, *, deep: bool = False) -> Json:
|
|
895
889
|
return await self._get("/useragent", {"deep": deep}, headers={"User-Agent": ua})
|
|
896
890
|
|
|
897
|
-
async def vehicle(self, vin: str, *, deep: bool = False) -> Json:
|
|
898
|
-
return await self._get(f"/vehicle/{_seg(vin)}", {"deep": deep})
|
|
899
|
-
|
|
900
|
-
async def vin(self, vin: str, *, deep: bool = False) -> Json:
|
|
901
|
-
return await self._get(f"/vin/{_seg(vin)}", {"deep": deep})
|
|
902
|
-
|
|
903
891
|
@_CompanyAsyncDescriptor
|
|
904
892
|
async def company(self, number: str, *, country: Optional[str] = None, deep: bool = False, lang: Optional[str] = None) -> Json:
|
|
905
893
|
return await self._get(f"/company/{_seg(number)}", {"country": country, "deep": deep, "lang": lang})
|
|
@@ -123,16 +123,10 @@ URL_TABLE = [
|
|
|
123
123
|
(lambda p: p.mac("00:1B:63:84:45:E6"), "https://api.parseapi.com/mac/00%3A1B%3A63%3A84%3A45%3AE6"),
|
|
124
124
|
(lambda p: p.mx("example.com"), "https://api.parseapi.com/mx/example.com"),
|
|
125
125
|
(lambda p: p.useragent("TestUA/1.0"), "https://api.parseapi.com/useragent"),
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
),
|
|
131
|
-
(lambda p: p.vin("1HGCM82633A004352"), "https://api.parseapi.com/vin/1HGCM82633A004352"),
|
|
132
|
-
(
|
|
133
|
-
lambda p: p.vin("1HGCM82633A004352", deep=True),
|
|
134
|
-
"https://api.parseapi.com/vin/1HGCM82633A004352?deep=true",
|
|
135
|
-
),
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
136
130
|
(lambda p: p.currency("USD"), "https://api.parseapi.com/currency/USD"),
|
|
137
131
|
(lambda p: p.currency.rate("USD", "EUR"), "https://api.parseapi.com/currency/USD/EUR"),
|
|
138
132
|
(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/response-fixtures/clean-company-coverage.json
RENAMED
|
File without changes
|
{parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/response-fixtures/clean-company-profile.json
RENAMED
|
File without changes
|
{parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/response-fixtures/clean-emoji-catalog.json
RENAMED
|
File without changes
|
{parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/response-fixtures/clean-emoji-metadata.json
RENAMED
|
File without changes
|
|
File without changes
|
{parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/response-fixtures/clean-tariff-search.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/response-fixtures/standard-company-coverage.json
RENAMED
|
File without changes
|
{parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/response-fixtures/standard-company-profile.json
RENAMED
|
File without changes
|
{parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/response-fixtures/standard-emoji-catalog.json
RENAMED
|
File without changes
|
{parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/response-fixtures/standard-emoji-metadata.json
RENAMED
|
File without changes
|
|
File without changes
|
{parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/response-fixtures/standard-tariff-search.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{parseapi-1.10.0 → parseapi-1.10.1}/tests/fixtures/response-fixtures/standard-timezones.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|