Calling URL() directly is deprecated and will be disabled in a future release. The public constructor for URL is now the URL.create() method.
self._db = create_engine(URL(**db_url), echo=False)
load will be removed, use
yaml=YAML(typ='unsafe', pure=True)
yaml.load(...)
instead
document = ruamelyaml.load(yaml_string, Loader=DynamicStrictYAMLLoader)
dump will be removed, use
yaml=YAML(typ='unsafe', pure=True)
yaml.dump(...)
instead
len(dump(slicedpart, Dumper=RoundTripDumper).rstrip().split("\n")) + 1