internetdata 2.21.0__tar.gz → 2.23.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.
- {internetdata-2.21.0 → internetdata-2.23.0}/PKG-INFO +6 -4
- {internetdata-2.21.0 → internetdata-2.23.0}/README.md +5 -3
- {internetdata-2.21.0 → internetdata-2.23.0}/spec/openapi.yaml +9 -31
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/__init__.py +1 -1
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/asn.py +11 -8
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/entitlement_plan.py +1 -1
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/middleware/__init__.py +4 -0
- internetdata-2.23.0/src/internetdata/middleware/_crawlers.py +68 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/middleware/condition.py +23 -12
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/middleware/core.py +146 -25
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/models.py +16 -10
- {internetdata-2.21.0 → internetdata-2.23.0}/testdata/testdata.json +180 -22
- {internetdata-2.21.0 → internetdata-2.23.0}/tests/helpers.py +14 -7
- {internetdata-2.21.0 → internetdata-2.23.0}/tests/test_conformance.py +9 -2
- {internetdata-2.21.0 → internetdata-2.23.0}/tests/test_lookup.py +57 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/tests/test_middleware.py +60 -3
- {internetdata-2.21.0 → internetdata-2.23.0}/tests/test_user_agent.py +333 -8
- {internetdata-2.21.0 → internetdata-2.23.0}/.gitignore +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/LICENSE +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/pyproject.toml +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/scripts/download-spec.sh +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/scripts/generate.sh +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/scripts/publish.sh +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/scripts/v2_subset.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_bogons.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_core.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/__init__.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/__init__.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/account/__init__.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/account/account_identity.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/api_keys/__init__.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/api_keys/account_create_apikey.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/api_keys/account_list_apikeys.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/api_keys/account_reveal_apikey.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/api_keys/account_revoke_apikey.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/api_keys/account_rotate_apikey.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/authorization/__init__.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/authorization/oauth_authorize.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/authorization/oauth_device_authorization.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/authorization/oauth_metadata.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/authorization/oauth_register.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/authorization/oauth_revoke.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/authorization/oauth_token.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/database_v_2/__init__.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/database_v_2/database_checksum_v2.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/database_v_2/database_metadata_v2.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/database_v_2/download_database_v2.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/database_v_2/list_databases.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/database_v_2/list_downloads.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/entitlement/__init__.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/entitlement/my_entitlement.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/lookup/__init__.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/lookup/lookup_asn.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/lookup/lookup_batch.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/lookup/lookup_domain.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/lookup/lookup_ip.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/lookup/lookup_my_ip.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/organization/__init__.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/organization/account_org.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/api/organization/account_org_members.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/client.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/errors.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/__init__.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/abuse_contact.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/account_create_apikey_request.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/account_created_apikey.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/account_org.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/account_org_ref.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/account_org_wrap.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/account_rc.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/account_revealed_apikey.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/account_user.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/apikey_detail.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/apikey_list.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/asn_hosted_domains.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/asn_lookup_response.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/asn_lookup_response_whois.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/asn_prefix.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/batch_lookup_error.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/batch_lookup_request.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/batch_lookup_request_user_agents.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/batch_lookup_response.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/batch_lookup_response_errors.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/batch_lookup_response_results.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/bit_torrent_detail.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/bot_detail.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/carrier_detail.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/class_detail.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/client_registration.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/client_registration_request.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/cohosted_domains.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/company.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/database.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/database_checksum_v2_response_200.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/database_format.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/database_license_type_type_1.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/database_license_type_type_2_type_1.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/database_license_type_type_3_type_1.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/database_metadata.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/database_metadata_column.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/database_metadata_sample.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/database_metadata_sample_additional_property_item.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/database_metadata_sample_size.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/database_metadata_schema.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/database_metadata_size.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/database_version.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/db_checksums.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/device_authorization.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/device_authorization_request.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/disposable_detail.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/dns_address_record.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/dns_cname_record.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/dns_mx_record.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/dns_ns_record.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/dns_resolver_detail.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/domain_backlinks.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/domain_dns.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/domain_host.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/domain_ip_range.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/domain_ip_ranges.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/domain_lookup_response.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/domain_redirects.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/domain_web.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/domain_web_links.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/download.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/download_outcome.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/entitlement.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/entitlement_apikey.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/entitlement_error.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/entitlement_plan_tier.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/entitlement_usage.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/error.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/hosted_domains.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/identity.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/list_databases_response_200.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/list_downloads_response_200.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/location.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/lookup_error.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/lookup_response.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/oauth_authorize_code_challenge_method.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/oauth_authorize_response_type.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/oauth_error.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/oauth_metadata.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/oauth_revoke_response_200.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/proxy_detail.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/pubproxy_detail.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/revoke_request.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/rwhois.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/satellite_detail.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/smtp_detail.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/ssh_detail.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/standing.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/token_request.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/token_response.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/user_agent_verdict.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/user_agent_verdict_verdict.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/web_detail.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/whois.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/types.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/aio.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/bogon.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/client.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/errors.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/py.typed +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/testdata/bogons.json +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/tests/conftest.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/tests/test_cache_life.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/tests/test_client.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/tests/test_download.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/tests/test_oauth.py +0 -0
- {internetdata-2.21.0 → internetdata-2.23.0}/tests/test_sharing.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: internetdata
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.23.0
|
|
4
4
|
Summary: Official Python client library for the InternetData API. Look up IP addresses, ASNs and domains, and download licensed IP databases.
|
|
5
5
|
Project-URL: Homepage, https://internetdata.io
|
|
6
6
|
Project-URL: Documentation, https://docs.internetdata.io
|
|
@@ -120,10 +120,10 @@ acct = client.my_entitlement()
|
|
|
120
120
|
print(acct.plan.key) # data_4
|
|
121
121
|
print(acct.plan.name) # Data, the name to show
|
|
122
122
|
print(acct.usage.requests) # 580
|
|
123
|
-
print(acct.usage.window_end) # when the allowance resets
|
|
123
|
+
print(acct.usage.window_end) # when the allowance resets, or its trial ends on the free plan
|
|
124
124
|
```
|
|
125
125
|
|
|
126
|
-
Usage counts against the anniversary of your subscription on a paid plan, not the calendar month and not the billing period; on the free plan it counts its trial, the lookups answered with every field. It is the same number a lookup is gated on. `hard_limit` is `None` on an uncapped plan, which is not the same as zero.
|
|
126
|
+
Usage counts against the anniversary of your subscription on a paid plan, not the calendar month and not the billing period; on the free plan it counts its trial, the lookups answered with every field, in a window that begins at the organization's first keyed lookup and ends once. It is the same number a lookup is gated on. `hard_limit` is `None` on an uncapped plan, which is not the same as zero.
|
|
127
127
|
|
|
128
128
|
Both are on the async client too: `await client.my_ip()` and `await client.my_entitlement()`.
|
|
129
129
|
|
|
@@ -407,13 +407,15 @@ Each redirect URI must be https on a public host name, or http on a loopback add
|
|
|
407
407
|
|
|
408
408
|
### Fields your plan does not include
|
|
409
409
|
|
|
410
|
-
Unlimited leaves out the VPN, proxy, hosting, CDN, bot, carrier, satellite, SSH, SMTP, web, DNS resolver and BitTorrent flags, the detail behind every flag but Tor's and relay's (`bot`, whose bot uses the address, included), the city and region, the Whois records and the hosted domains; a free-plan key's answer carries `trial_expired`, true once its trial is spent. A paid key's carries `cap_reached`, true once its organization's overage cap is reached, when the answer has Unlimited's fields and isn't billed. Those are `None` when your key does not include them, which means "not in your plan" rather than "checked, and no", inside `location`, `asn`, `company` and `abuse` too. The exception, until the next major, is `is_bot`, `is_carrier`, `is_satellite`, `is_ssh`, `is_smtp`, `is_web`, `is_dns_resolver` and `
|
|
410
|
+
Unlimited leaves out the VPN, proxy, hosting, CDN, bot, carrier, satellite, SSH, SMTP, web, DNS resolver and BitTorrent flags, the detail behind every flag but Tor's and relay's (`bot`, whose bot uses the address, included), the city and region, the kind of network the AS runs (`asn.type`), the Whois records and the hosted domains; a free-plan key's answer carries `trial_expired`, true once its trial is spent. A paid key's carries `cap_reached`, true once its organization's overage cap is reached, when the answer has Unlimited's fields and isn't billed. Those are `None` when your key does not include them, which means "not in your plan" rather than "checked, and no", inside `location`, `asn`, `company` and `abuse` too. The exception, until the next major, is `is_bot`, `is_carrier`, `is_satellite`, `is_ssh`, `is_smtp`, `is_web`, `is_dns_resolver`, `is_bittorrent` and `asn.type`: they keep their plain types, `bool` and `str`, and read `False` and `""` when the answer leaves them out, so `result.raw` is how you tell a member the answer carried from one it did not.
|
|
411
411
|
|
|
412
412
|
```python
|
|
413
413
|
result.flagged("is_hosting") # False rather than None on a plan without it
|
|
414
414
|
result.is_hosting is None # True on Unlimited: not in your plan
|
|
415
415
|
result.is_bot # False on Unlimited, which leaves it out
|
|
416
416
|
"is_bot" in result.raw # False on Unlimited: it was not in the answer
|
|
417
|
+
result.asn.type # "" on Unlimited, which leaves it out
|
|
418
|
+
"type" in result.raw["asn"] # False on Unlimited: it was not in the answer
|
|
417
419
|
result.location.city is None # True on Unlimited
|
|
418
420
|
result.trial_expired is True # a free-plan key's trial is spent
|
|
419
421
|
result.cap_reached is True # a paid key is past its overage cap
|
|
@@ -85,10 +85,10 @@ acct = client.my_entitlement()
|
|
|
85
85
|
print(acct.plan.key) # data_4
|
|
86
86
|
print(acct.plan.name) # Data, the name to show
|
|
87
87
|
print(acct.usage.requests) # 580
|
|
88
|
-
print(acct.usage.window_end) # when the allowance resets
|
|
88
|
+
print(acct.usage.window_end) # when the allowance resets, or its trial ends on the free plan
|
|
89
89
|
```
|
|
90
90
|
|
|
91
|
-
Usage counts against the anniversary of your subscription on a paid plan, not the calendar month and not the billing period; on the free plan it counts its trial, the lookups answered with every field. It is the same number a lookup is gated on. `hard_limit` is `None` on an uncapped plan, which is not the same as zero.
|
|
91
|
+
Usage counts against the anniversary of your subscription on a paid plan, not the calendar month and not the billing period; on the free plan it counts its trial, the lookups answered with every field, in a window that begins at the organization's first keyed lookup and ends once. It is the same number a lookup is gated on. `hard_limit` is `None` on an uncapped plan, which is not the same as zero.
|
|
92
92
|
|
|
93
93
|
Both are on the async client too: `await client.my_ip()` and `await client.my_entitlement()`.
|
|
94
94
|
|
|
@@ -372,13 +372,15 @@ Each redirect URI must be https on a public host name, or http on a loopback add
|
|
|
372
372
|
|
|
373
373
|
### Fields your plan does not include
|
|
374
374
|
|
|
375
|
-
Unlimited leaves out the VPN, proxy, hosting, CDN, bot, carrier, satellite, SSH, SMTP, web, DNS resolver and BitTorrent flags, the detail behind every flag but Tor's and relay's (`bot`, whose bot uses the address, included), the city and region, the Whois records and the hosted domains; a free-plan key's answer carries `trial_expired`, true once its trial is spent. A paid key's carries `cap_reached`, true once its organization's overage cap is reached, when the answer has Unlimited's fields and isn't billed. Those are `None` when your key does not include them, which means "not in your plan" rather than "checked, and no", inside `location`, `asn`, `company` and `abuse` too. The exception, until the next major, is `is_bot`, `is_carrier`, `is_satellite`, `is_ssh`, `is_smtp`, `is_web`, `is_dns_resolver` and `
|
|
375
|
+
Unlimited leaves out the VPN, proxy, hosting, CDN, bot, carrier, satellite, SSH, SMTP, web, DNS resolver and BitTorrent flags, the detail behind every flag but Tor's and relay's (`bot`, whose bot uses the address, included), the city and region, the kind of network the AS runs (`asn.type`), the Whois records and the hosted domains; a free-plan key's answer carries `trial_expired`, true once its trial is spent. A paid key's carries `cap_reached`, true once its organization's overage cap is reached, when the answer has Unlimited's fields and isn't billed. Those are `None` when your key does not include them, which means "not in your plan" rather than "checked, and no", inside `location`, `asn`, `company` and `abuse` too. The exception, until the next major, is `is_bot`, `is_carrier`, `is_satellite`, `is_ssh`, `is_smtp`, `is_web`, `is_dns_resolver`, `is_bittorrent` and `asn.type`: they keep their plain types, `bool` and `str`, and read `False` and `""` when the answer leaves them out, so `result.raw` is how you tell a member the answer carried from one it did not.
|
|
376
376
|
|
|
377
377
|
```python
|
|
378
378
|
result.flagged("is_hosting") # False rather than None on a plan without it
|
|
379
379
|
result.is_hosting is None # True on Unlimited: not in your plan
|
|
380
380
|
result.is_bot # False on Unlimited, which leaves it out
|
|
381
381
|
"is_bot" in result.raw # False on Unlimited: it was not in the answer
|
|
382
|
+
result.asn.type # "" on Unlimited, which leaves it out
|
|
383
|
+
"type" in result.raw["asn"] # False on Unlimited: it was not in the answer
|
|
382
384
|
result.location.city is None # True on Unlimited
|
|
383
385
|
result.trial_expired is True # a free-plan key's trial is spent
|
|
384
386
|
result.cap_reached is True # a paid key is past its overage cap
|
|
@@ -13,7 +13,7 @@ info:
|
|
|
13
13
|
email: support@internetdata.io
|
|
14
14
|
url: https://internetdata.io
|
|
15
15
|
termsOfService: https://internetdata.io/terms
|
|
16
|
-
version: 2026.11.
|
|
16
|
+
version: 2026.11.27
|
|
17
17
|
servers:
|
|
18
18
|
- url: https://internetdata.io
|
|
19
19
|
tags:
|
|
@@ -979,7 +979,6 @@ paths:
|
|
|
979
979
|
asn: 9009
|
|
980
980
|
name: M247 Europe SRL
|
|
981
981
|
domain: m247global.com
|
|
982
|
-
type: hosting
|
|
983
982
|
prefix: 146.70.116.0/24
|
|
984
983
|
country: RO
|
|
985
984
|
rpki_status: not_found
|
|
@@ -1127,7 +1126,6 @@ paths:
|
|
|
1127
1126
|
asn: 9009
|
|
1128
1127
|
name: M247 Europe SRL
|
|
1129
1128
|
domain: m247global.com
|
|
1130
|
-
type: hosting
|
|
1131
1129
|
prefix: 146.70.116.0/24
|
|
1132
1130
|
country: RO
|
|
1133
1131
|
rpki_status: not_found
|
|
@@ -1558,7 +1556,6 @@ paths:
|
|
|
1558
1556
|
asn: 9009
|
|
1559
1557
|
name: M247 Europe SRL
|
|
1560
1558
|
domain: m247global.com
|
|
1561
|
-
type: hosting
|
|
1562
1559
|
prefix: 146.70.116.0/24
|
|
1563
1560
|
country: RO
|
|
1564
1561
|
rpki_status: not_found
|
|
@@ -1833,7 +1830,6 @@ paths:
|
|
|
1833
1830
|
asn: 9009
|
|
1834
1831
|
name: M247 Europe SRL
|
|
1835
1832
|
domain: m247global.com
|
|
1836
|
-
type: hosting
|
|
1837
1833
|
prefix: 146.70.116.0/24
|
|
1838
1834
|
country: RO
|
|
1839
1835
|
rpki_status: not_found
|
|
@@ -2754,7 +2750,12 @@ paths:
|
|
|
2754
2750
|
been spent against that plan's allowance in the current window.
|
|
2755
2751
|
responses:
|
|
2756
2752
|
'200':
|
|
2757
|
-
description:
|
|
2753
|
+
description: |
|
|
2754
|
+
The key's entitlements and consumption. On the free plan, Unlimited,
|
|
2755
|
+
usage is its trial: the lookups answered with every field while it
|
|
2756
|
+
lasts, against its limit, and no hard limit, since nothing stops a
|
|
2757
|
+
lookup past it. The trial's length and limit are on the pricing
|
|
2758
|
+
page, never fixed here.
|
|
2758
2759
|
content:
|
|
2759
2760
|
application/json:
|
|
2760
2761
|
schema:
|
|
@@ -2778,28 +2779,6 @@ paths:
|
|
|
2778
2779
|
hard_limit: null
|
|
2779
2780
|
window_start: '2026-09-04T07:00:00Z'
|
|
2780
2781
|
window_end: '2026-10-04T07:00:00Z'
|
|
2781
|
-
free:
|
|
2782
|
-
summary: >-
|
|
2783
|
-
A key of an organization on the free plan, Unlimited: its usage is its trial,
|
|
2784
|
-
the lookups answered with every field while it lasts, against the trial's limit.
|
|
2785
|
-
Nothing stops it past the trial, its lookups answering with Unlimited's fields,
|
|
2786
|
-
so there is no hard limit
|
|
2787
|
-
value:
|
|
2788
|
-
org_id: f32191d0-ef02-450e-a505-eb5814c35cab
|
|
2789
|
-
apikey:
|
|
2790
|
-
id: 10c2b437-3aa2-4a63-bd17-8e7c8c7f0def
|
|
2791
|
-
expires: null
|
|
2792
|
-
allowed_cidrs: []
|
|
2793
|
-
plan:
|
|
2794
|
-
key: free
|
|
2795
|
-
name: Unlimited
|
|
2796
|
-
tier: free
|
|
2797
|
-
usage:
|
|
2798
|
-
requests: 37
|
|
2799
|
-
quota: 250000
|
|
2800
|
-
hard_limit: null
|
|
2801
|
-
window_start: '2026-11-24T10:15:00Z'
|
|
2802
|
-
window_end: '2026-12-08T10:15:00Z'
|
|
2803
2782
|
'401':
|
|
2804
2783
|
description: No key was presented, or it is unknown, revoked or expired.
|
|
2805
2784
|
content:
|
|
@@ -4406,7 +4385,7 @@ components:
|
|
|
4406
4385
|
description: Its operator's domain.
|
|
4407
4386
|
type:
|
|
4408
4387
|
type: string
|
|
4409
|
-
description: The kind of network it runs.
|
|
4388
|
+
description: The kind of network it runs. On a paid plan or the trial.
|
|
4410
4389
|
prefix:
|
|
4411
4390
|
type: string
|
|
4412
4391
|
description: The announced prefix covering the address.
|
|
@@ -4420,7 +4399,6 @@ components:
|
|
|
4420
4399
|
- asn
|
|
4421
4400
|
- name
|
|
4422
4401
|
- domain
|
|
4423
|
-
- type
|
|
4424
4402
|
- prefix
|
|
4425
4403
|
- country
|
|
4426
4404
|
- rpki_status
|
|
@@ -5186,7 +5164,7 @@ components:
|
|
|
5186
5164
|
renamed or reused: `free` for the free plan, or a paid plan's key.
|
|
5187
5165
|
Compare against it and show `name`. On `free`, usage counts its
|
|
5188
5166
|
trial, the lookups answered with every field. The Data plan is a key
|
|
5189
|
-
per quota
|
|
5167
|
+
per quota (`data_1`, `data_2` and on), each named Data.
|
|
5190
5168
|
example: data_4
|
|
5191
5169
|
name:
|
|
5192
5170
|
type: string
|
|
@@ -6,6 +6,8 @@ from typing import Any, Self, TypeVar
|
|
|
6
6
|
from attrs import define as _attrs_define
|
|
7
7
|
from attrs import field as _attrs_field
|
|
8
8
|
|
|
9
|
+
from ..types import UNSET, Unset
|
|
10
|
+
|
|
9
11
|
T = TypeVar("T", bound="Asn")
|
|
10
12
|
|
|
11
13
|
|
|
@@ -17,19 +19,19 @@ class Asn:
|
|
|
17
19
|
asn (int): The AS announcing the address, 0 where none does.
|
|
18
20
|
name (str): Its operator.
|
|
19
21
|
domain (str): Its operator's domain.
|
|
20
|
-
type_ (str): The kind of network it runs.
|
|
21
22
|
prefix (str): The announced prefix covering the address.
|
|
22
23
|
country (str): The country its registry assigned it to.
|
|
23
24
|
rpki_status (str): The announcement's RPKI status.
|
|
25
|
+
type_ (str | Unset): The kind of network it runs. On a paid plan or the trial.
|
|
24
26
|
"""
|
|
25
27
|
|
|
26
28
|
asn: int
|
|
27
29
|
name: str
|
|
28
30
|
domain: str
|
|
29
|
-
type_: str
|
|
30
31
|
prefix: str
|
|
31
32
|
country: str
|
|
32
33
|
rpki_status: str
|
|
34
|
+
type_: str | Unset = UNSET
|
|
33
35
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
34
36
|
|
|
35
37
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -39,14 +41,14 @@ class Asn:
|
|
|
39
41
|
|
|
40
42
|
domain = self.domain
|
|
41
43
|
|
|
42
|
-
type_ = self.type_
|
|
43
|
-
|
|
44
44
|
prefix = self.prefix
|
|
45
45
|
|
|
46
46
|
country = self.country
|
|
47
47
|
|
|
48
48
|
rpki_status = self.rpki_status
|
|
49
49
|
|
|
50
|
+
type_ = self.type_
|
|
51
|
+
|
|
50
52
|
field_dict: dict[str, Any] = {}
|
|
51
53
|
field_dict.update(self.additional_properties)
|
|
52
54
|
field_dict.update(
|
|
@@ -54,12 +56,13 @@ class Asn:
|
|
|
54
56
|
"asn": asn,
|
|
55
57
|
"name": name,
|
|
56
58
|
"domain": domain,
|
|
57
|
-
"type": type_,
|
|
58
59
|
"prefix": prefix,
|
|
59
60
|
"country": country,
|
|
60
61
|
"rpki_status": rpki_status,
|
|
61
62
|
}
|
|
62
63
|
)
|
|
64
|
+
if type_ is not UNSET:
|
|
65
|
+
field_dict["type"] = type_
|
|
63
66
|
|
|
64
67
|
return field_dict
|
|
65
68
|
|
|
@@ -72,22 +75,22 @@ class Asn:
|
|
|
72
75
|
|
|
73
76
|
domain = d.pop("domain")
|
|
74
77
|
|
|
75
|
-
type_ = d.pop("type")
|
|
76
|
-
|
|
77
78
|
prefix = d.pop("prefix")
|
|
78
79
|
|
|
79
80
|
country = d.pop("country")
|
|
80
81
|
|
|
81
82
|
rpki_status = d.pop("rpki_status")
|
|
82
83
|
|
|
84
|
+
type_ = d.pop("type", UNSET)
|
|
85
|
+
|
|
83
86
|
asn = cls(
|
|
84
87
|
asn=asn,
|
|
85
88
|
name=name,
|
|
86
89
|
domain=domain,
|
|
87
|
-
type_=type_,
|
|
88
90
|
prefix=prefix,
|
|
89
91
|
country=country,
|
|
90
92
|
rpki_status=rpki_status,
|
|
93
|
+
type_=type_,
|
|
91
94
|
)
|
|
92
95
|
|
|
93
96
|
asn.additional_properties = d
|
{internetdata-2.21.0 → internetdata-2.23.0}/src/internetdata/_generated/models/entitlement_plan.py
RENAMED
|
@@ -19,7 +19,7 @@ class EntitlementPlan:
|
|
|
19
19
|
renamed or reused: `free` for the free plan, or a paid plan's key.
|
|
20
20
|
Compare against it and show `name`. On `free`, usage counts its
|
|
21
21
|
trial, the lookups answered with every field. The Data plan is a key
|
|
22
|
-
per quota
|
|
22
|
+
per quota (`data_1`, `data_2` and on), each named Data.
|
|
23
23
|
Example: data_4.
|
|
24
24
|
name (str): The plan's name, as the site and console show it: `Unlimited` for
|
|
25
25
|
the free plan. Show this rather than a name built from `key`: a
|
|
@@ -16,6 +16,7 @@ from .condition import (
|
|
|
16
16
|
from .core import (
|
|
17
17
|
DEFAULT_RETRIES,
|
|
18
18
|
DEFAULT_TIMEOUT,
|
|
19
|
+
MAX_AGENTS_PER_ADDRESS,
|
|
19
20
|
AsyncCore,
|
|
20
21
|
Core,
|
|
21
22
|
Guard,
|
|
@@ -27,12 +28,14 @@ from .core import (
|
|
|
27
28
|
Selectors,
|
|
28
29
|
UserAgentSelector,
|
|
29
30
|
bind_selectors,
|
|
31
|
+
names_crawler,
|
|
30
32
|
verified,
|
|
31
33
|
)
|
|
32
34
|
|
|
33
35
|
__all__ = [
|
|
34
36
|
"DEFAULT_RETRIES",
|
|
35
37
|
"DEFAULT_TIMEOUT",
|
|
38
|
+
"MAX_AGENTS_PER_ADDRESS",
|
|
36
39
|
"AsyncCore",
|
|
37
40
|
"BlockCondition",
|
|
38
41
|
"Conditions",
|
|
@@ -49,6 +52,7 @@ __all__ = [
|
|
|
49
52
|
"constraint_count",
|
|
50
53
|
"matches",
|
|
51
54
|
"missing_members",
|
|
55
|
+
"names_crawler",
|
|
52
56
|
"validate",
|
|
53
57
|
"verified",
|
|
54
58
|
]
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Generated. Do not edit: a regeneration overwrites it.
|
|
2
|
+
# Lowercase substrings, one of which a crawler's ASCII-lowercased User-Agent contains.
|
|
3
|
+
|
|
4
|
+
CRAWLER_TERMS: tuple[str, ...] = (
|
|
5
|
+
"+http",
|
|
6
|
+
"ahrefssiteaudit",
|
|
7
|
+
"amzn-user",
|
|
8
|
+
"anthropic-ai",
|
|
9
|
+
"barkrowler",
|
|
10
|
+
"better stack",
|
|
11
|
+
"betterstack",
|
|
12
|
+
"bingpreview",
|
|
13
|
+
"bot",
|
|
14
|
+
"censysinspect",
|
|
15
|
+
"chatgpt-user",
|
|
16
|
+
"claude-user",
|
|
17
|
+
"claude-web",
|
|
18
|
+
"cohere-ai",
|
|
19
|
+
"crawl",
|
|
20
|
+
"datadogsynthetics",
|
|
21
|
+
"embedly",
|
|
22
|
+
"expanse",
|
|
23
|
+
"facebookcatalog",
|
|
24
|
+
"facebookexternalhit",
|
|
25
|
+
"flipboardproxy",
|
|
26
|
+
"flipboardrss",
|
|
27
|
+
"github-hookshot/",
|
|
28
|
+
"google-agent",
|
|
29
|
+
"google-extended",
|
|
30
|
+
"google-inspectiontool",
|
|
31
|
+
"google-read-aloud",
|
|
32
|
+
"google-site-verification",
|
|
33
|
+
"googleother",
|
|
34
|
+
"iframely",
|
|
35
|
+
"internetmeasurement",
|
|
36
|
+
"keenable-user",
|
|
37
|
+
"lumar",
|
|
38
|
+
"masscan",
|
|
39
|
+
"mediapartners-google",
|
|
40
|
+
"meta-externalagent",
|
|
41
|
+
"meta-externalfetcher",
|
|
42
|
+
"meta-webindexer",
|
|
43
|
+
"mistralai-user",
|
|
44
|
+
"nmap",
|
|
45
|
+
"notebooklm",
|
|
46
|
+
"nuclei",
|
|
47
|
+
"paloaltonetworks.com",
|
|
48
|
+
"parse.ly",
|
|
49
|
+
"parsely.com",
|
|
50
|
+
"perplexity-user",
|
|
51
|
+
"pingdom",
|
|
52
|
+
"pinterest",
|
|
53
|
+
"rssapi/",
|
|
54
|
+
"screaming frog",
|
|
55
|
+
"site24x7",
|
|
56
|
+
"skypeuripreview",
|
|
57
|
+
"slack-imgproxy",
|
|
58
|
+
"slurp",
|
|
59
|
+
"sogou",
|
|
60
|
+
"spider",
|
|
61
|
+
"statuscake",
|
|
62
|
+
"stripe/1.0",
|
|
63
|
+
"ttd-content",
|
|
64
|
+
"whatsapp",
|
|
65
|
+
"yandex",
|
|
66
|
+
"yeti/",
|
|
67
|
+
"zgrab",
|
|
68
|
+
)
|
|
@@ -59,13 +59,16 @@ def missing_members(condition: Conditions, result: Any) -> list[str]:
|
|
|
59
59
|
populated object carries every member the plan includes, so a member missing there
|
|
60
60
|
is one.
|
|
61
61
|
|
|
62
|
-
A
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
A bogon's answer reports nothing missing: it is synthesized in the widest shape, so
|
|
63
|
+
every member is present but a user agent's verdict, which this client leaves out for a
|
|
64
|
+
bogon and which no plan gap explains. A member the type holds as False or "" (a flag,
|
|
65
|
+
``asn.type``) is missing when the served answer lacked it.
|
|
65
66
|
"""
|
|
67
|
+
if getattr(result, "is_bogon", False) is True:
|
|
68
|
+
return []
|
|
66
69
|
missing: list[str] = []
|
|
67
70
|
for one in _as_list(condition):
|
|
68
|
-
_collect_missing(one, result, "", missing)
|
|
71
|
+
_collect_missing(one, result, "", missing, None)
|
|
69
72
|
return missing
|
|
70
73
|
|
|
71
74
|
|
|
@@ -108,29 +111,37 @@ def _as_list(condition: Conditions) -> list[BlockCondition]:
|
|
|
108
111
|
|
|
109
112
|
|
|
110
113
|
def _collect_missing(
|
|
111
|
-
condition: BlockCondition,
|
|
114
|
+
condition: BlockCondition,
|
|
115
|
+
value: Any,
|
|
116
|
+
prefix: str,
|
|
117
|
+
missing: list[str],
|
|
118
|
+
served: Any,
|
|
112
119
|
) -> None:
|
|
120
|
+
"""`served` is the wire object `value` was read from, when its parent knew it: only the
|
|
121
|
+
answer itself carries `raw`, so a held member of an object inside it reads its parent's."""
|
|
122
|
+
if served is None:
|
|
123
|
+
served = getattr(value, "raw", None)
|
|
113
124
|
for member, want in condition.items():
|
|
114
125
|
if constraint_count(want) == 0:
|
|
115
126
|
continue
|
|
116
127
|
path = f"{prefix}{member}"
|
|
117
128
|
got = getattr(value, member, None)
|
|
118
|
-
if got is None or _left_out(value, member):
|
|
129
|
+
if got is None or _left_out(value, member, served):
|
|
119
130
|
if path not in missing:
|
|
120
131
|
missing.append(path)
|
|
121
132
|
continue
|
|
122
133
|
if isinstance(want, dict) and not _is_bound(want) and _populated(got):
|
|
123
|
-
|
|
134
|
+
inner = served.get(member) if isinstance(served, dict) else None
|
|
135
|
+
_collect_missing(want, got, f"{path}.", missing, inner)
|
|
124
136
|
|
|
125
137
|
|
|
126
|
-
def _left_out(value: Any, member: str) -> bool:
|
|
127
|
-
"""Whether the served answer lacked a
|
|
128
|
-
|
|
138
|
+
def _left_out(value: Any, member: str, served: Any) -> bool:
|
|
139
|
+
"""Whether the served answer lacked a member the type holds as False or "". The type
|
|
140
|
+
reads it so either way, so only the wire object tells; an answer with none (a bogon's,
|
|
129
141
|
or one built by hand) reads as it was built."""
|
|
130
142
|
fields = getattr(value, "__dataclass_fields__", {})
|
|
131
143
|
held = member in fields and fields[member].metadata.get("held")
|
|
132
|
-
|
|
133
|
-
return bool(held and raw and member not in raw)
|
|
144
|
+
return bool(held and served and member not in served)
|
|
134
145
|
|
|
135
146
|
|
|
136
147
|
def _populated(value: Any) -> bool:
|