Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alphagov/notifications-api
/ functions
Functions
5,336 in github.com/alphagov/notifications-api
⨍
Functions
5,336
◇
Types & classes
258
↳
Endpoints
315
↓ 3 callers
Function
archive_or_release_inbound_number_for_service
(service_id: UUID, archive: bool, commit=True)
app/dao/inbound_numbers_dao.py:53
↓ 3 callers
Function
assign_unbatched_unsubscribe_requests_to_report_dao
This method updates the unsubscribe_request_report_id of all un-batched unsubscribe requests that fall within the earliest_timestamp and late
app/dao/unsubscribe_request_dao.py:128
↓ 3 callers
Method
authenticate
Fetch a JWT from the DVLA API that can be used in other DVLA API requests
app/clients/letter/dvla.py:140
↓ 3 callers
Function
batched
(iterable: Iterable[A], n: int, *, strict: bool = False)
app/utils.py:70
↓ 3 callers
Function
check_for_missing_rows_in_completed_jobs
()
app/celery/scheduled_tasks.py:466
↓ 3 callers
Function
check_if_service_can_send_files_by_email
(service_contact_link, service_id)
app/notifications/validators.py:155
↓ 3 callers
Function
check_notification_content_is_not_empty
(template_with_content)
app/notifications/validators.py:239
↓ 3 callers
Function
check_rate_limiting
(service, api_key, notification_type)
app/notifications/validators.py:120
↓ 3 callers
Function
check_service_has_permission
(service, permission)
app/notifications/validators.py:148
↓ 3 callers
Function
check_template_is_active
(template)
app/notifications/validators.py:131
↓ 3 callers
Function
check_template_is_for_notification_type
(notification_type, template_type)
app/notifications/validators.py:125
↓ 3 callers
Function
check_token_matches_payload
(token_id, json_id)
app/notifications/notifications_letter_callback.py:151
↓ 3 callers
Method
completed_at
(self)
app/models.py:1659
↓ 3 callers
Function
create_app
(application)
app/__init__.py:162
↓ 3 callers
Function
create_fake_letter_callback
(self, notification_id: uuid.UUID, billable_units: int, postage: str)
app/celery/research_mode_tasks.py:213
↓ 3 callers
Method
create_instance
(self, inst, _commit=True)
app/dao/__init__.py:15
↓ 3 callers
Function
create_invited_user
(service=None, to_email_address=None)
tests/app/db.py:911
↓ 3 callers
Function
create_random_identifier
()
app/__init__.py:458
↓ 3 callers
Function
create_service_guest_list
(service, email_address=None, mobile_number=None)
tests/app/db.py:789
↓ 3 callers
Function
create_uuid
()
app/__init__.py:454
↓ 3 callers
Function
dao_add_service_permission
(service_id, permission)
app/dao/service_permissions_dao.py:11
↓ 3 callers
Function
dao_archive_template_email_file
(file_to_archive, archived_by_id, template_version)
app/dao/template_email_files_dao.py:140
↓ 3 callers
Function
dao_archive_user
(user)
app/dao/users_dao.py:173
↓ 3 callers
Function
dao_count_inbound_sms_for_service
(service_id, limit_days, session: Session | scoped_session = db.session)
app/dao/inbound_sms_dao.py:68
↓ 3 callers
Function
dao_create_inbound_sms
(inbound_sms)
app/dao/inbound_sms_dao.py:24
↓ 3 callers
Function
dao_fetch_service_guest_list
(service_id)
app/dao/service_guest_list_dao.py:5
↓ 3 callers
Function
dao_fetch_service_permissions
(service_id)
app/dao/service_permissions_dao.py:6
↓ 3 callers
Function
dao_get_all_letter_branding
()
app/dao/letter_branding_dao.py:31
↓ 3 callers
Function
dao_get_inbound_sms_by_id
(service_id, inbound_id)
app/dao/inbound_sms_dao.py:172
↓ 3 callers
Function
dao_get_letter_rates_for_timestamp
(a_datetime)
app/dao/letter_rate_dao.py:32
↓ 3 callers
Function
dao_get_notification_count_for_job_id
(*, job_id)
app/dao/notifications_dao.py:262
↓ 3 callers
Function
dao_get_notification_or_history_by_id
(notification_id)
app/dao/notifications_dao.py:291
↓ 3 callers
Function
dao_get_organisation_by_service_id
(service_id)
app/dao/organisation_dao.py:72
↓ 3 callers
Function
dao_get_organisation_services
(organisation_id)
app/dao/organisation_dao.py:46
↓ 3 callers
Function
dao_get_orgs_and_services_associated_with_email_branding
(email_branding_id)
app/dao/email_branding_dao.py:55
↓ 3 callers
Function
dao_get_scheduled_job_by_id_and_service_id
Fetch a scheduled job from the DB, taking an exclusive lock on the row so that it can't be edited until this transaction is committed or rolled ba
app/dao/jobs_dao.py:141
↓ 3 callers
Function
dao_get_uploaded_letters_by_print_date
(service_id, letter_print_date, page=1, page_size=50)
app/dao/uploads_dao.py:134
↓ 3 callers
Function
dao_get_webauthn_credential_by_user_and_id
(user_id, webauthn_credential_id)
app/dao/webauthn_credential_dao.py:8
↓ 3 callers
Function
dao_remove_inbound_sms_for_service
(service_id, archive)
app/dao/inbound_numbers_dao.py:68
↓ 3 callers
Function
dao_remove_service_guest_list
(service_id)
app/dao/service_guest_list_dao.py:14
↓ 3 callers
Function
dao_remove_user_from_organisation
(organisation, user)
app/dao/organisation_dao.py:217
↓ 3 callers
Function
dao_set_inbound_number_active_flag
(service_id, active)
app/dao/inbound_numbers_dao.py:36
↓ 3 callers
Function
delete_codes_older_created_more_than_a_day_ago
()
app/dao/users_dao.py:80
↓ 3 callers
Function
delete_invitations_created_more_than_two_days_ago
()
app/dao/invited_user_dao.py:24
↓ 3 callers
Function
delete_user_and_all_associated_db_objects
(user)
app/dao/users_dao.py:95
↓ 3 callers
Function
extract_properties_from_request
(request_data)
app/notifications/notifications_letter_callback.py:173
↓ 3 callers
Function
fetch_count_of_complaints
(start_date, end_date)
app/dao/complaint_dao.py:23
↓ 3 callers
Function
fetch_notification_status_totals_for_all_services
(start_date, end_date)
app/dao/fact_notification_status_dao.py:363
↓ 3 callers
Function
fetch_paginated_complaints
(page=1)
app/dao/complaint_dao.py:17
↓ 3 callers
Function
fetch_returned_letter_summary
(service_id)
app/dao/returned_letters_dao.py:78
↓ 3 callers
Function
fetch_usage_for_service_annual
Returns a row for each distinct rate and notification_type from ft_billing over the specified financial year e.g. ( rate
app/dao/fact_billing_dao.py:273
↓ 3 callers
Function
fetch_volumes_by_service
( start_date, end_date, session: Session | scoped_session = db.session, )
app/dao/fact_billing_dao.py:1149
↓ 3 callers
Function
firetext_callback
status: 0 - delivered status: 1 - perm failure
app/celery/research_mode_tasks.py:193
↓ 3 callers
Function
format_admin_stats
(statistics)
app/service/statistics.py:24
↓ 3 callers
Function
format_mmg_datetime
We expect datetimes in format 2017-05-21+11%3A56%3A11 - ie, spaces replaced with pluses, and URI encoded and in UTC
app/notifications/receive_notifications.py:141
↓ 3 callers
Function
get_daily_rate_limit_value
(service, key_type, notification_type)
app/notifications/validators.py:76
↓ 3 callers
Method
get_dict
(service_id)
app/serialised_models.py:135
↓ 3 callers
Function
get_html_email_options
(service)
app/delivery/send_to_providers.py:258
↓ 3 callers
Function
get_invited_user_by_id
(invited_user_id)
app/dao/invited_user_dao.py:16
↓ 3 callers
Function
get_invited_users_for_service
(service_id)
app/dao/invited_user_dao.py:20
↓ 3 callers
Function
get_latest_unsubscribe_request_date_dao
(service_id)
app/dao/unsubscribe_request_dao.py:56
↓ 3 callers
Function
get_letter_pdf_and_metadata
(notification)
app/letters/utils.py:203
↓ 3 callers
Function
get_logo_url
(base_url, logo_file)
app/delivery/send_to_providers.py:237
↓ 3 callers
Function
get_notification_by_job_and_job_row_number
(job_id, job_row_number)
app/dao/notifications_dao.py:285
↓ 3 callers
Function
get_precompiled_letter_template
(service_id)
app/dao/templates_dao.py:99
↓ 3 callers
Function
get_processing_time_percentage_for_date_range
(start_date, end_date)
app/dao/fact_processing_time_dao.py:36
↓ 3 callers
Function
get_public_notify_type_text
(notify_type: str, plural: bool = False)
app/utils.py:126
↓ 3 callers
Function
get_reference_from_filename
(filename)
app/letters/utils.py:87
↓ 3 callers
Method
get_reply_to_text
(self)
app/models.py:1159
↓ 3 callers
Function
get_sms_reply_to_for_notify_service
(recipient, template)
app/user/rest.py:143
↓ 3 callers
Function
get_template_instance
(template: dict[str, Any], values: dict[str, Any])
app/utils.py:92
↓ 3 callers
Function
get_total_notifications_for_date_range
(start_date, end_date)
app/dao/fact_notification_status_dao.py:602
↓ 3 callers
Function
get_unsubscribe_request_data
(notification, email_address)
app/one_click_unsubscribe/rest.py:79
↓ 3 callers
Function
get_unsubscribe_requests_data_for_download_dao
(service_id, batch_id)
app/dao/unsubscribe_request_dao.py:82
↓ 3 callers
Function
get_unsubscribe_requests_statistics_dao
(service_id)
app/dao/unsubscribe_request_dao.py:28
↓ 3 callers
Function
get_valid_json
()
app/v2/utils.py:7
↓ 3 callers
Function
handle_exception
(task, notification, notification_id, exc)
app/celery/tasks.py:541
↓ 3 callers
Function
hashpw
(password)
app/hashing.py:4
↓ 3 callers
Function
is_delivery_slow_for_providers
Returns a dict of providers and whether they are currently slow or not. eg: { 'mmg': True, 'firetext': False } A pro
app/dao/notifications_dao.py:605
↓ 3 callers
Function
move_sanitised_letter_to_test_or_live_pdf_bucket
(filename, is_test_letter, created_at, new_filename)
app/letters/utils.py:181
↓ 3 callers
Function
notifications_not_yet_sent
( grace_period: timedelta, notification_type: str, age_limit: timedelta = timedelta(days=7), c
app/dao/notifications_dao.py:854
↓ 3 callers
Function
process_report_request
(self, service_id: UUID, report_request_id: UUID)
app/celery/tasks.py:671
↓ 3 callers
Function
reset_failed_login_count
(user)
app/dao/users_dao.py:142
↓ 3 callers
Function
return_json_from_response
(response)
tests/app/public_contracts/__init__.py:5
↓ 3 callers
Function
save_invited_org_user
(invited_org_user)
app/dao/invited_org_user_dao.py:7
↓ 3 callers
Function
save_user_attribute
(usr, update_dict=None)
app/dao/users_dao.py:46
↓ 3 callers
Function
send_dvla_letters_via_api
(print_run_deadline_local, batch_size=100)
app/celery/letters_pdf_tasks.py:255
↓ 3 callers
Function
send_inbound_sms_to_service
(self, inbound_sms_id, service_id)
app/celery/service_callback_tasks.py:122
↓ 3 callers
Method
send_sms
(self, to, content, reference, international, sender)
app/clients/sms/__init__.py:65
↓ 3 callers
Method
serialize
(self)
app/models.py:317
↓ 3 callers
Method
serialize
(self)
app/models.py:351
↓ 3 callers
Method
serialize
(self)
app/models.py:503
↓ 3 callers
Function
service_allowed_to_send_to
(recipient, service, key_type, allow_guest_list_recipients=True)
app/service/utils.py:30
↓ 3 callers
Function
ses_hard_bounce_callback
(reference)
app/celery/research_mode_tasks.py:281
↓ 3 callers
Function
strip_leading_forty_four
(number)
app/notifications/receive_notifications.py:200
↓ 3 callers
Method
to_dict_v2
Version 2 of the public api error response.
app/v2/errors.py:69
↓ 3 callers
Function
try_download_template_email_file_from_s3
(service_id, template_email_file_id)
app/utils.py:283
↓ 3 callers
Function
update_fact_notification_status
( rows: Sequence[NamedTuple], process_day: date, notification_type: str, service_id: UUID | str )
app/dao/fact_notification_status_dao.py:132
↓ 3 callers
Function
update_free_sms_fragment_limit_data
Update the free allowance for a service for this year. If updating the free allowance now means that a service has the default allowance for
app/billing/rest.py:90
↓ 3 callers
Function
update_letter_to_sending
(notification)
app/celery/provider_tasks.py:197
← previous
next →
401–500 of 5,336, ranked by callers