queenbee.base.request module

queenbee.base.request.get_uri(url)[source]

Resolve uri for urls and local files.

queenbee.base.request.make_request(url: str, auth_header: Dict[str, str] = {}) str[source]

Fetch data from a url to a local file or using the http protocol

Parameters:
  • url (str) – a url string to a local file or an http resource on a server

  • auth_header (str, optional) – an authorization header to use when making the request. Defaults to ‘’.

Returns:

[description]

Return type:

str

queenbee.base.request.resolve_local_source(path, as_uri=True)[source]

Get an absolute path for a file:// or file:/// path.

Apparently both of them are used: https://en.wikipedia.org/wiki/File_URI_scheme

queenbee.base.request.urljoin(*args)[source]

join multiple string into a clean url

Returns:

a clean url string

Return type:

str