Skip to content

Module civic_data_boundaries_us.cd118_config

Classes

CD118Config(self, tiger_base_url: str, data_dir: pathlib.Path) -> None

CD118Config(tiger_base_url: str, data_dir: pathlib.Path)

Path(self, *args, **kwargs)

PurePath subclass that can make system calls.

Path represents a filesystem path but unlike PurePath, also offers methods to do system calls on path objects. Depending on your system, instantiating a Path will return either a PosixPath or a WindowsPath object. You can also instantiate a PosixPath or WindowsPath directly, but cannot instantiate a WindowsPath on a POSIX system or vice versa.

Functions

dataclass(cls=None, /, *, init=True, repr=True, eq=True, order=False, unsafe_hash=False, frozen=False, match_args=True, kw_only=False, slots=False, weakref_slot=False)

Add dunder methods based on the fields defined in the class.

Examines PEP 526 annotations to determine fields.

If init is true, an init() method is added to the class. If repr is true, a repr() method is added. If order is true, rich comparison dunder methods are added. If unsafe_hash is true, a hash() method is added. If frozen is true, fields may not be assigned to after instance creation. If match_args is true, the match_args tuple is added. If kw_only is true, then by default all fields are keyword-only. If slots is true, a new class with a slots attribute is returned.