alan-turing-institute / CleverCSV

CleverCSV is a Python package for handling messy CSV files. It provides a drop-in replacement for the builtin CSV module with improved dialect detection, and comes with a handy command line application for working with CSV files.
https://clevercsv.readthedocs.io
MIT License
1.24k stars 70 forks source link

Problem with names defined in cparser and cabstraction modules #128

Closed BergLucas closed 3 weeks ago

BergLucas commented 1 month ago

Hi,

I'm currently working with a dynamic code analysis tool and I've noticed that it doesn't work very well with CleverCSV.

The problem seems to come from the fully qualified names defined in the cparser and cabstraction modules.

When I run the following code:

import clevercsv

print(clevercsv.cabstraction.__name__)
print(clevercsv.cparser.__name__)
print(clevercsv.cparser.Error.__module__)
print(clevercsv.cparser.Parser.__module__)

I got the following output:

ccsv.cabstraction
ccsv.cparser
cparser
ccsv.cparser

But I expected to get something like that:

clevercsv.cabstraction
clevercsv.cparser
clevercsv.cparser
clevercsv.cparser

I hope this will help you find the problem. Have a nice day!