NitroExpose 1.3__py3-none-any.whl → 1.5__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.

Potentially problematic release.


This version of NitroExpose might be problematic. Click here for more details.

nitroexpose/cli.py CHANGED
@@ -20,6 +20,9 @@ def print_red(text):
20
20
 
21
21
  def print_yellow(text):
22
22
  print("\033[1;33m" + text + "\033[0m")
23
+
24
+ def print_turquoise(text):
25
+ print("\033[38;2;0;255;234m" + text + "\033[0m")
23
26
 
24
27
  def run_command(cmd):
25
28
  process = subprocess.Popen(cmd, shell=True)
@@ -91,7 +94,7 @@ def restricted_input(prompt, allowed_pattern):
91
94
 
92
95
  def main():
93
96
  if os.geteuid() != 0:
94
- print_red("Please Use Root Environment.")
97
+ print_red("\nPlease Use Root Environment.\n")
95
98
  sys.exit(1)
96
99
 
97
100
  if not is_installed("nginx -v"):
@@ -118,8 +121,8 @@ def main():
118
121
  print_green("python3-certbot-nginx plugin installed.")
119
122
  print("\n")
120
123
 
121
- print_yellow("┌─╼ Enter Domain Or Subdomain")
122
- domain = restricted_input("\033[1;33m└────╼ ❯❯❯ \033[0m", r"[a-zA-Z0-9\.\-]")
124
+ print_turquoise("┌─╼ Enter Domain Or Subdomain")
125
+ domain = restricted_input("\033[38;2;0;255;234m└────╼ ❯❯❯ \033[0m", r"[a-zA-Z0-9\.\-]")
123
126
 
124
127
  print("\n")
125
128
 
@@ -127,8 +130,8 @@ def main():
127
130
  print_red("Domain is invalid, Operation Failed.")
128
131
  sys.exit(1)
129
132
 
130
- print_yellow("┌─╼ Enter Port To Expose")
131
- port = restricted_input("\033[1;33m└────╼ ❯❯❯ \033[0m", r"[0-9]+")
133
+ print_turquoise("┌─╼ Enter Port To Expose")
134
+ port = restricted_input("\033[38;2;0;255;234m└────╼ ❯❯❯ \033[0m", r"[0-9]+")
132
135
 
133
136
  print("\n")
134
137
 
