## Ip Lookup Persian
The IpPersian library can give you complete information about the requester's IP. If you want to check the IP address of the person using yours application or site, in which country and city, use this library. These are not the only facilities available, are continue...
---
### **Install Library IpPersian**
```python
pip install IpPersian
```
### **Import Library to module**
```python
from IpPersian import IpPersian
```
### Use Library in module
If you want to check a person's default IP, do the following...
```python
from IpPersian import IpPersian
ip = IpPersian()
```
If you want all the IP information to be displayed to you, do the following...
```python
from IpPersian import IpPersian
ip = IpPersian()
print(ip)
__________ output __________
IP : xx:xx:xx:xx
asn : x
country : x city: x
...
```
If you want to check a specific IP, just send it to the library.
```python
from IpPersian import IpPersian
ip = IpPersian("xx.xx.xx.xx")
print(ip)
__________ output __________
IP : xx.xx.xx.xx
asn : x
country : x city: x
...
```
### Receive information in a separate form
If you want to get the IP information separately, use the table below...
| function | call type | description |
| ------------- | --------- | ------------------------------------------------------------ |
| ip() | abject | return IP |
| asn() | abject | return number asn by type string |
| asnName() | abject | returns name asn |
| asnOrg() | abject | returns the name of the company that registered the asn |
| city() | abject | returns the name of the city where the ip is used |
| continent() | abject | returns the name of the continent on which the IP is located |
| country() | abject | returns the name of the country in which the IP is located |
| countryCode() | abject | returns the global country code of the ip |
| isp() | abject | returns the name of the IP Internet provider |
| lat() | abject | return number lat by type string, for location |
| lon() | abject | return number lon by type string, for location |
| org() | abject | returns the IP provider company name |
| region() | abject | returns the name of the province in which the IP is used |
| timezone() | abject | returns the time zone of the ip |
| utcOffset() | abject | returns the time point of the ip |
---
### **Changes made**
- Version 1.0.10
- bug fixed
- Version 1.0.9
- secure ip token
- compatibility to Django (install requires = requests library)
---
The great scientific and educational collection of the [**SARZAMIN DANESH**](https://lssc.ir) thanks you.
Raw data
{
"_id": null,
"home_page": "",
"name": "IpPersian",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "python,Date,Persian,Time,Gregorian,Convert,Iranian",
"author": "Erfan Mahigir (Sarzamin Danesh Pishro)",
"author_email": "<info@Lssc.ir>",
"download_url": "https://files.pythonhosted.org/packages/cf/12/b121788ae50236a62610e7d52300535cc1113b59e49b1ef78819232d2808/IpPersian-1.0.10.tar.gz",
"platform": null,
"description": "\r\n## Ip Lookup Persian\r\n\r\n\r\n\r\nThe IpPersian library can give you complete information about the requester's IP. If you want to check the IP address of the person using yours application or site, in which country and city, use this library. These are not the only facilities available, are continue...\r\n\r\n\r\n\r\n---\r\n\r\n\r\n\r\n### **Install Library IpPersian**\r\n\r\n\r\n\r\n```python\r\n\r\npip install IpPersian\r\n\r\n```\r\n\r\n\r\n\r\n### **Import Library to module**\r\n\r\n\r\n\r\n```python\r\n\r\nfrom IpPersian import IpPersian\r\n\r\n```\r\n\r\n\r\n\r\n### Use Library in module\r\n\r\n\r\n\r\nIf you want to check a person's default IP, do the following...\r\n\r\n\r\n\r\n```python\r\n\r\nfrom IpPersian import IpPersian\r\n\r\nip = IpPersian()\r\n\r\n```\r\n\r\n\r\n\r\nIf you want all the IP information to be displayed to you, do the following...\r\n\r\n\r\n\r\n```python\r\n\r\nfrom IpPersian import IpPersian\r\n\r\nip = IpPersian()\r\n\r\nprint(ip)\r\n\r\n__________ output __________\r\n\r\nIP : xx:xx:xx:xx\r\n\r\nasn : x\r\n\r\ncountry : x city: x\r\n\r\n...\r\n\r\n```\r\n\r\n\r\n\r\nIf you want to check a specific IP, just send it to the library.\r\n\r\n\r\n\r\n```python\r\n\r\nfrom IpPersian import IpPersian\r\n\r\nip = IpPersian(\"xx.xx.xx.xx\")\r\n\r\nprint(ip)\r\n\r\n__________ output __________\r\n\r\nIP : xx.xx.xx.xx\r\n\r\nasn : x\r\n\r\ncountry : x city: x\r\n\r\n...\r\n\r\n```\r\n\r\n\r\n\r\n### Receive information in a separate form\r\n\r\n\r\n\r\nIf you want to get the IP information separately, use the table below...\r\n\r\n\r\n\r\n| function | call type | description |\r\n\r\n| ------------- | --------- | ------------------------------------------------------------ |\r\n\r\n| ip() | abject | return IP |\r\n\r\n| asn() | abject | return number asn by type string |\r\n\r\n| asnName() | abject | returns name asn |\r\n\r\n| asnOrg() | abject | returns the name of the company that registered the asn |\r\n\r\n| city() | abject | returns the name of the city where the ip is used |\r\n\r\n| continent() | abject | returns the name of the continent on which the IP is located |\r\n\r\n| country() | abject | returns the name of the country in which the IP is located |\r\n\r\n| countryCode() | abject | returns the global country code of the ip |\r\n\r\n| isp() | abject | returns the name of the IP Internet provider |\r\n\r\n| lat() | abject | return number lat by type string, for location |\r\n\r\n| lon() | abject | return number lon by type string, for location |\r\n\r\n| org() | abject | returns the IP provider company name |\r\n\r\n| region() | abject | returns the name of the province in which the IP is used |\r\n\r\n| timezone() | abject | returns the time zone of the ip |\r\n\r\n| utcOffset() | abject | returns the time point of the ip |\r\n\r\n\r\n\r\n---\r\n\r\n\r\n\r\n### **Changes made**\r\n\r\n\r\n\r\n- Version 1.0.10\r\n\r\n - bug fixed\r\n\r\n\r\n\r\n- Version 1.0.9\r\n\r\n - secure ip token\r\n\r\n - compatibility to Django (install requires = requests library)\r\n\r\n\r\n\r\n---\r\n\r\n\r\n\r\nThe great scientific and educational collection of the [**SARZAMIN DANESH**](https://lssc.ir) thanks you.\r\n\r\n",
"bugtrack_url": null,
"license": "",
"summary": "IpPersian",
"version": "1.0.10",
"project_urls": null,
"split_keywords": [
"python",
"date",
"persian",
"time",
"gregorian",
"convert",
"iranian"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "5a5e6ad06919512a91f25739957f33b3ddeff3a09c44caf04513feb3d61bc69d",
"md5": "0523762bd670483ee5a1f87634f7773d",
"sha256": "2dbb10839bb2594f958819a8ee2b25f184e297a3921b7120c963d527b77af2ea"
},
"downloads": -1,
"filename": "IpPersian-1.0.10-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0523762bd670483ee5a1f87634f7773d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3311,
"upload_time": "2024-01-06T22:25:53",
"upload_time_iso_8601": "2024-01-06T22:25:53.148921Z",
"url": "https://files.pythonhosted.org/packages/5a/5e/6ad06919512a91f25739957f33b3ddeff3a09c44caf04513feb3d61bc69d/IpPersian-1.0.10-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "cf12b121788ae50236a62610e7d52300535cc1113b59e49b1ef78819232d2808",
"md5": "c90c824de84f55efede7ffb75a6a5245",
"sha256": "f1eb0e6e0cc6a926a70c9aa4c5a9d57b8aca6b3307b9f8fab5b3d4ef3a48f838"
},
"downloads": -1,
"filename": "IpPersian-1.0.10.tar.gz",
"has_sig": false,
"md5_digest": "c90c824de84f55efede7ffb75a6a5245",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3510,
"upload_time": "2024-01-06T22:25:55",
"upload_time_iso_8601": "2024-01-06T22:25:55.015058Z",
"url": "https://files.pythonhosted.org/packages/cf/12/b121788ae50236a62610e7d52300535cc1113b59e49b1ef78819232d2808/IpPersian-1.0.10.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-06 22:25:55",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "ippersian"
}