ngrok / ngrok-python

Embed ngrok secure ingress into your Python apps with a single line of code.
https://ngrok.com
Apache License 2.0
103 stars 19 forks source link

add ngrok.connect(options) #17

Closed bobzilladev closed 1 year ago

bobzilladev commented 1 year ago

connect.rs has the meat of the change, it will take the kwargs from python and churn through macros to populate the builders. Had to pull out the async functions (session.connect() and tunnel_builder.listen()) to make it callable from rust. Rest is tests or examples.

This is analogous to the change in ngrok-js: https://github.com/ngrok/ngrok-js/pull/44