torsimany icon indicating copy to clipboard operation
torsimany copied to clipboard

Made object oriented | Added python 2 support

Open JulesGM opened this issue 6 years ago • 3 comments

I tested it. Works fine.

JulesGM avatar Aug 14 '18 15:08 JulesGM

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.

JulesGM avatar Aug 14 '18 15:08 JulesGM

Ah, also, I made it support UTF-8 in python 2

JulesGM avatar Aug 14 '18 15:08 JulesGM

@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

abubelinha avatar Nov 30 '22 18:11 abubelinha