Skip to main content

EFSPIntegration.py_efsp_client

The base python client used to communicate with the E-file proxy server.

Doesn't include anything from docassemble, and can be used without having it installed.

EfspConnection Objects​

class EfspConnection()

A python client that communicates with the E-file proxy server.

__init__​

Arguments:

url (str) api_key (str) default_jurisdiction (str)

authenticate_user​

Authenticates the user with the EFM server (not the E-file proxy).

register_user​

registration_type needs to be INDIVIDUAL, FIRM_ADMINISTRATOR, or FIRM_ADMIN_NEW_MEMBER. If registration_type is INDIVIDUAL or FIRM_ADMINISTRATOR, you need a password. If it's FIRM_ADMINISTRATOR or FIRM_ADMIN_NEW_MEMBER, you need a firm_name_or_id

get_password_rules​

Password rules are stored in the global court, id 0.

TODO: They're in other courts too, including 1. Could they ever be different?

get_notification_options​

AKA NotificationPreferencesList

get_firm​

Gets info about the "firm" for an associated user. If a user is a pro-se, this contains their address information.

update_firm​

firm should have the below keys:

  • firstName, middleName, lastName if it's a person
  • firmName if it's a business
  • address (a dict), with keys addressLine1 addressLine2, city, state, zipCode, country
  • phoneNumber
  • email

get_courts​

Gets the list of courts.

get_court​

Gets codes for a specific court

get_court_list​

Gets a list of all of the courts that you can file into. Slightly more limited than get_courts

get_filing_list​

Returns a list of filings that a particular user has made with a court.

get_service_types​

Checks the court info: if it has conditional service types, call a special API with all filing info so far to get service types

get_cases_raw​

Finds existing cases at a particular court. Only one of person_name, business_name, or docket_number should be provided at a time. Params: court_id (str) person_name (dict) buisness_name (str) docket_number (str)