Regimes

class authorityspoke.jurisdictions.Regime(jurisdictions=<factory>)

A legal system consisting of multiple jurisdictions.

Currently used for retrieving Enactment text. May be modified for retrieving Courts and Opinions.

get_code(selector)

Find a Code in the Regime from a selector.

Returns

the Code described in the selector path.

set_code(code)

Add to the collection of Codes enacted in this Regime.

Create the appropriate Jurisdiction object for the Code, if it’s not already linked to the Regime.

Parameters

code (Code) – a Code valid in this Regime

Return type

None

Jurisdictions

class authorityspoke.jurisdictions.Jurisdiction(codes=<factory>, courts=<factory>)

A geopolitical entity with the power to enact legislation.

Has Courts to interpret and apply legislation.

Parameters
get_code(uri)

Find a Code under a key corresponding to uri.

If the initial form of uri isn’t found, truncates parts from the right side of the uri until a match is found or nothing is left.

Parameters

uri (str) – identifier for legislative text in the USLM format (or possibly pseudo-USLM for non-USC sources)

Return type

Optional[Code]

Returns

the Code for the uri