demarches_simpy.connection module

class FileUploadRequestBuilder(profile, graph_ql_query_path, **kwargs)[source]
class Profile(api_key, instructeur_id=None, **kwargs)[source]

The profile class handling connection information and can allow you to pass configuration parameters and diffuse it to all object using this profile

  • Exemple : Passing the args verbose=True will activate the verbose to all object using this profile instance.

get_api_key()[source]
Return type:

str

Returns:

The démarches simplifiées api key

get_instructeur_id()[source]
Return type:

str

Returns:

  • str – the unique id of the associated instructeur using this profile

  • None – if the instructeur id is not provided

has_instructeur_id()[source]
Return type:

bool

Returns:

  • True – if an instructeur id was provided

  • False – otherwise

set_instructeur_id(instructeur_id)[source]

Assign a unique instructeur id

Parameters:

instructeur_id (str) – the unique instructeur id

Return type:

None

class RequestBuilder(profile, graph_ql_query_path, **kwargs)[source]

Internal class handling request and fetching data from démarches simplifiées, you won’t have to use (except for dev)