How to use the scrython.bulk_data function in scrython

To help you get started, we’ve selected a few scrython examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NandaScott / Scrython / gen_docs.py View on Github external
format_raises(raises, f)
                format_examples(examples, f)
                format_functions(_class, functions, f)

        except Exception as e:
            print(_class.upper())
            print(repr(eval(_class).__doc__))
            print('Args: ', re.findall(r'(?<=Args:)(.*)(?=Returns:)', remove_extra_spaces))
            print('Returns: ', re.findall(r'(?<=Returns:)(.*)(?=Raises:)', remove_extra_spaces))
            print('Raises: ', re.findall(r'(?<=Raises:)(.*)(?=Examples:)', remove_extra_spaces))
            print('Examples: ', re.findall(r'(?<=Examples:)(.*)', remove_extra_spaces))
            print(e)
            print('~~~~~~~~~~~~~~~~~~~~~~~~~~')

if __name__ == '__main__':
    main(scrython.bulk_data)
    main(scrython.cards)
    main(scrython.catalog)
    main(scrython.rulings)
    main(scrython.sets)
    main(scrython.symbology)