I wish to run some commands which are specifically made for command line interface in idle environment.
There is a library in python called "Ezflix" which is for streaming torrent videos. It runs properly on command line interface but does not work when I run it on python idle.
I know that command line commands cant be used in idle but I just wish to find if there is any possibility or any hack to make it run on idle.
According to https://pypi.org/project/ezflix/, ezflix
is a "command line utility", one which happens to be written in Python. At this level, it is intended to be run from a command line terminal/console.
Such a program, even if written in python, might not be a Python library module, meaning that it is not intended that you import it and directly access its functions. If this is true, it would not have a supported and documented application program interface (API). If so, one could read the code and import it anyway, but the private internal objects and names might change from version to version. So the best way to access it from a Python program would be to run it separately, for instance, with subprocess, as suggested in the comments.
It turns out the ezflix does have a documented API and so it is also a library module. The is briefly described at the bottom of the pypi page linked above.
from ezflix import Ezflix
ez = Ezflix(<arguments>)
...
I presume that the package itself contains more information on its usage.
None of the above has anything to do with whether you run your program directly with python or with IDLE or with any other IDE. What could matter is whether the ezflix user interface specifically requires that it be run connected to the system terminal/console. Noting I saw on its pypi page suggests this. It might also be that the movie player window somehow interferes with the IDLE GUI window, but I also do not expect this.