Skip to content

Commit 2c48fb7

Browse files
committed
Add bzip2 encoding to csv plugin #14
1 parent 2da62e2 commit 2c48fb7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

countess/plugins/csv.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
from countess.utils.duckdb import duckdb_dtype_to_datatype_choice, duckdb_escape_identifier, duckdb_source_to_view
3434

3535
CSV_FILE_TYPES: Sequence[Tuple[str, Union[str, List[str]]]] = [
36-
("CSV", [".csv", ".csv.gz"]),
37-
("TSV", [".tsv", ".tsv.gz"]),
38-
("TXT", [".txt", ".txt.gz"]),
36+
("CSV", [".csv", ".csv.gz", ".csv.bz2"]),
37+
("TSV", [".tsv", ".tsv.gz", ".tsv.bz2"]),
38+
("TXT", [".txt", ".text", ".txt.gz", ".text.gz", ".txt.bz2", ".text.bz2"]),
3939
]
4040

4141
logger = logging.getLogger(__name__)

0 commit comments

Comments
 (0)