Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/internetarchive/openlibrary
/ functions
Functions
6,179 in github.com/internetarchive/openlibrary
⨍
Functions
6,179
◇
Types & classes
1,059
↳
Endpoints
131
↓ 4 callers
Function
iter_pages
Yield successive OPDS feed pages, following ``rel=next`` links.
scripts/bwb_opds_imports.py:185
↓ 4 callers
Method
json
(self)
scripts/partner_batch_imports.py:300
↓ 4 callers
Function
key_func
(_id: str)
openlibrary/core/lending.py:413
↓ 4 callers
Function
legacy_award_json
(data, work_id=123)
openlibrary/tests/fastapi/test_bestbook.py:26
↓ 4 callers
Function
legacy_bookshelves_json
(data, work_id=123)
openlibrary/tests/fastapi/test_work_bookshelves.py:24
↓ 4 callers
Function
load_config
(configfile)
openlibrary/coverstore/server.py:29
↓ 4 callers
Function
load_data
Adds a new Edition to Open Library, or overwrites existing_edition with rec data. The overwrite option exists for cases where the existing e
openlibrary/catalog/add_book/__init__.py:596
↓ 4 callers
Method
login
Login to Open Library with given credentials.
openlibrary/api.py:109
↓ 4 callers
Function
make_path
(doc)
scripts/pull-templates.py:59
↓ 4 callers
Function
matchLargeCovers
({ url })
openlibrary/plugins/openlibrary/js/service-worker-matchers.js:21
↓ 4 callers
Function
matchStaticImages
({ url })
openlibrary/plugins/openlibrary/js/service-worker-matchers.js:26
↓ 4 callers
Method
mc_delete
(self, key)
openlibrary/plugins/openlibrary/connection.py:350
↓ 4 callers
Method
mc_delete_multi
(self, keys)
openlibrary/plugins/openlibrary/connection.py:370
↓ 4 callers
Method
memcache_delete
(self, args: tuple, kw: dict)
openlibrary/core/cache.py:207
↓ 4 callers
Function
normalize
(s: str)
openlibrary/plugins/upstream/utils.py:751
↓ 4 callers
Function
opposite_isbn
(isbn)
openlibrary/utils/isbn.py:64
↓ 4 callers
Function
p
Util to get absolute path from relative path
tests/test_docker_compose.py:6
↓ 4 callers
Function
parse_log
(records: Iterable[InfobaseLogRecord], load_ia_scans: bool)
scripts/solr_updater/solr_updater.py:159
↓ 4 callers
Function
parse_log_entry
(log_line: str)
scripts/monitoring/solr_logs_monitor.py:94
↓ 4 callers
Method
parse_params
(self)
scripts/monitoring/solr_logs_monitor.py:42
↓ 4 callers
Function
pgdecode
r"""Decode postgres encoded text. >>> pgdecode('\\n') '\n'
openlibrary/data/dump.py:332
↓ 4 callers
Function
post_fastapi_award
(fastapi_client, data, *, use_query_params=False)
openlibrary/tests/fastapi/test_bestbook.py:40
↓ 4 callers
Method
preload_documents0
(self, keys)
openlibrary/solr/data_provider.py:388
↓ 4 callers
Function
process
(data)
openlibrary/data/dump.py:183
↓ 4 callers
Function
process_google_book
Returns a dict-edition record suitable for import via /api/import Processing https://www.googleapis.com/books/v1/volumes?q=isbn:978569935013
scripts/affiliate_server.py:243
↓ 4 callers
Function
process_merge_request
(rtype, data)
openlibrary/plugins/upstream/edits.py:28
↓ 4 callers
Function
read_state
Return the last-run timestamp from ``path`` (UTC). Returns epoch if missing.
scripts/bwb_opds_imports.py:75
↓ 4 callers
Method
register
(self, username, displayname, email, password)
openlibrary/mocks/mock_infobase.py:309
↓ 4 callers
Function
register_adapter
(name, adapter)
openlibrary/utils/schema.py:26
↓ 4 callers
Function
register_filter
(name, function)
openlibrary/plugins/openlibrary/stats.py:135
↓ 4 callers
Function
remove_trailing_number_dot
(date)
openlibrary/catalog/utils/__init__.py:94
↓ 4 callers
Method
render
(self, date=None, kind=None)
openlibrary/plugins/upstream/recentchanges.py:43
↓ 4 callers
Function
render_template
(name: str, *a, **kw)
openlibrary/app.py:70
↓ 4 callers
Method
resetForm
* Clears the list title and desciption fields in the form.
openlibrary/plugins/openlibrary/js/my-books/CreateListForm.js:134
↓ 4 callers
Function
rm_f
(filename)
openlibrary/coverstore/utils.py:154
↓ 4 callers
Method
s3auth
Authenticates an Archive.org user based on s3 keys
openlibrary/accounts/model.py:874
↓ 4 callers
Function
sample_job
()
scripts/monitoring/tests/test_utils_py.py:33
↓ 4 callers
Function
seconds_remaining
(start_time: float)
scripts/affiliate_server.py:462
↓ 4 callers
Method
select_by_id
(cls, pid)
openlibrary/core/bookshelves_events.py:44
↓ 4 callers
Method
set
(self, key, val, time=0)
openlibrary/utils/olmemcache.py:33
↓ 4 callers
Method
setEventId
* Updates the value of the form's `event_id` input. * * @param value
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/CheckInComponents.js:757
↓ 4 callers
Method
set_identifiers
Updates the work from identifiers specified as (name, value) pairs.
openlibrary/plugins/upstream/models.py:673
↓ 4 callers
Method
set_permission
Returns the doc with permission set. The caller must save the doc.
openlibrary/plugins/admin/code.py:669
↓ 4 callers
Function
sprintf
(s)
openlibrary/plugins/openlibrary/js/i18n.js:2
↓ 4 callers
Method
sql
(self, engine)
openlibrary/utils/schema.py:272
↓ 4 callers
Method
square_memoize
(self)
openlibrary/tests/core/test_cache.py:40
↓ 4 callers
Function
strip_accents
(s: str)
openlibrary/plugins/upstream/utils.py:671
↓ 4 callers
Function
subject_key_to_seed
(key: subjects.SubjectPseudoKey)
openlibrary/plugins/openlibrary/lists.py:44
↓ 4 callers
Function
subject_name_to_key
(subject_type: str, name: str)
openlibrary/solr/updater/work.py:265
↓ 4 callers
Method
submit_many
(events: list[GraphiteEvent], graphite_address: str | tuple[str, int])
scripts/monitoring/utils.py:31
↓ 4 callers
Function
substr_match
(a: str, b: str)
openlibrary/catalog/add_book/match.py:339
↓ 4 callers
Method
sync
* Listen to updates to this value * @param {Function} listener * @param {Boolean} callAtStart whether to call the listener right now with th
openlibrary/plugins/openlibrary/js/SearchUtils.js:62
↓ 4 callers
Function
system
(cmd)
scripts/sitemaps/sitemap.py:197
↓ 4 callers
Method
title
(self)
openlibrary/core/lists/model.py:542
↓ 4 callers
Method
to_dict
(self)
openlibrary/plugins/upstream/table_of_contents.py:86
↓ 4 callers
Function
to_isbn_13
Tries to make an isbn into an isbn13; regardless of input isbn type
openlibrary/utils/isbn.py:56
↓ 4 callers
Method
to_uri
scripts/copydocs.py:148
↓ 4 callers
Method
total_unique_respondents
Returns total number of patrons who have submitted observations for the given work ID. If no work ID is passed, returns total number
openlibrary/core/observations.py:766
↓ 4 callers
Function
uniq
Returns the unique entries from the given values in the original order. The value of the optional `key` parameter should be a function that takes
openlibrary/core/helpers.py:282
↓ 4 callers
Function
uniq
(values: Iterable[T])
openlibrary/plugins/books/dynlinks.py:180
↓ 4 callers
Method
updatePrimaryButtonText
* Sets that primary button's text to the given string. * * @param {string} newText
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/ReadingLogForms.js:251
↓ 4 callers
Method
update_pd
(self, pda=None, rpd=None)
openlibrary/accounts/model.py:698
↓ 4 callers
Method
url
(self, suffix="", **params)
openlibrary/core/models.py:845
↓ 4 callers
Method
url
(self, suffix="", **params)
openlibrary/core/lists/model.py:95
↓ 4 callers
Function
validate_record
Check for: - publication years too old from non-exempt sources (e.g. Amazon); - publish dates in a future year; - indepen
openlibrary/catalog/add_book/__init__.py:827
↓ 4 callers
Function
validate_subject_tag
(tag)
openlibrary/plugins/upstream/addtag.py:44
↓ 4 callers
Function
validate_tag
(tag)
openlibrary/plugins/upstream/addtag.py:40
↓ 4 callers
Function
verify_hash
Verifies if the hash is generated
openlibrary/accounts/model.py:71
↓ 3 callers
Method
GET
(self)
openlibrary/admin/code.py:17
↓ 3 callers
Method
_appendFilterParams
(params, availability = this._availability)
openlibrary/plugins/openlibrary/js/search-modal/SearchModal.js:1769
↓ 3 callers
Method
_applyTrackLayout
Set layout CSS custom properties on the host element. * These cascade into the shadow DOM for ::slotted(*) and .arrow sizing. * Kept separ
openlibrary/components/lit/OlCarousel.js:755
↓ 3 callers
Method
_call_write
(self, name, query, comment, action)
openlibrary/api.py:149
↓ 3 callers
Method
_cancelAnimation
()
openlibrary/components/lit/OlCarousel.js:457
↓ 3 callers
Function
_classify_lines
(lines: str)
scripts/monitoring/tests/test_olspy_sh.py:30
↓ 3 callers
Method
_cleanup
* Central cleanup called when the popover finishes closing. * Removes all global listeners, unlocks scroll, and restores focus.
openlibrary/components/lit/OlPopover.js:445
↓ 3 callers
Method
_clearTimer
()
openlibrary/components/lit/OlToast.js:363
↓ 3 callers
Function
_editions_fq_for
Run a Solr-editions query for `param` and return its editions.fq clauses. Sets req_context because the has_fulltext facet_rewrite resolves ge
openlibrary/plugins/worksearch/tests/test_worksearch.py:101
↓ 3 callers
Method
_encode_key
(self, key: str)
openlibrary/core/cache.py:312
↓ 3 callers
Function
_evict_drift_cache
()
openlibrary/plugins/openlibrary/status.py:436
↓ 3 callers
Method
_from_row
(row: web.storage)
openlibrary/core/acquisitions.py:58
↓ 3 callers
Function
_get_editions_response
(key: str, params: GetListEditionsParams)
openlibrary/fastapi/lists.py:351
↓ 3 callers
Function
_get_from_web
(id: str)
openlibrary/core/wikidata.py:196
↓ 3 callers
Method
_get_history_preview
(self)
openlibrary/core/models.py:133
↓ 3 callers
Method
_get_itemid
Returns internet archive item id from the key. If the key is of the form "/books/ia:.*", the part after "/books/ia:" is returned, oth
openlibrary/plugins/openlibrary/connection.py:120
↓ 3 callers
Method
_get_lists
(self, limit: int = 50, offset: int = 0, sort: bool = True)
openlibrary/core/models.py:202
↓ 3 callers
Method
_get_versions
(self, limit: int, offset: int = 0)
openlibrary/core/models.py:144
↓ 3 callers
Function
_github_get
(path: str)
openlibrary/plugins/openlibrary/status.py:395
↓ 3 callers
Method
_layout
* Place each toast in the bottom-anchored list. Newest (last in DOM) sits * in the bottom slot; --ol-toast-offset carries the cumulative height o
openlibrary/components/lit/OlToastRegion.js:97
↓ 3 callers
Function
_make_thing
Helper: add a minimal doc to MockSite and return the Thing.
openlibrary/tests/core/test_processors.py:138
↓ 3 callers
Function
_mock_site_context_returning
Build a mock 'site' ContextVar whose .get() returns a site-like object. The returned mock-site's .get(key) returns *user* so that the reading-log
openlibrary/tests/fastapi/test_public_my_books.py:53
↓ 3 callers
Method
_navigateToPage
(targetPage, initialVelocity = 0)
openlibrary/components/lit/OlCarousel.js:405
↓ 3 callers
Function
_parse_solr_editions_from_fastapi
Parse solr_editions preference from query string or cookie.
openlibrary/utils/request_context.py:165
↓ 3 callers
Function
_parse_solr_editions_from_web
Parse solr_editions from web.py context.
openlibrary/utils/request_context.py:146
↓ 3 callers
Function
_query
(category: str, key: str, value: str)
openlibrary/coverstore/code.py:84
↓ 3 callers
Method
_query
(self, type=None, name=None, value=None, limit=100, offset=0)
openlibrary/mocks/mock_infobase.py:378
↓ 3 callers
Function
_raise
(exc: Exception)
openlibrary/tests/fastapi/test_importapi.py:10
↓ 3 callers
Method
_refetchIfActive
()
openlibrary/plugins/openlibrary/js/search-modal/SearchModal.js:1631
↓ 3 callers
Method
_resetResults
({ hasSearched, clearReadableCount = true } = {})
openlibrary/plugins/openlibrary/js/search-modal/SearchModal.js:978
↓ 3 callers
Function
_set_login_cookies
Set all session cookies after a successful login (password or OTP).
openlibrary/plugins/upstream/account.py:519
↓ 3 callers
Function
_setcookie
(name, value, **kwargs)
openlibrary/plugins/upstream/account.py:527
← previous
next →
601–700 of 6,179, ranked by callers