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 | Path) –

  • destination (Path) –

  • zip_path (Path) –

  • work_dir (Path) –

  • fields (Sequence[str]) –

  • format (Literal['json', 'csv', 'yaml', 'python']) –

  • input_files (List[str]) –

  • download (bool) –

  • expand (bool) –

  • prune_empty (bool) –

  • cache (bool) –

  • log_level (LogLevel) –

source: Union[str, Path] = 'http://www.unicode.org/Public/UNIDATA/Unihan.zip'
destination: Path = PosixPath('/home/runner/.local/share/unihan_etl/unihan.{ext}')
zip_path: Path = PosixPath('/home/runner/.cache/unihan_etl/downloads/Unihan.zip')
work_dir: Path = PosixPath('/home/runner/.cache/unihan_etl/downloads')
fields: Sequence[str]
format: 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'