Debian Codegraph @

clevercsv/console/commands/_docs.py

raw symbols SCIP
1 # -*- coding: utf-8 -*-
2
3 FLAG_DESCRIPTIONS = {
4 "encoding": (
5 "The file encoding of the given CSV file is automatically "
6 "detected using chardet. While chardet is incredibly "
7 "accurate, it is not perfect. In the rare cases that it makes "
8 "a mistake in detecting the file encoding, you can override "
9 "the encoding by providing it through this flag. Moreover, "
10 "when you have a number of CSV files with a known file "
11 "encoding, you can use this option to speed up the code "
12 "generation process."
13 ),
14 "num-chars": (
15 "On large CSV files, dialect detection can sometimes be a bit "
16 "slow due to the large number of possible dialects to "
17 "consider. To alleviate this, you can limit the number of "
18 "characters to use for detection.\n\n"
19 "One aspect to keep in mind is that CleverCSV may need to "
20 "read a specific number of characters to be able to correctly "
21 "infer the dialect. For example, in the ``imdb.csv`` file "
22 "in the GitHub repository, the correct dialect can only "
23 "be found after at least 66 lines of the file are read. "
24 "Therefore, if there is availability to run CleverCSV on "
25 "the entire file, that is generally recommended."
26 ),
27 }