DnD_5e.read_from_web package

Module contents

DnD_5e.read_from_web.get_attack_from_text(text)[source]

Get the information about an attack from a text description

Parameters:

text – the text to read

Returns:

the info about the attack found

DnD_5e.read_from_web.get_multiattacks_from_text(text)[source]
DnD_5e.read_from_web.get_damage_dice(text: str)[source]

Get the string that corresponds to the Python code to create the correct DamageDice or DamageDiceBag for the given damage description

Parameters:

text – text describing damage (e.g., “2d6 piercing damage”)

Returns:

DnD_5e.read_from_web.write_attack_multiattack(attack_stats, multiattacks, indent_size, outfile)[source]
DnD_5e.read_from_web.read_dnd5einfo_monster_url(url, outname, indent_size=4)[source]
DnD_5e.read_from_web.read_dnd5einfo_monster_soup(soup, outname, indent_size=4)[source]
DnD_5e.read_from_web.read_dnd5einfo_spell_soup(soup, outname, indent_size=4)[source]
DnD_5e.read_from_web.read_dnd5einfo_spell_url(url, outname, indent_size=4)[source]
DnD_5e.read_from_web.read_dnd5einfo_spell_page(outname, indent_size=4, first_url=None)[source]
DnD_5e.read_from_web.read_dnd5einfo_monster_page(outname, indent_size=4, start_url=None, stop_url=None)[source]