Requests package

Requests.get_distro_csv module

The get_distro_csv module: Amt Distribution HTTP Request.

Provides the application with functionality to make a HTTP request to the NCTS server, to download the AMT distribution CSV.

Src.Requests.get_distro_csv.get_distro_csv(url, token)[source]

Sends a HTTP request to the provided NCTS URL in order to retrieve the data distribution CSV.

Parameters:
  • url (str) – The NCTS API URL to import the distribution from

  • token (str) – NCTS API client authentication token

Returns:

The HTTP requests response

Return type:

Response

Requests.get_distro_meta module

The get_distro_meta module: Amt Distribution meta HTTP Request.

Provides the application with functionality to make a HTTP request to the NCTS server, to retrieve metadata on all available distribution imports.

Src.Requests.get_distro_meta.get_distro_meta()[source]

Sends a HTTP request to the NCTS API in order to retrieve an XML response, showing all available distributions for import.

Returns:

The HTTP requests response

Return type:

Response

Requests.post_ncts_auth module

The post_ncts_auth module: NCTS Authentication HTTP Request.

Provides the application with functionality to make a HTTP request to the NCTS server in-order to retrieve an authentication token.

Src.Requests.post_ncts_auth.get_auth_token()[source]

Sends a HTTP request to the NCTS API in order to retrieve an authentication token to authenticate with the NCTS distribution endpoints.

Returns:

The HTTP requests response

Return type:

Response