regparser.commands package

Submodules

regparser.commands.annual_editions module

regparser.commands.citations module

regparser.commands.clear module

regparser.commands.compare_to module

regparser.commands.compare_to.compare(local_path, remote_url, prompt=True)[source]

Downloads and compares a local JSON file with a remote one. If there is a difference, notifies the user and prompts them if they want to see the diff

regparser.commands.compare_to.file_to_json(path)[source]
regparser.commands.compare_to.local_and_remote_generator(api_base, paths)[source]

Find all local files in paths and pair them with the appropriate remote file (prefixing with api_base). As the local files could be at any position in the file system, we back out directories until we hit one of the four root resource types (diff, layer, notice, regulation)

regparser.commands.compare_to.path_to_json(path)[source]
regparser.commands.compare_to.url_to_json(path)[source]

regparser.commands.current_version module

regparser.commands.dependency_resolver module

class regparser.commands.dependency_resolver.DependencyResolver(dependency_path)[source]

Bases: object

Base class for objects which know how to “fix” missing dependencies.

PATH_PARTS = ()
has_resolution()[source]
resolution()[source]

This will generally call a command in an effort to resolve a dependency

regparser.commands.diffs module

regparser.commands.fetch_annual_edition module

regparser.commands.fetch_sxs module

regparser.commands.fill_with_rules module

regparser.commands.layers module

regparser.commands.parse_rule_changes module

regparser.commands.pipeline module

regparser.commands.preprocess_notice module

regparser.commands.sync_xml module

regparser.commands.versions module

regparser.commands.write_to module

Module contents