MCPcopy Create free account

hub / github.com/department-for-transport-BODS/bods / functions

Functions6,272 in github.com/department-for-transport-BODS/bods

↓ 838 callersMethodfilter
(self, qs, value)
transit_odp/common/filters.py:6
↓ 715 callersMethodinfo
(self, message=None)
transit_odp/fares/tests/test_tasks.py:31
↓ 382 callersMethodcount
(self)
transit_odp/common/csv.py:23
↓ 354 callersMethodupdate
Performs normalisation and drops duplicates, will keep highest variation
transit_odp/otc/registry.py:278
↓ 345 callersMethodget
(self, request, *args, **kwargs)
transit_odp/browse/views/timetable_views.py:1519
↓ 293 callersMethodget
(self, request, *args, **kwargs)
transit_odp/common/views.py:36
↓ 290 callersMethodxpath
Wrapper method around Element.xpath allowing for list tags. Allows for xpath to specified as list ["Tag1", "Tag2"], this gets convert
transit_odp/common/xmlelements/elements.py:147
↓ 284 callersFunctionclient_factory
Client factory to ease testing multi-host site
transit_odp/conftest.py:35
↓ 259 callersMethodcreate
(self, email, inviter=None, key=None, **kwargs)
transit_odp/users/managers.py:6
↓ 156 callersMethodget
(self, request, *args, **kwargs)
transit_odp/data_quality/views/base.py:74
↓ 148 callersMethoderror
(self, message=None, exc_info=False)
transit_odp/fares/tests/test_tasks.py:34
↓ 145 callersMethodget
Get the progress of a dataset revision.
transit_odp/publish/views/api.py:73
↓ 131 callersMethodget
(self, *args, **kwargs)
transit_odp/site_admin/views/metrics.py:38
↓ 128 callersMethodopen
Opens zip_file.
transit_odp/validate/zip.py:108
↓ 114 callersMethodmerge
(self, right)
transit_odp/pipelines/pipelines/dataset_etl/utils/extract_meta_result.py:40
↓ 104 callersMethod__list__
(self)
transit_odp/fares_validator/views/response.py:19
↓ 103 callersMethodextract
(self, file_obj: File)
transit_odp/pipelines/pipelines/dataset_etl/feed_parser.py:131
↓ 99 callersMethodget
(self, request, *args, **kwargs)
transit_odp/users/views/auth.py:37
↓ 92 callersMethodget
(self, *args, **kwargs)
transit_odp/avl/views/archive.py:42
↓ 88 callersMethoddelete
(self, using=None, keep_parents=False)
transit_odp/otc/models.py:118
↓ 83 callersMethodget_element_or_none
(self, xpath: Union[str, List[str], Tuple[str]])
transit_odp/common/xmlelements/elements.py:96
↓ 81 callersMethodset_transxchange_attribute
Sets the value of a specified TransXChange field. Args: trans_field (TransXChangeField): The field for which the value i
transit_odp/avl/post_publishing_checks/daily/results.py:129
↓ 77 callersMethodget
Get SIRI VM response from consumer API.
transit_odp/api/views/avl.py:386
↓ 77 callersMethodget_element
Search root for the given xpath, resolving to a single element. Return the element. Throws if a single element is not found.
transit_odp/xmltoolkit/xml_toolkit.py:89
↓ 71 callersMethodtransform
(self, extracted_data: ExtractedData)
transit_odp/pipelines/pipelines/dataset_etl/transform.py:48
↓ 67 callersMethodget
(self, *args, **kwargs)
transit_odp/timetables/views/pti.py:141
↓ 66 callersMethodadd_error
Adds an error message to the specified category and logs the error. Args: category (ErrorCategory): The category to whic
transit_odp/avl/post_publishing_checks/daily/results.py:71
↓ 62 callersMethodis_valid
(self, source: XMLFile)
transit_odp/data_quality/pti/validators.py:648
↓ 56 callersMethodget
(self, request, *args, **kwargs)
transit_odp/fares/views/update.py:121
↓ 56 callersMethodget_published
Filter queryset to datasets which have a live_revision, i.e. a published revision
transit_odp/organisation/querysets.py:629
↓ 56 callersMethodupdate
Updates features that are currently in the database.
transit_odp/data_quality/etl/loaders.py:209
↓ 55 callersMethodfrom_path
(cls, path: Path)
transit_odp/data_quality/pti/models/__init__.py:44
↓ 52 callersMethodload
(self, transformed: TransformedData)
transit_odp/pipelines/pipelines/dataset_etl/feed_parser.py:159
↓ 50 callersFunction_extract_attribute
Extract attribute from element
transit_odp/fares_validator/views/functions.py:51
↓ 48 callersMethodsave
(self, *args, **kwargs)
transit_odp/users/models.py:78
↓ 47 callersMethod_send_mail
(self, template: str, email: str, subject: str, **kwargs)
transit_odp/notifications/client/base.py:31
↓ 45 callersMethodregister_function
(self, key: str, function: Callable)
transit_odp/fares_validator/views/validators.py:200
↓ 44 callersFunctioncheck_frame_equal
Compare that two dataframes are equal ignoring ordering of columns and rows
transit_odp/pipelines/tests/utils.py:4
↓ 43 callersMethodget_active_org
(self)
transit_odp/naptan/querysets.py:8
↓ 43 callersMethodrun
Top-level entry point for processing a Feed.
transit_odp/timetables/etl.py:47
↓ 43 callersMethodsirivm_value
(self, sirivm_field: SirivmField)
transit_odp/avl/post_publishing_checks/daily/results.py:87
↓ 42 callersMethodpost
(self, *args, **kwargs)
transit_odp/publish/views/base.py:472
↓ 40 callersMethodload
(self)
transit_odp/data_quality/etl/model.py:73
↓ 40 callersMethodto_dict
(self)
transit_odp/timetables/utils.py:76
↓ 37 callersMethodfind_anywhere
Attempts to find a matching xpath anywhere in the tree.
transit_odp/common/xmlelements/elements.py:141
↓ 37 callersMethodpost
(self, request, *args, **kwargs)
transit_odp/organisation/views.py:236
↓ 37 callersFunctionreverse_path
django_hosts reverse helper function does a reverse but only return the path info args and kwargs are the same as django_hosts.reverse
transit_odp/common/utils/__init__.py:39
↓ 37 callersMethodsave
(self, *args, **kwargs)
transit_odp/publish/forms/seasonal_services.py:263
↓ 35 callersMethodadd_live_data
Annotates the queryset with the live revision data
transit_odp/organisation/querysets.py:385
↓ 35 callersMethodsave
(self, *args, **kwargs)
transit_odp/transmodel/models.py:281
↓ 35 callersMethodto_error
(self)
transit_odp/pipelines/models.py:105
↓ 35 callersMethodto_string
Creates a string representation of a Django model.
transit_odp/common/csv.py:46
↓ 34 callersMethodget_elements
(self, root, xpath)
transit_odp/xmltoolkit/xml_toolkit.py:110
↓ 33 callersMethodupdate_progress
(self, progress: int)
transit_odp/pipelines/models.py:222
↓ 32 callersMethodadd_organisation_name
(self)
transit_odp/organisation/querysets.py:480
↓ 31 callersMethodregister_function
(self, key: str, function: Callable)
transit_odp/data_quality/pti/validators.py:608
↓ 31 callersMethodsave
(self, commit=True)
transit_odp/avl/admin/forms.py:55
↓ 31 callersMethodto_list
(cls)
transit_odp/avl/post_publishing_checks/weekly/constants.py:38
↓ 28 callersMethodget
(self, *args, **kwargs)
transit_odp/browse/views/local_authority.py:456
↓ 27 callersMethodget
(self, request, *args, **kwargs)
transit_odp/publish/views/base.py:702
↓ 27 callersMethodpost
(self, request, *args, **kwargs)
transit_odp/site_admin/views/invites.py:325
↓ 27 callersMethodsave
(self, **kwargs)
transit_odp/organisation/models/data.py:335
↓ 27 callersMethodset_sirivm_value
( self, sirivm_field: SirivmField, value: str, line_num: int = None )
transit_odp/avl/post_publishing_checks/daily/results.py:44
↓ 26 callersFunctionconcat_and_dedupe
(dfs)
transit_odp/pipelines/pipelines/dataset_etl/utils/aggregations.py:9
↓ 26 callersFunctionlocalize_datetime_and_convert_to_string
( datetime_object, datetime_string_format: str = "%d-%m-%Y %H:%M" )
transit_odp/common/utils/convert_datetime.py:4
↓ 24 callersMethodadd_registration_number
The registration number comprises the licence prefix plus registration code. This is sometimes referred to as the service code.
transit_odp/organisation/querysets.py:1667
↓ 24 callersFunctionget_dataset_adapter_from_revision
(logger, revision)
transit_odp/common/loggers.py:49
↓ 24 callersMethodraise_for_status
Check the requests.Response code and raise a downloader exception. Args: response (Response): a requests.Response object.
transit_odp/validate/downloader.py:76
↓ 24 callersMethodsave
(self, commit=True)
transit_odp/site_admin/forms/organisation.py:128
↓ 24 callersMethodto_csv
(self)
transit_odp/data_quality/csv.py:16
↓ 23 callersMethodregister_warning
(self, warning_type: str, warning: BaseWarning)
transit_odp/data_quality/dataclasses/warnings/__init__.py:73
↓ 22 callersMethodget_active
Filter queryset to datasets which have a published revision in a non-expired state
transit_odp/organisation/querysets.py:667
↓ 22 callersMethodmisc_value
(self, misc_field: MiscFieldPPC)
transit_odp/avl/post_publishing_checks/daily/results.py:120
↓ 22 callersMethodpost
(self, *args, **kwargs)
transit_odp/users/views/invitations.py:12
↓ 22 callersMethodtxc_value
(self, sirivm_field: SirivmField)
transit_odp/avl/post_publishing_checks/daily/results.py:99
↓ 21 callersMethodcreate
Subscribe AVL consumer subscription
transit_odp/api/views/avl.py:441
↓ 20 callersFunction_get_timetable_catalogue_dataframe
()
transit_odp/timetables/csv.py:1407
↓ 20 callersMethodadd_is_live_pti_compliant
(self)
transit_odp/organisation/querysets.py:840
↓ 20 callersMethodadd_message
(self)
transit_odp/data_quality/models/querysets.py:324
↓ 20 callersMethodcreate
(cls, created=None, **kwargs)
transit_odp/organisation/factories.py:170
↓ 20 callersFunctioncreate_zip_file
(filename, files, compression=ZIP_STORED)
transit_odp/validate/tests/utils.py:15
↓ 20 callersMethodget_draft
(self)
transit_odp/organisation/querysets.py:1089
↓ 20 callersMethodget_timing_pattern
(self)
transit_odp/data_quality/models/warnings.py:327
↓ 20 callersMethodget_viewable_statuses
Returns only the statuses that can be viewable by a consumer of BODS, e.g. "live" and "inactive" (N.B. only applies to Fares and Time
transit_odp/organisation/querysets.py:657
↓ 19 callersMethodadd_line
(self, *args)
transit_odp/data_quality/models/querysets.py:123
↓ 19 callersMethodfrom_feature
(cls, line: features.Line)
transit_odp/data_quality/models/transmodel.py:31
↓ 19 callersMethodget
(self, request, *args, **kwargs)
transit_odp/publish/views/timetable/delete.py:63
↓ 19 callersMethodget_object
(self, queryset=None)
transit_odp/users/views/account.py:70
↓ 19 callersMethodsave
(self, commit=True)
transit_odp/users/forms/admin.py:90
↓ 18 callersFunctionfilter_interactions_to_organisation
( interactions: pd.DataFrame, organisation_id: int )
transit_odp/organisation/csv/consumer_interactions.py:320
↓ 18 callersMethodget
(self, item, default=None)
transit_odp/common/xmlelements/elements.py:47
↓ 18 callersFunctionget_etl_task_or_pipeline_exception
(pk)
transit_odp/fares/utils.py:10
↓ 18 callersMethodget_file_name
Gets the FileName attribute from a TxC file. Returns: str: Returns the value in FileName.
transit_odp/timetables/transxchange.py:171
↓ 18 callersMethodmatches
(self, sirivm_field: SirivmField)
transit_odp/avl/post_publishing_checks/daily/results.py:111
↓ 18 callersMethodtransxchange_attribute
Retrieves the value of a specified TransXChange field. Args: trans_field (TransXChangeField): The field for which the va
transit_odp/avl/post_publishing_checks/daily/results.py:139
↓ 17 callersFunctioncreate_text_file
(file_name, contents)
transit_odp/validate/tests/utils.py:10
↓ 17 callersMethodget_elements_or_none
(self, xpath: Union[str, List[str], Tuple[str]])
transit_odp/common/xmlelements/elements.py:102
↓ 17 callersMethodsetup_feeds
(self)
transit_odp/browse/tests/test_avls.py:30
↓ 16 callersFunction_get_timetable_compliance_report_dataframe
()
transit_odp/timetables/csv.py:1504
↓ 16 callersFunction_get_timetable_line_level_catalogue_dataframe
()
transit_odp/timetables/csv.py:1449
next →1–100 of 6,272, ranked by callers