python-ngrok  by hauntek

Python client for Ngrok

Created 9 years ago
347 stars

Top 80.0% on SourcePulse

GitHubView on GitHub
Project Summary

This project provides a high-performance Ngrok client implemented in Python, designed to address memory leaks and offer robust, long-term operation. It targets developers and users needing to expose local services to the internet, offering improved concurrency and stability over standard Ngrok clients.

How It Works

The client offers multiple implementations: a multi-threaded synchronous version, a gevent-based asynchronous version, and a DeepSeek AI-optimized asynchronous version. The asynchronous versions leverage coroutines for significantly enhanced concurrency and performance, handling tasks like network reconnections and tunnel re-registrations efficiently. The latest versions utilize dataclasses for structured message handling and an object-oriented design for maintainability.

Quick Start & Requirements

  • Install via pip: pip install python-ngrok (or use provided scripts directly).
  • Requires Python 3.7.0+ for the python-ngrok_deepseek.py version.
  • Configuration can be managed via ngrok.config file.
  • Official documentation and demo links are not explicitly provided in the README.

Highlighted Details

  • Offers significant performance gains, with v2.0 supporting 15,000+ connections and 2,500 tunnel creation QPS, a 15x improvement over v1.56.
  • Includes UDP tunnel forwarding support (UDP over TCP).
  • Features IPv4/IPv6 dual-stack support for connections and local forwarding.
  • Code and update logs are AI-optimized (DeepSeek v3).

Maintenance & Community

The project appears actively maintained with recent updates in early 2025. The README mentions contributions from "@JerrickRowe" and AI optimization by "DeepSeek v3". No specific community channels (Discord, Slack) or roadmap links are provided.

Licensing & Compatibility

The README does not explicitly state a license. Compatibility for commercial use or closed-source linking is not specified.

Limitations & Caveats

The README does not provide explicit links to official documentation or demos, which may hinder initial setup and exploration. The licensing status is unclear, potentially impacting commercial adoption.

Health Check
Last Commit

5 months ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
1 stars in the last 30 days

Explore Similar Projects

Starred by Sourabh Bajaj Sourabh Bajaj(Cofounder of Uplimit), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
3 more.

NextChat by ChatGPTNextWeb

0.1%
86k
AI assistant for web, iOS, MacOS, Android, Linux, and Windows
Created 2 years ago
Updated 3 days ago
Feedback? Help us improve.