yougotmapped 1.0.1__py3-none-any.whl → 1.1.0__py3-none-any.whl

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,31 +0,0 @@
1
- # utils/token.py
2
- import os
3
- from pathlib import Path
4
- from dotenv import load_dotenv
5
-
6
- def get_api_token():
7
- # Force .env path to the installed package folder
8
- env_path = Path(__file__).resolve().parent.parent / ".env"
9
- load_dotenv(dotenv_path=env_path)
10
-
11
- token = os.getenv("IPINFO_TOKEN")
12
- if token:
13
- return token
14
-
15
- print("'IPINFO_TOKEN' environment variable not found.")
16
- print("To use this tool, you need a free API token from ipinfo.io.")
17
- print("Visit: https://ipinfo.io/signup")
18
- token = input("Enter your IPInfo token: ").strip()
19
-
20
- if token:
21
- save = input("Would you like to save this token to a .env file for future runs? (yes/no): ").strip().lower()
22
- if save in ['yes', 'y']:
23
- try:
24
- with open(env_path, "a") as env_file:
25
- env_file.write(f"\nIPINFO_TOKEN={token}\n")
26
- print("Token saved to .env file. Make sure to load it in your script using python-dotenv or similar.")
27
- except Exception as e:
28
- print(f"Error saving token: {e}")
29
- return token
30
-
31
- return None
@@ -1,133 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: yougotmapped
3
- Version: 1.0.1
4
- Summary: A terminal tool to map IPs and domains with style.
5
- Home-page: https://github.com/diputs-sudo/YouGotMapped
6
- Author: diputs
7
- Author-email: diputs-sudo@proton.me
8
- License: MIT
9
- Classifier: Programming Language :: Python :: 3
10
- Classifier: License :: OSI Approved :: MIT License
11
- Classifier: Operating System :: OS Independent
12
- Requires-Python: >=3.7
13
- Description-Content-Type: text/markdown
14
- License-File: LICENSE
15
- Requires-Dist: requests
16
- Requires-Dist: folium
17
- Requires-Dist: python-dotenv
18
- Requires-Dist: ping3
19
- Dynamic: author
20
- Dynamic: author-email
21
- Dynamic: classifier
22
- Dynamic: description
23
- Dynamic: description-content-type
24
- Dynamic: home-page
25
- Dynamic: license
26
- Dynamic: license-file
27
- Dynamic: requires-dist
28
- Dynamic: requires-python
29
- Dynamic: summary
30
-
31
- # 🌍 YouGotMapped — IP Geolocation Mapper
32
-
33
- Ever wondered where that weird IP pinging your router is *actually* from?
34
- Or maybe you're just nosy (respect). Either way — this script's for you.
35
-
36
- **YouGotMapped** is a sassy little Python tool that:
37
- - Auto-fetches your IP (if you dare expose yourself)
38
- - Accepts any domain or IP you throw at it
39
- - Contacts the internet (politely) for geo intel
40
- - Drops a sweet, interactive map
41
-
42
- ---
43
-
44
- ## ✨ Features
45
-
46
- - Lookup **IP addresses** or **domains** like a pro hacker wannabe
47
- - Detects your public IP like "hi, it's me"
48
- - Maps exact-ish coordinates using [ipinfo.io](https://ipinfo.io)
49
- - Generates a **live HTML map** with red circle vibes
50
- - Dependency check? Yup — it acts like a cool installer
51
- - Quietly avoids private IPs (don’t be that guy)
52
- - Clean, modular CLI with argparse support
53
-
54
- ---
55
-
56
- ## 🛠️ Requirements
57
-
58
- - Python 3.7+
59
- - Packages: `requests`, `folium`, ... (or let the script install it for you!)
60
- - A totally-free `IPINFO_TOKEN` (get it [here](https://ipinfo.io/signup))
61
-
62
- ---
63
-
64
- ## 🚀 Run It Like a Legend
65
-
66
- use pip !
67
-
68
- ```bash
69
- pip install yougotmapped
70
- ```
71
-
72
- ```bash
73
- # Clone the repo
74
- git clone https://github.com/diputs-sudo/YouGotMapped.git
75
- cd YouGotMapped
76
-
77
- # Option 1: Set token temporarily
78
- export IPINFO_TOKEN=your_ipinfo_token
79
-
80
- # Option 2: Let the script prompt you and save it to .env
81
-
82
- # Run the thing
83
- $ python3 yougotmapped.py
84
- ```
85
-
86
- Then follow the prompts like a civilized hacker. You can:
87
- - Press Enter to map **your own IP** (hello, paranoia)
88
- - Or enter someone else's... 👀 (just be cool about it)
89
-
90
- ---
91
-
92
- ## 🧪 What You Get
93
-
94
- - A readout of city, region, country, and more
95
- - A *Google Maps-esque* HTML file you can open in your browser
96
- - Optional delete at the end (for sneaky folks)
97
-
98
- **File:** `ip_geolocation_map.html`
99
-
100
- You can keep it. Frame it. Or trash it like a spy after a mission.
101
-
102
- ---
103
-
104
- ## 🔐 Security Hints
105
-
106
- - We only send your query to **ipinfo.io** — no creepy business
107
- - Private IPs are blocked because that’s just weird
108
- - API token is pulled from env vars (no hardcoded sins here)
109
-
110
- ---
111
-
112
- ## 🙋 Who Made This?
113
-
114
- > Created by a ghost.
115
- > No name, no trace, no problem.
116
-
117
- Contact? Nah, we don’t do that here.
118
- If it breaks, fix it yourself — you're clearly smart enough to run this.
119
-
120
- ---
121
-
122
- ## ⭐ Why Star This Repo?
123
-
124
- Because it's:
125
- - Actually useful
126
- - Small but mighty
127
- - Funny
128
- - And you’re already here reading this — go on, click ⭐
129
-
130
- > This repo was cloned 30+ times before it even had a README. That’s how you know it slaps.
131
-
132
- Thanks for checking this out.
133
- You got mapped! 🗺️
@@ -1,17 +0,0 @@
1
- yougotmapped/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- yougotmapped/cli.py,sha256=arxdHHOF5jaqMQ0QZOqD68F1IGLVXlA25aWNpUgPci4,6551
3
- yougotmapped/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- yougotmapped/utils/anonymity.py,sha256=pCdqxIEiYE-uR7AwunCOOrC7pukri7jpcz6wh-OUeac,1323
5
- yougotmapped/utils/dependencies.py,sha256=Ka_GhullWWJneRWX8Ii9ME_PpXCibAn_Ap7-zPmcYSE,1181
6
- yougotmapped/utils/mapping.py,sha256=Q9DO2IBaRoVRB96S7RXXCsnx9kR3C6uLD-XdwtkAi2Q,2052
7
- yougotmapped/utils/network.py,sha256=3IWhVyR_tWcv8vwedATDZySgsSScFOLQFjM5_sEd3LQ,943
8
- yougotmapped/utils/output.py,sha256=516TzyDOQRuTT77EyJ7cvRU3cwvPUBQh3gLm0UyAdo4,1924
9
- yougotmapped/utils/ping.py,sha256=gdUZTGqPgGLELop9hpsZXULPcN7Tl7tHOLeSjyP520U,1868
10
- yougotmapped/utils/token.py,sha256=x7ZeFhwCB_HmSdj1KenTvb2wCbRyXxP4_L9Uj1wC2Qs,1110
11
- yougotmapped/utils/trace.py,sha256=gAC1sW5KbOls1z2zdNNffrb56uhuDstvn3NKCX2bceY,2226
12
- yougotmapped-1.0.1.dist-info/licenses/LICENSE,sha256=nKu-YhZpRgB4BTsI0EqL8FbsQJ-AXHfE5JOTePf55mM,1243
13
- yougotmapped-1.0.1.dist-info/METADATA,sha256=is07CY7C8r1mM20s-8zyBEwqWI54jceFWsmYfEade2E,3384
14
- yougotmapped-1.0.1.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
15
- yougotmapped-1.0.1.dist-info/entry_points.txt,sha256=zv6jK4RV-3qvJ59qY1dZxML0g3qahKVMztwobKtTP-Q,55
16
- yougotmapped-1.0.1.dist-info/top_level.txt,sha256=XYHTw9YTF8Rz9Xj06Gh-xEl5IYs467gQR4BYlNrxZmM,13
17
- yougotmapped-1.0.1.dist-info/RECORD,,