Using BDFR in python files #587
-
So I am following along with the README, and have been able to get the command line working. From the README, all the commands are geared towards just working from the command line, and even the tests use bash scripts to run them. Is it possible to run BDFR from within a python file? I know this is a dumb question, I just have been out of programming with python for a while and I have always learned better by seeing examples and working from there. Is it possible to import BDFR and run the download commands from within a python file? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
No, that's not how it works, and I'm not quite sure what you're trying to do. The commands aren't run in a Python file, they're run in the CLI. That's the only way they're supposed to be used, trying to use them in a Python file doesn't make sense. It's like trying to get a game to output to Microsoft Word; they're not supposed to be compatible. If you mean using the BDFR's classes and code as an interface, then the commands are irrelevant, don't worry about them. However we don't have an API reference so you'll have to go through the code and find the classes and functionality that you need. |
Beta Was this translation helpful? Give feedback.
No, that's not how it works, and I'm not quite sure what you're trying to do. The commands aren't run in a Python file, they're run in the CLI. That's the only way they're supposed to be used, trying to use them in a Python file doesn't make sense. It's like trying to get a game to output to Microsoft Word; they're not supposed to be compatible.
If you mean using the BDFR's classes and code as an interface, then the commands are irrelevant, don't worry about them. However we don't have an API reference so you'll have to go through the code and find the classes and functionality that you need.