ipbulucu 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,44 @@
1
+ Metadata-Version: 2.4
2
+ Name: ipbulucu
3
+ Version: 1.0.0
4
+ Summary: Official Python SDK for ipbulucu.org - Free IP Geolocation, Whois and Network Intelligence API
5
+ Home-page: https://ipbulucu.org
6
+ Author: ipbulucu.org
7
+ Author-email: info@ipbulucu.org
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.7
12
+ Description-Content-Type: text/markdown
13
+ Requires-Dist: requests>=2.25.0
14
+ Dynamic: author
15
+ Dynamic: author-email
16
+ Dynamic: classifier
17
+ Dynamic: description
18
+ Dynamic: description-content-type
19
+ Dynamic: home-page
20
+ Dynamic: requires-dist
21
+ Dynamic: requires-python
22
+ Dynamic: summary
23
+
24
+ # ipbulucu - Official Python SDK
25
+
26
+ Official Python library for querying [ipbulucu.org](https://ipbulucu.org) Network & IP Intelligence API.
27
+
28
+ ## Installation
29
+ ```bash
30
+ pip install ipbulucu
31
+ ```
32
+
33
+ ## Quick Example
34
+ ```python
35
+ import ipbulucu
36
+
37
+ # 1. IP Lookup
38
+ info = ipbulucu.get_ip("81.213.153.20")
39
+ print(f"City: {info.get('city')}, ISP: {info.get('isp')}")
40
+
41
+ # 2. Whois Lookup
42
+ whois = ipbulucu.get_whois("turktelekom.com.tr")
43
+ print(f"Registrar: {whois.get('registrar')}")
44
+ ```
@@ -0,0 +1,21 @@
1
+ # ipbulucu - Official Python SDK
2
+
3
+ Official Python library for querying [ipbulucu.org](https://ipbulucu.org) Network & IP Intelligence API.
4
+
5
+ ## Installation
6
+ ```bash
7
+ pip install ipbulucu
8
+ ```
9
+
10
+ ## Quick Example
11
+ ```python
12
+ import ipbulucu
13
+
14
+ # 1. IP Lookup
15
+ info = ipbulucu.get_ip("81.213.153.20")
16
+ print(f"City: {info.get('city')}, ISP: {info.get('isp')}")
17
+
18
+ # 2. Whois Lookup
19
+ whois = ipbulucu.get_whois("turktelekom.com.tr")
20
+ print(f"Registrar: {whois.get('registrar')}")
21
+ ```
@@ -0,0 +1,21 @@
1
+ import requests
2
+
3
+ BASE_URL = "https://ipbulucu.org/api"
4
+
5
+ def get_ip(ip=None):
6
+ """Retrieve IP intelligence data."""
7
+ params = {"format": "json"}
8
+ if ip:
9
+ params["ip"] = ip
10
+ resp = requests.get(f"{BASE_URL}/ip", params=params, timeout=5)
11
+ return resp.json()
12
+
13
+ def get_whois(domain):
14
+ """Query TRABIS / Universal Whois."""
15
+ resp = requests.get(f"{BASE_URL}/whois", params={"domain": domain}, timeout=5)
16
+ return resp.json()
17
+
18
+ def check_port(host, port=80):
19
+ """Test remote port availability."""
20
+ resp = requests.get(f"{BASE_URL}/port", params={"host": host, "port": port}, timeout=5)
21
+ return resp.json()
@@ -0,0 +1,44 @@
1
+ Metadata-Version: 2.4
2
+ Name: ipbulucu
3
+ Version: 1.0.0
4
+ Summary: Official Python SDK for ipbulucu.org - Free IP Geolocation, Whois and Network Intelligence API
5
+ Home-page: https://ipbulucu.org
6
+ Author: ipbulucu.org
7
+ Author-email: info@ipbulucu.org
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.7
12
+ Description-Content-Type: text/markdown
13
+ Requires-Dist: requests>=2.25.0
14
+ Dynamic: author
15
+ Dynamic: author-email
16
+ Dynamic: classifier
17
+ Dynamic: description
18
+ Dynamic: description-content-type
19
+ Dynamic: home-page
20
+ Dynamic: requires-dist
21
+ Dynamic: requires-python
22
+ Dynamic: summary
23
+
24
+ # ipbulucu - Official Python SDK
25
+
26
+ Official Python library for querying [ipbulucu.org](https://ipbulucu.org) Network & IP Intelligence API.
27
+
28
+ ## Installation
29
+ ```bash
30
+ pip install ipbulucu
31
+ ```
32
+
33
+ ## Quick Example
34
+ ```python
35
+ import ipbulucu
36
+
37
+ # 1. IP Lookup
38
+ info = ipbulucu.get_ip("81.213.153.20")
39
+ print(f"City: {info.get('city')}, ISP: {info.get('isp')}")
40
+
41
+ # 2. Whois Lookup
42
+ whois = ipbulucu.get_whois("turktelekom.com.tr")
43
+ print(f"Registrar: {whois.get('registrar')}")
44
+ ```
@@ -0,0 +1,8 @@
1
+ README.md
2
+ setup.py
3
+ ipbulucu/__init__.py
4
+ ipbulucu.egg-info/PKG-INFO
5
+ ipbulucu.egg-info/SOURCES.txt
6
+ ipbulucu.egg-info/dependency_links.txt
7
+ ipbulucu.egg-info/requires.txt
8
+ ipbulucu.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ requests>=2.25.0
@@ -0,0 +1 @@
1
+ ipbulucu
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,20 @@
1
+ from setuptools import setup, find_packages
2
+
3
+ setup(
4
+ name="ipbulucu",
5
+ version="1.0.0",
6
+ description="Official Python SDK for ipbulucu.org - Free IP Geolocation, Whois and Network Intelligence API",
7
+ long_description=open("README.md", encoding="utf-8").read(),
8
+ long_description_content_type="text/markdown",
9
+ author="ipbulucu.org",
10
+ author_email="info@ipbulucu.org",
11
+ url="https://ipbulucu.org",
12
+ packages=find_packages(),
13
+ install_requires=["requests>=2.25.0"],
14
+ classifiers=[
15
+ "Programming Language :: Python :: 3",
16
+ "License :: OSI Approved :: MIT License",
17
+ "Operating System :: OS Independent",
18
+ ],
19
+ python_requires=">=3.7",
20
+ )