alex.applications.PublicTransportInfoEN.data package

Submodules

alex.applications.PublicTransportInfoEN.data.autopath module

self cloning, automatic path configuration

copy this into any subdirectory of pypy from which scripts need to be run, typically all of the test subdirs. The idea is that any such script simply issues

import autopath

and this will make sure that the parent directory containing “pypy” is in sys.path.

If you modify the master “autopath.py” version (in pypy/tool/autopath.py) you can directly run it which will copy itself on all autopath.py files it finds under the pypy root directory.

This module always provides these attributes:

pypydir pypy root directory path this_dir directory where this autopath.py resides

alex.applications.PublicTransportInfoEN.data.database module

alex.applications.PublicTransportInfoEN.data.download_data module

alex.applications.PublicTransportInfoEN.data.expand_boroughs_script module

A script that creates an expansion from a preprocessed list of boroughs

For usage write expand_boroughs_script.py -h

alex.applications.PublicTransportInfoEN.data.expand_boroughs_script.all_to_lower(site_list)[source]
alex.applications.PublicTransportInfoEN.data.expand_boroughs_script.handle_boroughs(boroughs_in, boroughs_out, boroughs_append, no_cache=False)[source]
alex.applications.PublicTransportInfoEN.data.expand_boroughs_script.main()[source]

alex.applications.PublicTransportInfoEN.data.expand_cities_script module

A script that creates an expansion from a preprocessed list of cities

For usage write expand_cities_script.py -h

alex.applications.PublicTransportInfoEN.data.expand_cities_script.all_to_lower(site_list)[source]
alex.applications.PublicTransportInfoEN.data.expand_cities_script.handle_cities(cities_in, cities_out, cities_append, no_cache=False)[source]
alex.applications.PublicTransportInfoEN.data.expand_cities_script.main()[source]

alex.applications.PublicTransportInfoEN.data.expand_states_script module

A script that creates an expansion from a preprocessed list of states

For usage write expand_states_script.py -h

alex.applications.PublicTransportInfoEN.data.expand_states_script.handle_states(states_in, states_out, states_append, no_cache=False)[source]
alex.applications.PublicTransportInfoEN.data.expand_states_script.main()[source]

alex.applications.PublicTransportInfoEN.data.expand_stops_script module

A script that creates an expansion from a list of stops

For usage write expand_stops_script.py -h

alex.applications.PublicTransportInfoEN.data.expand_stops_script.append(major, minor)[source]
alex.applications.PublicTransportInfoEN.data.expand_stops_script.expand_place(stop_list)[source]
alex.applications.PublicTransportInfoEN.data.expand_stops_script.file_check(filename, message=u'reading file')[source]
alex.applications.PublicTransportInfoEN.data.expand_stops_script.get_column_index(header, caption, default)[source]
alex.applications.PublicTransportInfoEN.data.expand_stops_script.hack_stops(stops)[source]
alex.applications.PublicTransportInfoEN.data.expand_stops_script.handle_compatibility(file_in, file_out, no_cache=False)[source]
alex.applications.PublicTransportInfoEN.data.expand_stops_script.handle_csv(csv_in, csv_out, no_cache=False)[source]
alex.applications.PublicTransportInfoEN.data.expand_stops_script.load_list(filename, skip_comments=True)[source]
alex.applications.PublicTransportInfoEN.data.expand_stops_script.main()[source]
alex.applications.PublicTransportInfoEN.data.expand_stops_script.merge(primary, secondary, surpress_warning=True)[source]
alex.applications.PublicTransportInfoEN.data.expand_stops_script.preprocess_line(line)[source]
alex.applications.PublicTransportInfoEN.data.expand_stops_script.process_places(places_in, place_out, places_add, no_cache=False)[source]
alex.applications.PublicTransportInfoEN.data.expand_stops_script.read_compatibility(filename)[source]
alex.applications.PublicTransportInfoEN.data.expand_stops_script.read_expansions(stops_expanded_file)[source]
alex.applications.PublicTransportInfoEN.data.expand_stops_script.read_exports(filename)[source]
alex.applications.PublicTransportInfoEN.data.expand_stops_script.read_first_column(filename, surpress_warning=True)[source]
alex.applications.PublicTransportInfoEN.data.expand_stops_script.read_two_columns(filename)[source]
alex.applications.PublicTransportInfoEN.data.expand_stops_script.save_list(output_file, output_list)[source]
alex.applications.PublicTransportInfoEN.data.expand_stops_script.save_out(output_file, output_dict, separator=u'; ')[source]

alex.applications.PublicTransportInfoEN.data.expand_streets_script module

A script that creates an expansion from a list of stops

For usage write expand_stops_script.py -h

alex.applications.PublicTransportInfoEN.data.expand_streets_script.main()[source]

alex.applications.PublicTransportInfoEN.data.ontology module

alex.applications.PublicTransportInfoEN.data.ontology.add_slot_values_from_database(slot, category, exceptions=set([]))[source]
alex.applications.PublicTransportInfoEN.data.ontology.load_compatible_values(fname, slot1, slot2)[source]
alex.applications.PublicTransportInfoEN.data.ontology.load_geo_values(fname, slot1, slot2, surpress_warning=True)[source]
alex.applications.PublicTransportInfoEN.data.ontology.load_street_type_values(fname, surpress_warning=False)[source]

Module contents