Module Expr Str ImportFrom alias ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Call NameLoad AttributeLoad NameLoad attr keyword Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body AugAssignAdd NameStore ListLoad Str Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad For NameStore NameLoad body If CompareEq NameLoad Str body Assign NameStore NameLoad orelse Assign NameStore SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad BinOpMod Str NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore ListLoad NameLoad Expr Call NameLoad BinOpMod Str NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call NameLoad BinOpMod Str NameLoad Assign NameStore ListLoad NameLoad orelse TryExcept body Expr Call NameLoad Str AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad BinOpMod Str NameLoad orelse Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Str NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad Assign NameStore ListLoad NameLoad Expr Call NameLoad Str AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Expr Call NameLoad BinOpMod Str NameLoad Expr Call NameLoad Str Expr Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call NameLoad BinOpMod Str NameLoad orelse Expr Call AttributeLoad NameLoad attr Expr Call NameLoad BinOpMod Str NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list
N/A N/A 
Write MOBI (Kindle) dictionaries.

It creates a .opf and .html file, and invokes kindlegen to compile it.
 __future__ absolute_import io open N/A os N/A subprocess penelope.dictionary_ebook DictionaryEbook penelope.utilities print_debug penelope.utilities print_error penelope.utilities print_info penelope.utilities create_temp_directory penelope.utilities copy_file penelope.utilities delete_directory N/A __author__ Alberto Pettarin N/A __copyright__ Copyright 2012-2016, Alberto Pettarin (www.albertopettarin.it) N/A __license__ MIT N/A __version__ 3.1.2 N/A __email__ alberto@albertopettarin.it N/A __status__ Production N/A KINDLEGEN kindlegen read N/A N/A dictionary args input_file_paths N/A N/A N/A N/A print_error Read function not implemented for MOBI dictionaries N/A None N/A write N/A N/A dictionary args output_file_path N/A N/A N/A result None N/A output_file_path_absolute N/A N/A N/A os path abspath output_file_path N/A N/A N/A dictionary sort by_headword True ignore_case N/A args sort_ignore_case N/A N/A special_group group_keys group_dict N/A N/A dictionary group prefix_function_path N/A args group_by_prefix_function prefix_length N/A int N/A args group_by_prefix_length merge_min_size N/A int N/A args group_by_prefix_merge_min_size merge_across_first N/A args group_by_prefix_merge_across_first N/A all_group_keys group_keys N/A N/A special_group None N/A N/A all_group_keys N/A SPECIAL N/A mobi N/A DictionaryEbook ebook_format N/A DictionaryEbook MOBI args args N/A key all_group_keys N/A N/A N/A key SPECIAL N/A N/A group_entries special_group N/A N/A group_entries N/A group_dict N/A key N/A N/A N/A mobi add_group key group_entries N/A N/A print_debug N/A Writing to file '%s'... output_file_path_absolute N/A args debug N/A N/A N/A mobi write output_file_path_absolute compress False N/A result N/A output_file_path N/A N/A print_debug N/A Writing to file '%s'... done output_file_path_absolute N/A args debug N/A tmp_path N/A N/A mobi get_tmp_path N/A N/A args mobi_no_kindlegen N/A N/A N/A print_info N/A Not running kindlegen, the raw files are located in '%s' tmp_path N/A result N/A tmp_path N/A N/A N/A N/A N/A print_debug Creating .mobi file with kindlegen... N/A args debug N/A kindlegen_path KINDLEGEN N/A opf_file_path_absolute N/A N/A N/A os path join tmp_path OEBPS content.opf N/A mobi_file_path_relative content.mobi N/A mobi_file_path_absolute N/A N/A N/A os path join tmp_path OEBPS mobi_file_path_relative N/A N/A N/A args kindlegen_path None N/A N/A N/A print_info N/A   Running '%s' from $PATH KINDLEGEN N/A N/A kindlegen_path N/A args kindlegen_path N/A N/A print_info N/A   Running '%s' from '%s' N/A KINDLEGEN kindlegen_path N/A proc N/A N/A subprocess Popen N/A kindlegen_path opf_file_path_absolute -o mobi_file_path_relative stdout N/A subprocess PIPE stdin N/A subprocess PIPE stderr N/A subprocess PIPE N/A output N/A N/A proc communicate N/A N/A args debug N/A N/A output_unicode N/A N/A N/A output N/A 0 decode utf-8 N/A N/A print_debug output_unicode N/A args debug N/A N/A copy_file mobi_file_path_absolute output_file_path_absolute N/A result N/A output_file_path N/A N/A print_debug Creating .mobi file with kindlegen... done N/A args debug N/A N/A N/A OSError N/A exc N/A N/A N/A print_error N/A   Unable to run '%s' as '%s' N/A KINDLEGEN kindlegen_path N/A N/A print_error N/A   Please make sure '%s': KINDLEGEN N/A N/A print_error     1. is available on your $PATH or N/A N/A print_error     2. specify its path with --kindlegen-path N/A tmp_path N/A N/A mobi get_tmp_path N/A N/A args keep N/A N/A N/A print_info N/A Not deleting temp dir '%s' tmp_path N/A N/A N/A N/A mobi delete N/A N/A print_debug N/A Deleted temp dir '%s' tmp_path N/A args debug N/A result N/A