@@ -228,7 +231,12 @@ server {{
228
231
  print_green(f"Exposed Successfully To Domain\n")
229
232
  print_green(f"Exposed On: https://{domain}\n")
230
233
  print_green(f"Port: {port}\n")
231
- print_green(f"SSL Installed Using Let's Encrypt.\n\n")
234
+ print_green(f"SSL Installed Using Let's Encrypt.\n")
235
+ print_yellow(f"- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -")
236
+ print_yellow(f"If You Like NitroExpose, Please Support Us by:\n")
237
+ print_yellow(f" * Join Our Telegram Channel: https://t.me/NacDevs")
238
+ print_yellow(f" * Please Star Our Project: https://github.com/yuvrajmodz/NitroExpose")
239
+ print_yellow(f"- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n\n")
232
240
  else:
233
241
  print_green(f"Exposed Successfully To Domain\n")
234
242
  print_green(f"Exposed On: http://{domain}\n")
@@ -0,0 +1,98 @@
1
+ Metadata-Version: 2.4
2
+ Name: NitroExpose
3
+ Version: 1.5
4
+ Summary: Advanced CLI To Expose Port To Your Domain.
5
+ Home-page: https://github.com/yuvrajmodz/NitroExpose
6
+ Author: @NacDevs
7
+ Author-email: yuvrajmodz@gmail.com
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: POSIX :: Linux
11
+ Requires-Python: >=3.8
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Requires-Dist: requests
15
+ Dynamic: author
16
+ Dynamic: author-email
17
+ Dynamic: classifier
18
+ Dynamic: description
19
+ Dynamic: description-content-type
20
+ Dynamic: home-page
21
+ Dynamic: license-file
22
+ Dynamic: requires-dist
23
+ Dynamic: requires-python
24
+ Dynamic: summary
25
+
26
+ ## NitroExpose
27
+
28
+ **Letest Version:** 1.5
29
+ **Developer:** @Nactire
30
+ **Git Repo:** [NitroExpose](https://github.com/yuvrajmodz/NitroExpose)
31
+
32
+
33
+ ## 🚀 Overview
34
+
35
+ **NitroExpose** is an advanced CLI tool that allows you to **instantly expose any local port to your custom domain** — with **automatic SSL installation** Powered by Let's Encrypt.
36
+
37
+ It provides a **one-command deployment system** for developers who want to run their local apps (Flask, FastAPI, Node.js, etc.) directly on a live domain without manually configuring NGINX or DNS records.
38
+
39
+
40
+ ## ⚡ Key Features
41
+
42
+ • Easily Expose Your Local Port to Your Domain.
43
+ • Automatic **NGINX** configuration
44
+ • Automatic **SSL (Let's Encrypt)** installation
45
+ • Required **Root (Sudo)** Environment
46
+ • Intelligent error handling with Fast Speed.
47
+ • Lightweight and Fast Completes setup in under 10 Sec
48
+
49
+
50
+ ## 🛠️ System Requirements
51
+
52
+ - Python **3.8+**
53
+ - **Ubuntu** or **Debian-based** System
54
+ - **Root** or **Sudo** privileges
55
+ - **apt** Package Manager Required
56
+
57
+
58
+ ## Installation
59
+
60
+ ```bash
61
+ pip install NitroExpose --break-system-packages
62
+ ```
63
+
64
+ ## Optional installation
65
+
66
+ ```bash
67
+ sudo apt update -y
68
+ sudo apt install nginx -y
69
+ sudo apt install certbot -y
70
+ sudo apt install python3-certbot-nginx -y
71
+ ```
72
+
73
+ ## 🧭 Usage Guide
74
+
75
+ Step 1 – Point Your Vps/Server IP in Your Domain Records:
76
+ **Type**: **A**
77
+ **Name**: *
78
+ **IPv4**: **Your Vps/Server IP**
79
+ **TTL**: Auto
80
+
81
+ Step 2 – **Lauch NitroExpose**
82
+ ```bash
83
+ NitroExpose
84
+ ```
85
+
86
+ Step 3 – **Enter Your Domain Or Subdomain**
87
+ ```bash
88
+ ┌─╼ Enter Domain Or Subdomain
89
+ └────╼ ❯❯❯ myproject.example.com
90
+ ```
91
+
92
+ Step 4 – **Enter the Local Port to Expose**
93
+ ```bash
94
+ ┌─╼ Enter Port To Expose
95
+ └────╼ ❯❯❯ 8000
96
+ ```
97
+
98
+ ✨ **Now it Will Take 8 to 9 Seconds For Verification And Then Boom! Your Local Port Successfully Exposed To Your Public Domain/Subdomain**.
@@ -0,0 +1,8 @@
1
+ nitroexpose/__init__.py,sha256=jzli5z-wSkAiPccBUXLYoXWqtFxcoSs4cfupy9yjmFM,161
2
+ nitroexpose/cli.py,sha256=HEyu7309XOmoJZnEIgIMiOY9sQB5Lb7rIFgv_H4RLWY,7942
3
+ nitroexpose-1.5.dist-info/licenses/LICENSE,sha256=i_D1gc46cD__O4L8jy8izzueLV1F5ut89qyA6EOynaQ,255
4
+ nitroexpose-1.5.dist-info/METADATA,sha256=3Rg4U6UNU9myqfefBmhq6feNU9sbJsSXZ6JfYPMLgXc,2589
5
+ nitroexpose-1.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
+ nitroexpose-1.5.dist-info/entry_points.txt,sha256=xmBtMDqH7wn0ZT8MtQYWLsEIZNvVqAi-F9nUrxVoq8w,53
7
+ nitroexpose-1.5.dist-info/top_level.txt,sha256=plDtsFeO3ei4PeJvvK2DjGFjFxZ4lnKSHHH4xeC8ei8,12
8
+ nitroexpose-1.5.dist-info/RECORD,,
@@ -1,57 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: NitroExpose
3
- Version: 1.3
4
- Summary: Advanced CLI To Expose Port To Your Domain.
5
- Home-page: https://github.com/yuvrajmodz/NitroExpose
6
- Author: @NacDevs
7
- Author-email: yuvrajmodz@gmail.com
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: License :: OSI Approved :: MIT License
10
- Classifier: Operating System :: POSIX :: Linux
11
- Requires-Python: >=3.8
12
- Description-Content-Type: text/markdown
13
- License-File: LICENSE
14
- Requires-Dist: requests
15
- Dynamic: author
16
- Dynamic: author-email
17
- Dynamic: classifier
18
- Dynamic: description
19
- Dynamic: description-content-type
20
- Dynamic: home-page
21
- Dynamic: license-file
22
- Dynamic: requires-dist
23
- Dynamic: requires-python
24
- Dynamic: summary
25
-
26
- # NitroExpose
27
-
28
- **Letest Version:** 1.3
29
- **Developer:** @Nactire
30
- **Git Repo:** [GitHub](https://github.com/yuvrajmodz/NitroExpose)
31
-
32
- • Easily Expose Your Local Port to Your Domain.
33
- • Automatic SSL installation.
34
- • Automatic Tests To Your Site.
35
- • Expose Within 4 Seconds.
36
- • Our Software Needs Root Environment.
37
-
38
- ## Installation
39
-
40
- ```bash
41
- pip install NitroExpose --break-system-packages
42
- ```
43
-
44
- ## Usage
45
-
46
- ```bash
47
- NitroExpose
48
- ```
49
-
50
- ## Optional installation
51
-
52
- ```bash
53
- sudo apt update -y
54
- sudo apt install nginx -y
55
- sudo apt install certbot -y
56
- sudo apt install python3-certbot-nginx -y
57
- ```
@@ -1,8 +0,0 @@
1
- nitroexpose/__init__.py,sha256=jzli5z-wSkAiPccBUXLYoXWqtFxcoSs4cfupy9yjmFM,161
2
- nitroexpose/cli.py,sha256=w-_FkSHlesCNsj8wGsr72OHkj2KqEN0vLGizs5RyxdA,7368
3
- nitroexpose-1.3.dist-info/licenses/LICENSE,sha256=i_D1gc46cD__O4L8jy8izzueLV1F5ut89qyA6EOynaQ,255
4
- nitroexpose-1.3.dist-info/METADATA,sha256=nJTaoFqMqwNQN_MiQ75at8-vRtTVtnD2gp63ODasDiM,1281
5
- nitroexpose-1.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
- nitroexpose-1.3.dist-info/entry_points.txt,sha256=xmBtMDqH7wn0ZT8MtQYWLsEIZNvVqAi-F9nUrxVoq8w,53
7
- nitroexpose-1.3.dist-info/top_level.txt,sha256=plDtsFeO3ei4PeJvvK2DjGFjFxZ4lnKSHHH4xeC8ei8,12
8
- nitroexpose-1.3.dist-info/RECORD,,