Options - unihan_etl.options
¶
Configuration for the unihan-etl package.
- class unihan_etl.options.Options(source='http://www.unicode.org/Public/UNIDATA/Unihan.zip', destination=PosixPath('/home/runner/.local/share/unihan_etl/unihan.{ext}'), zip_path=PosixPath('/home/runner/.cache/unihan_etl/downloads/Unihan.zip'), work_dir=PosixPath('/home/runner/.cache/unihan_etl/downloads'), fields=<factory>, format='csv', input_files=<factory>, download=False, expand=True, prune_empty=True, cache=True, log_level='INFO')[source]¶
Bases:
object
Options for unihan-etl.
- Parameters:
source (str | pathlib.Path)
destination (pathlib.Path)
zip_path (pathlib.Path)
work_dir (pathlib.Path)
fields (Sequence[str])
format (t.Literal['json', 'csv', 'yaml', 'python'])
download (bool)
expand (bool)
prune_empty (bool)
cache (bool)
log_level (LogLevel)
- source: str | pathlib.Path = 'http://www.unicode.org/Public/UNIDATA/Unihan.zip'¶
- destination: pathlib.Path = PosixPath('/home/runner/.local/share/unihan_etl/unihan.{ext}')¶
- zip_path: pathlib.Path = PosixPath('/home/runner/.cache/unihan_etl/downloads/Unihan.zip')¶
- work_dir: pathlib.Path = PosixPath('/home/runner/.cache/unihan_etl/downloads')¶
- fields: Sequence[str]¶
- format: t.Literal['json', 'csv', 'yaml', 'python'] = 'csv'¶
- input_files: list[str]¶
- download: bool = False¶
- expand: bool = True¶
- prune_empty: bool = True¶
- cache: bool = True¶
- log_level: LogLevel = 'INFO'¶