LineNames

class line_name.LineNames(data_dir=None, update=False)[source]

A class for collecting British railway line names.

Parameters
  • data_dir (str or None) – name of data directory, defaults to None

  • update (bool) – whether to check on update and proceed to update the package data, defaults to False

Example:

>>> from pyrcs.line_data import LineNames

>>> ln = LineNames()

>>> print(ln.Name)
Railway line names

>>> print(ln.SourceURL)
http://www.railwaycodes.org.uk/misc/line_names.shtm

Methods

cdd_ln(*sub_dir, **kwargs)

Change directory to package data directory and sub-directories (and/or a file).

collect_line_names([confirmation_required, …])

Collect data of railway line names from source web page.

fetch_line_names([update, pickle_it, …])

Fetch data of railway line names from local backup.