dmagic.authorize

Functions:

basic(filename)

Get HTTP Basic authorization using username and password contained in filename.

read_credentials(filename)

Read username and password from filename.

dmagic.authorize.basic(filename)[source]

Get HTTP Basic authorization using username and password contained in filename.

Returns:

auth (HTTPBasicAuth or None) – Authorization object, or None if credentials could not be read.

dmagic.authorize.read_credentials(filename)[source]

Read username and password from filename.

The file should contain one line in the format: username|password