What's the difference between this Python project and similar ones?
As the library is officially built on top of IPinfo's API service, it is hard to distinguish this Python project from similar ones. However, there are additional advantages to using the library instead of accessing the API directly:
The library has built-in support for native bulk operations, allowing for efficient enrichment of IP metadata on a large scale without the need for sequential API calls.
The API does not provide country-specific information.
The library handles asynchronous operations internally.
Both Python and this library offer caching support, which is not available at the API level.
--
Anyone who agrees with this pull request could submit an Approve review to it.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/vinta/awesome-python/pull/2559
**Author:** [@abdullahdevrel](https://github.com/abdullahdevrel)
**Created:** 1/31/2024
**Status:** ❌ Closed
**Base:** `master` ← **Head:** `master`
---
### 📝 Commits (1)
- [`7536075`](https://github.com/vinta/awesome-python/commit/753607549c83f48080a7183f67099ee34534f800) Added IPinfo
### 📊 Changes
**1 file changed** (+1 additions, -0 deletions)
<details>
<summary>View changed files</summary>
📝 `README.md` (+1 -0)
</details>
### 📄 Description
## What is this Python project?
This is the official IPinfo's Python library and provides IP to Geolocation data. The library is awesome because:
- It provides easy access to IPinfo's API services such as IP to Geolocation data, ASN, privacy detection etc.
- It even supports tokenless access to the API (1,000 req/month)
- It supports bulk IP enrichment
- Has native support for caching
- Support async operation
Code example:
```python
import ipinfo
handler = ipinfo.getHandler()
ip = "149.74.80.31"
details = handler.getDetails(ip)
print(details.all)
```
Output
```json
{
"ip": "149.74.80.31",
"hostname": "31.pool149-74-80.dynamic.orange.es",
"city": "Sant Mart\u00ed",
"region": "Catalonia",
"country": "ES",
"loc": "41.4181,2.1993",
"org": "AS12479 Orange Espagne SA",
"postal": "08018",
"timezone": "Europe/Madrid",
"readme": "https://ipinfo.io/missingauth",
"country_name": "Spain",
"isEU": true,
"country_flag_url": "https://cdn.ipinfo.io/static/images/countries-flags/ES.svg",
"country_flag": {
"emoji": "\ud83c\uddea\ud83c\uddf8",
"unicode": "U+1F1EA U+1F1F8"
},
"country_currency": {
"code": "EUR",
"symbol": "\u20ac"
},
"continent": {
"code": "EU",
"name": "Europe"
},
"latitude": "41.4181",
"longitude": "2.1993"
}
```
## What's the difference between this Python project and similar ones?
As the library is officially built on top of IPinfo's API service, it is hard to distinguish this Python project from similar ones. However, there are additional advantages to using the library instead of accessing the API directly:
- The library has built-in support for native bulk operations, allowing for efficient enrichment of IP metadata on a large scale without the need for sequential API calls.
- The API does not provide country-specific information.
- The library handles asynchronous operations internally.
- Both Python and this library offer caching support, which is not available at the API level.
--
Anyone who agrees with this pull request could submit an *Approve* review to it.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/vinta/awesome-python/pull/2559
Author: @abdullahdevrel
Created: 1/31/2024
Status: ❌ Closed
Base:
master← Head:master📝 Commits (1)
7536075Added IPinfo📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
README.md(+1 -0)📄 Description
What is this Python project?
This is the official IPinfo's Python library and provides IP to Geolocation data. The library is awesome because:
Code example:
Output
What's the difference between this Python project and similar ones?
As the library is officially built on top of IPinfo's API service, it is hard to distinguish this Python project from similar ones. However, there are additional advantages to using the library instead of accessing the API directly:
--
Anyone who agrees with this pull request could submit an Approve review to it.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.