web package

Submodules

web.app module

web.config module

All configuration options can be accessed from here.

class web.config.DcmtkConfig(dcmtk_bin, dcmin)

Bases: tuple

property dcmin

Alias for field number 1

property dcmtk_bin

Alias for field number 0

class web.config.PacsConfig(ae_title, ae_called, peer_address, peer_port, incoming_port)

Bases: tuple

property ae_called

Alias for field number 1

property ae_title

Alias for field number 0

property incoming_port

Alias for field number 4

property peer_address

Alias for field number 2

property peer_port

Alias for field number 3

web.config.dcmtk_config(config)[source]

Returns the dcmtk configuration.

web.config.pacs_config(config)[source]

Returns the pacs configuration parameters.

web.convert module

web.convert.convert(df)[source]

Convert the query all dataframe to a download json structure

web.paging module

web.paging.calc(results: int, current: int, limit=100) → List[Tuple[int, int, bool, bool, bool]][source]

Zero based paging. PAGING_LINKS is the number of pages links to be shown. Because results can be easily more than e.g. 50 pages, then only number of PAGING_LINKS are rendered.

web.query module

web.query.query_body(args, limit=100)[source]
web.query.query_indexed_dates(base_query)[source]

web.query_all module

web.query_all.query_all(search_params: werkzeug.datastructures.MultiDict, solr_url: str)[source]

web.query_param module

web.query_param.delete_query_parameter(url, param_name)[source]

Given a URL, removes the query parameter and returns the modified URL.

>>> delete_query_parameter('http://example.com?foo=bar', 'foo')
'http://example.com'
web.query_param.set_query_parameter(url, param_name, param_value)[source]

Given a URL, set or replace a query parameter and return the modified URL.

>>> set_query_parameter('http://example.com?foo=bar', 'foo', 'stuff')
'http://example.com?foo=stuff'

web.solr module

web.solr.solr_terms_url(config)[source]

Returns the solr base url. Core name and host are taking from configuration which needs to be passed in. Can be a simple dictionary.

web.solr.solr_url(config)[source]

Returns the solr url. Core name and host are taking from configuration which needs to be passed in. Can be a simple dictionary.

web.statistics module

web.statistics.calculate(df)[source]
web.statistics.mapping(input)[source]

web.terms module

web.terms.get_terms_data(config)[source]

web.views module

Module contents