Metadata-Version: 2.1
Name: IpPersian
Version: 1.0.9
Summary: IpPersian
Author: Erfan Mahigir (Sarzamin Danesh Pishro)
Author-email: <info@Lssc.ir>
Keywords: python,Date,Persian,Time,Gregorian,Convert,Iranian
Classifier: Framework :: Django
Classifier: Framework :: Flask
Classifier: Framework :: FastAPI
Classifier: Framework :: IDLE
Classifier: Framework :: IPython
Classifier: Framework :: Jupyter
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3.0
Classifier: Programming Language :: Python :: 3.1
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Operating System :: Unix
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: Android
Classifier: Operating System :: iOS
Classifier: License :: OSI Approved :: MIT License
Description-Content-Type: text/markdown
Requires-Dist: requests


## 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.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.

