You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Flaredantic is a Python library that simplifies the process of creating tunnels to expose your local services to the internet. It supports both Cloudflareand Serveo tunneling services, making it a user-friendly alternative to ngrok, localtunnel, and similar tools.
12
+
Flaredantic is a Python library that simplifies the process of creating tunnels to expose your local services to the internet. It supports Cloudflare, Serveo, and Microsoft Dev Tunnel services, making it a user-friendly alternative to ngrok, localtunnel, and similar tools.
13
13
14
14
</div>
15
15
@@ -20,7 +20,7 @@ Flaredantic is a Python library that simplifies the process of creating tunnels
- 🔄 Multiple tunnel providers (Cloudflare, Serveo, Microsoft Dev Tunnels)
24
24
- 🌐 TCP forwarding support (Serveo)
25
25
- 🎯 Cross-platform support (Windows, macOS, Linux)
26
26
- 📱 Android support via Termux
@@ -39,6 +39,8 @@ While tools like ngrok are great, Flaredantic offers several advantages:
39
39
40
40
Flaredantic makes it dead simple to use tunnels in your Python projects!
41
41
42
+
> ⚠️ **Warning:** Exposing local services to the internet can be a security risk. Never expose sensitive or unprotected endpoints. Use at your own risk.
43
+
42
44
## 🚀 Installation
43
45
44
46
```bash
@@ -60,6 +62,9 @@ flare --port 8080 -v
60
62
# Use Serveo tunnel instead
61
63
flare --port 8080 --tunnel serveo
62
64
65
+
# Use Microsoft Dev Tunnels
66
+
flare --port 8080 --tunnel microsoft
67
+
63
68
# TCP forwarding with Serveo
64
69
flare --port 5432 --tcp
65
70
```
@@ -69,7 +74,7 @@ CLI Options:
69
74
-p, --port Local port to expose (required)
70
75
-t, --timeout Tunnel start timeout in seconds (default: 30)
71
76
-v, --verbose Show detailed progress output
72
-
--tunnel Tunnel provider to use [cloudflare, serveo] (default: cloudflare)
77
+
--tunnel Tunnel provider to use [cloudflare, serveo, microsoft] (default: cloudflare)
73
78
--tcp Use Serveo with TCP forwarding (overrides --tunnel)
74
79
```
75
80
@@ -101,6 +106,19 @@ with ServeoTunnel(config) as tunnel:
101
106
input("Press Enter to stop the tunnel...")
102
107
```
103
108
109
+
#### Basic Usage with Microsoft Dev Tunnels
110
+
111
+
```python
112
+
from flaredantic import MicrosoftTunnel, MicrosoftConfig
113
+
114
+
# Create a tunnel using Microsoft Dev Tunnels
115
+
config = MicrosoftConfig(port=8080)
116
+
with MicrosoftTunnel(config) as tunnel:
117
+
print(f"Your service is available at: {tunnel.tunnel_url}")
118
+
# Your application code here
119
+
input("Press Enter to stop the tunnel...")
120
+
```
121
+
104
122
#### TCP Forwarding with Serveo
105
123
106
124
```python
@@ -119,6 +137,7 @@ with ServeoTunnel(config) as tunnel:
119
137
```python
120
138
from flaredantic import FlareTunnel, FlareConfig
121
139
from flaredantic import ServeoTunnel, ServeoConfig
140
+
from flaredantic import MicrosoftTunnel, MicrosoftConfig
122
141
from pathlib import Path
123
142
124
143
# Configure Cloudflare tunnel with custom settings
-**Cloudflare tunnel**: No additional requirements (binary auto-downloaded)
195
235
-**Serveo tunnel**: Requires SSH client to be installed
236
+
-**Microsoft Dev Tunnels**: No additional requirements (binary auto-downloaded)
237
+
-**Note**: Currently only supports Linux and macOS.
196
238
197
239
> **❗️Note:** Serveo servers might occasionally be unavailable as they are a free service. Flaredantic automatically detects when Serveo is down and provides a clear error message. Consider using Cloudflare tunnels if you need guaranteed availability.
198
240
@@ -201,5 +243,6 @@ if __name__ == '__main__':
201
243
For more detailed examples and use cases, check out our examples:
0 commit comments