torsimany
torsimany copied to clipboard
Made object oriented | Added python 2 support
I tested it. Works fine.
The globals were not super nice to use the library as part of another script instead of just using the script from the command line.
Ah, also, I made it support UTF-8 in python 2
@JulesGM thanks, I guess you corrected what I mentioned in #10
How can I make your corrected file work in Python 3?
I tried to load it to use in the middle of a script, like in the repository tests.py:
from torsimany import torsimany
torsimany.justdoit(input_file_path, output_file_path)
But that doesn't work: AttributeError: module 'torsimany.torsimany' has no attribute 'justdoit'
Sorry, I am not an expert programmer. No idea about how to use it "object oriented". I guess I have to import it in some other way.
Thanks @abubelinha