-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some Observations #6
Comments
Hi Teque5, Thanks for the detailed observations. You bring up some interesting points which I think are worth consideration. I find the idea of 'production-ready' an interesting idea, but ultimately dangerous for some reasons I'll discuss below.
On Proxies and Custom Firewalls in Production Environments
Because these routes are auto negotiated I have run into extensive issues transferring over and between production environments with network security. This is only an issue that can be resolved by building a real WDT interface to the C++ lib. (See 7)
To properly turn this into a pip package, a proper generic C++ interface would need to be written to connect to the WDT lib to python. This would expose the full functionality of WDT and would fundamentally solve all the issues you bring up. In this context error handling, file permissions, routing, logging, versioning could all be handled in a unified way. This would also add a dramatic degree of customization and functionality. I would be very interested in developing a tool like this but I think some serious work would need to be done to understand how to properly use the C++ lib. |
So I just released a new version that addresses some of the issues you brought up. Addressed so Far
Working On
|
I've been trying to decide if this is ready for production use, and I have some thoughts.
#!/usr/bin/env python3
since pointing to just/usr/bin/python
will resolve weirdly on different machines, and warp-cli isn't python2 compatiblewarp
will hang the whole transfer. Meanwhilersync
will skip that file then saysome files/attrs were not transferred
.scp
will sayPermission denied
for that one file.warp --version
. Perhaps put a__version__ = '2.0.0'
somewhere in your script, then you can reference it. It would be best if it printed warp-cli, wdt, and folly version.wdt
is SO verbose. It would be nicer if it were quieter.If I was doing this I would layout warp-cli as a python package like this and in the
setup.py
you would add anentry_point
:Then you could simply do a
pip install warp-cli
and exit early from the installation if the libraries you needed weren't found. Otherwise it would install warp normally in the user's~/.local/bin
or wherever.If you'd like I can create a PR that starts going in this direction, but I didn't want to attempt if you weren't interested.
The text was updated successfully, but these errors were encountered: