Skip to main content

IpPersian

Project description

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

pip install IpPersian

Import Library to module

from IpPersian import IpPersian

Use Library in module

If you want to check a person's default IP, do the following...

from IpPersian import IpPersian

ip = IpPersian()

If you want all the IP information to be displayed to you, do the following...

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.

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 thanks you.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

IpPersian-1.0.10.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

IpPersian-1.0.10-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file IpPersian-1.0.10.tar.gz.

File metadata

  • Download URL: IpPersian-1.0.10.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for IpPersian-1.0.10.tar.gz
Algorithm Hash digest
SHA256 f1eb0e6e0cc6a926a70c9aa4c5a9d57b8aca6b3307b9f8fab5b3d4ef3a48f838
MD5 c90c824de84f55efede7ffb75a6a5245
BLAKE2b-256 cf12b121788ae50236a62610e7d52300535cc1113b59e49b1ef78819232d2808

See more details on using hashes here.

File details

Details for the file IpPersian-1.0.10-py3-none-any.whl.

File metadata

  • Download URL: IpPersian-1.0.10-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for IpPersian-1.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 2dbb10839bb2594f958819a8ee2b25f184e297a3921b7120c963d527b77af2ea
MD5 0523762bd670483ee5a1f87634f7773d
BLAKE2b-256 5a5e6ad06919512a91f25739957f33b3ddeff3a09c44caf04513feb3d61bc69d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page