clinton 0.0.1__tar.gz → 0.0.2__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.
@@ -1,5 +1,5 @@
1
1
  appname = "clinton"
2
- version = "0.0.1"
2
+ version = "0.0.2"
3
3
 
4
4
  install = ["aiohttp",
5
5
  "requests"]
@@ -1,20 +1,24 @@
1
+ import json
1
2
  import socket
2
3
  import requests
3
- from ..scripts import Scripted
4
- #====================================================================
4
+ from ..scripts import Apis
5
+ #================================================================
5
6
 
6
7
  class InterNet:
7
8
 
8
9
  def GetIP():
9
- moones = requests.get(Scripted.DATA01)
10
+ moones = requests.get(Apis.DATA02)
10
11
  moonus = moones.json()
11
12
  return moonus['ip']
12
13
 
13
- #====================================================================
14
-
15
14
  def GetLIP():
16
15
  moones = socket.gethostname()
17
16
  moonus = socket.gethostbyname(moones)
18
17
  return moonus
19
18
 
20
- #====================================================================
19
+ def tracker(IP):
20
+ mainse = requests.get(Apis.DATA01.format(IP))
21
+ moonus = json.loads(mainse.text)
22
+ return moonus
23
+
24
+ #================================================================
@@ -0,0 +1,3 @@
1
+ from .script02 import Scripted
2
+ from .script05 import Links
3
+ from .script05 import Apis
@@ -0,0 +1,4 @@
1
+
2
+ class Script01(object):
3
+
4
+ DATA01 = ""
@@ -0,0 +1,32 @@
1
+ from .script01 import Script01
2
+
3
+ class Scripted(Script01):
4
+
5
+ TRACKER01 = "Targeted IP : {}"
6
+ TRACKER02 = "IP type : {}"
7
+ TRACKER03 = "Country : {}"
8
+ TRACKER04 = "Country Code : {}"
9
+ TRACKER05 = "City : {}"
10
+ TRACKER06 = "Continent : {}"
11
+ TRACKER07 = "Continent Code : {}"
12
+ TRACKER07 = "Region : {}"
13
+ TRACKER09 = "Region Code : {}"
14
+ TRACKER10 = "Latitude : {}"
15
+ TRACKER11 = "Longitude : {}"
16
+ TRACKER12 = "EU : {}"
17
+ TRACKER13 = "Postal : {}"
18
+ TRACKER14 = "Calling Code : {}"
19
+ TRACKER15 = "Capital : {}"
20
+ TRACKER16 = "Borders : {}"
21
+ TRACKER17 = "Country Flag : {}"
22
+ TRACKER18 = "ASN : {}"
23
+ TRACKER19 = "ORG : {}"
24
+ TRACKER20 = "ISP : {}"
25
+ TRACKER21 = "Domain : {}"
26
+ TRACKER22 = "ID : {}"
27
+ TRACKER23 = "ABBR : {}"
28
+ TRACKER24 = "DST : {}"
29
+ TRACKER25 = "Offset : {}"
30
+ TRACKER26 = "UTC : {}"
31
+ TRACKER27 = "Current Time : {}"
32
+ TRACKER28 = "Maps : {}"
@@ -0,0 +1,14 @@
1
+ #====================================================================
2
+
3
+ class Apis(object):
4
+
5
+ DATA01 = "http://ipwho.is/{}"
6
+ DATA02 = "https://api.ipify.org?format=json"
7
+
8
+ #====================================================================
9
+
10
+ class Links(object):
11
+
12
+ DATA01 = "https://www.google.com/maps/@{},{},8z"
13
+
14
+ #====================================================================
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: clinton
3
- Version: 0.0.1
3
+ Version: 0.0.2
4
4
  Summary: ㅤ
5
5
  Home-page: https://github.com/Clinton-Abraham
6
6
  Author: Clinton-Abraham
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: clinton
3
- Version: 0.0.1
3
+ Version: 0.0.2
4
4
  Summary: ㅤ
5
5
  Home-page: https://github.com/Clinton-Abraham
6
6
  Author: Clinton-Abraham
@@ -4,8 +4,11 @@ setup.py
4
4
  Clinton/__init__.py
5
5
  Clinton/functions/__init__.py
6
6
  Clinton/functions/function01.py
7
+ Clinton/functions/function02.py
7
8
  Clinton/scripts/__init__.py
8
9
  Clinton/scripts/script01.py
10
+ Clinton/scripts/script02.py
11
+ Clinton/scripts/script05.py
9
12
  clinton.egg-info/PKG-INFO
10
13
  clinton.egg-info/SOURCES.txt
11
14
  clinton.egg-info/dependency_links.txt
@@ -1 +0,0 @@
1
- from .script01 import Scripted
@@ -1,4 +0,0 @@
1
-
2
- class Scripted(object):
3
-
4
- DATA01 = ""
File without changes
File without changes
File without changes
File without changes