Comments (8)
I agree with @ccordoba12, there are more packages that have different package and module names, such as OpenCV:
conda install opencv -c conda-forge
import cv2
from pywinpty.
That's my take too, i.e. use pywinpty
. This is also important to disambiguate the original library from its Python bindings, else things become a nightmare.
For example, we have pip install graphviz
and conda install graphviz
, which do different things (the first one installing the bindings and the second one the library).
from pywinpty.
But as winpty is a C program, I don't see why we would have any module naming ambiguity problems. I think there would be problems if the package was called winpty.
from pywinpty.
@andfoy please change the python package to pywintpty both the name and folder (module name)
from pywinpty.
Ok, I will do the changes. But I still think that is more intuitive to import winpty, as we're wrapping winpty library. For instance, at installation time we would execute:
pip install pywinpty
But to use it we would execute:
import winpty
from pywinpty.
It's the same with pyzmq:
pip install pyzmq
import zmq
so we have a good precedent here ;-)
from pywinpty.
I agree with @ccordoba12, there are more packages that have different package and module names, such as OpenCV:
conda install opencv -c conda-forge
import cv2
Is actually a bad example, cause there is no coherence on that naming.
from pywinpty.
I'm sure cv2
is the C library name. If so, it's the right thing to do :-)
from pywinpty.
Related Issues (20)
- Release v2.0.3
- ConPTY is not fully working in CI HOT 4
- Build failure on windows py3.6 HOT 1
- Release v2.0.4
- Release v2.0.5
- Async read?
- Release v2.0.6
- Release v2.0.7
- Garbled output on Telnet Client HOT 10
- Release v2.0.8
- Failed to install with python 3.11 HOT 2
- 'Pty is closed.' BUG
- Release v2.0.10
- ssh connection establish failed.
- How do I get the same functionality as pty.spawn? HOT 6
- [Question] Messed up display buffer after resize? HOT 2
- Question: Does `PTY.write()` take in unicode string or bytes?
- PtyProcess.spawn cwd parameter not working HOT 4
- Freeze on process.iseof() HOT 7
- Problem calling an executable with full path HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pywinpty.