Releases: ipregistry/ipregistry-python
Releases · ipregistry/ipregistry-python
4.0.0
Changed
- Require Python 3.8+.
- Add new functions for retrieving Autonomous System data:
batch_lookup_asns
,lookup_asn
,origin_lookup_asn
. - Add new functions for user-agent header value parsing:
batch_parse_user_agents
,parse_user_agent
. - API key is passed as header value and no longer as query parameter.
- Client library method are now wrapped in a new ApiResponse object that includes a mean to retrieve metadata
about credits and throttling in addition to data. - Introduce data model for responses to enable field value access using dot notation and ensure code autocompletion functionality.
- Rename all function and variable names to adhere to snake_case convention.
- Replace the function named
lookup
by 3 new functions:batch_lookup_ips
,lookup_ip
andorigin_lookup_ip
. - Rename IpregistryConfig option
apiUrl
tobaseUrl
. - Rename UserAgent utility class to _UserAgents.
3.2.0
3.1.0
3.0.0
2.0.1
2.0.0
1.1.0
Changed
-
Decrease the default cache period to 10min from 24h.
This is to better handle use cases that require fresh security data.
Indeed, such data is updated multiple times each hour.You can still configure the cache period to a higher value:
https://github.com/ipregistry/ipregistry-python#caching