MCPcopy Create free account

hub / github.com/internetarchive/openlibrary / functions

Functions6,179 in github.com/internetarchive/openlibrary

Functionreplace_work_prefix
(string: str)
openlibrary/tests/solr/test_query_utils.py:87
Methodrequest
(self, sitename, path, method="GET", data=None)
openlibrary/plugins/openlibrary/connection.py:31
Functionrequire_authenticated_user
FastAPI dependency that requires authentication. Use this when you want to ensure a user is authenticated, returning 401 if not. @app.get("/
openlibrary/fastapi/auth.py:119
Functionrequire_librarian
FastAPI dependency that requires librarian-level access. Checks that the authenticated user has admin, librarian, or super-librarian role. Re
openlibrary/fastapi/auth.py:142
MethodresetForm
* Resets the check-in form.
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/CheckInComponents.js:301
FunctionresizeColorbox
()
openlibrary/components/ObservationForm/Utils.js:15
Methodresponse
(msg, status="success")
openlibrary/plugins/openlibrary/api.py:117
Methodresponse
(msg, status="success")
openlibrary/plugins/openlibrary/api.py:441
Methodresponse
(msg, status="success")
openlibrary/plugins/openlibrary/bulk_tag.py:68
Methodreturn_loan
(self)
openlibrary/core/lending.py:920
Functionreturn_resource
Return the book to circulation! This object is invalid and should not be used after this is called. Currently only possible for bookreader loans
openlibrary/plugins/upstream/borrow.py:458
Functionreturn_test_marc_bin
(url)
openlibrary/tests/catalog/test_get_ia.py:23
Functionreturn_test_marc_xml
(url)
openlibrary/tests/catalog/test_get_ia.py:27
Methodrevert
(thing)
openlibrary/plugins/upstream/code.py:285
Methodrow
(r)
openlibrary/plugins/books/dynlinks.py:282
Methodrow
(r: dict | str)
openlibrary/plugins/upstream/table_of_contents.py:28
Methodrun
(self)
scripts/affiliate_server.py:199
Methodrun
* @param {ExtractionOptions} _extractOptions * @param {string} _text * @returns {Promise<BookMatch[]>}
openlibrary/components/BulkSearch/utils/classes.js:28
Methodrun
* @param {ExtractionOptions} _extractOptions * @param {string} text * @returns {Promise<BookMatch[]>}
openlibrary/components/BulkSearch/utils/classes.js:52
Methodrun
* @param {ExtractionOptions} extractionOptions * @param {string} text * @return {Promise<BookMatch[]>}
openlibrary/components/BulkSearch/utils/classes.js:149
Methodrun
(self, lines)
openlibrary/core/olmarkdown.py:65
Functionrunfcgi
Runs a WSGI function as a FastCGI pre-fork server.
scripts/affiliate_server.py:742
Functionrunfcgi
Runs a WSGI function as a FastCGI pre-fork server.
openlibrary/coverstore/server.py:13
Functionrunmain
(modulename, *args)
openlibrary/actions.py:9
Functionsafekey
(x)
openlibrary/core/helpers.py:116
Functionsampledump
Creates a dump of objects from OL database for creating a sample database.
openlibrary/plugins/openlibrary/code.py:162
Functionsampleload
(filename="sampledump.txt.gz")
openlibrary/plugins/openlibrary/code.py:235
Functionsanitize
Removes unsafe tags and attributes from html and adds ``rel="nofollow"`` attribute to all external links. Using encoding=None if passing Unico
openlibrary/core/helpers.py:58
Methodsave
(self, docs, master, duplicates)
openlibrary/plugins/upstream/merge_authors.py:150
Methodsave
(self, author, photoid, url=None)
openlibrary/plugins/upstream/covers.py:159
Methodsave_images
(self, author, photos)
openlibrary/plugins/upstream/covers.py:213
Methodsave_many
(self, query, comment=None, action=None)
openlibrary/api.py:164
Methodsave_s3_keys
(self, s3_keys: dict)
openlibrary/accounts/model.py:675
Functionsearch_authors_json
( params: Annotated[AuthorSearchRequestParams, Depends()], )
openlibrary/fastapi/search.py:331
Functionsearch_facets_partial
Get search facets sidebar and selected facets HTML. The data parameter should contain: - param: dict with search parameters (q, author_k
openlibrary/fastapi/partials.py:34
Functionsearch_inside_json
( pagination: Annotated[PaginationLimit20, Depends()], q: Annotated[str, Query(title="Search query")],
openlibrary/fastapi/search.py:196
Functionsearch_json
Performs a search for documents based on the provided query.
openlibrary/fastapi/search.py:164
Functionsearch_lists_json
( params: Annotated[ListSearchRequestParams, Depends()], )
openlibrary/fastapi/search.py:289
Functionsearch_subjects_json
( pagination: Annotated[Pagination, Depends()], q: Annotated[str, Query(description="The search query"
openlibrary/fastapi/search.py:211
Methodseed
(self)
openlibrary/solr/updater/list.py:126
Methodseed
(self)
openlibrary/solr/updater/work.py:323
Methodseed_count
(self)
openlibrary/core/lists/model.py:161
Methodseed_count
(self)
openlibrary/solr/updater/list.py:135
Methodseeds
( # type: ignore[override] self, )
openlibrary/core/lists/model.py:660
Methodselect_all_by_username
(cls, username, _test=False)
openlibrary/core/observations.py:1062
Methodselect_by_book_user_and_type
(cls, username, work_id, edition_id, event_type)
openlibrary/core/bookshelves_events.py:91
Methodselect_by_user_type_and_year
(cls, username, event_type, year)
openlibrary/core/bookshelves_events.py:111
Methodselected_query
(self)
openlibrary/fastapi/search.py:130
Functionsendmail
(to: str, msg, cc=None)
openlibrary/accounts/model.py:55
Functionserialize
(state, node, parent, index)
openlibrary/components/lit/hard-break.js:20
Functionserialize
(state, node)
openlibrary/components/lit/html-block.js:113
Functionseries_editions_json
Get paginated editions for a specific series.
openlibrary/fastapi/lists.py:380
Methodseries_key
(self)
openlibrary/solr/updater/work.py:383
Methodseries_name
(self)
openlibrary/solr/updater/work.py:387
Methodseries_position
(self)
openlibrary/solr/updater/work.py:391
Functionseries_seeds_json_public
(olid: ListOLID)
openlibrary/fastapi/lists.py:307
Functionseries_seeds_json_user
(username: UsernamePath, olid: ListOLID)
openlibrary/fastapi/lists.py:297
Functionserviceconfig
(request)
openlibrary/plugins/admin/tests/conftest.py:8
Functionsession
Create a configured requests session.
tests/integration/test_fastapi_auth.py:27
Methodset
(self, key, value, expires=0)
openlibrary/core/cache.py:281
Methodset
(self, key: str, value: Any, expires=0)
openlibrary/core/cache.py:336
Methodset_auth_token
(self, token)
openlibrary/plugins/openlibrary/connection.py:28
Functionset_context
(request: Request, call_next)
openlibrary/asgi_app.py:199
Methodset_identifiers
Updates the edition from identifiers specified as (name, value) pairs.
openlibrary/plugins/upstream/models.py:235
Methodset_metadata
(self, itemid, meta)
openlibrary/mocks/mock_ia.py:23
Functionset_share_links
Constructs list share links for social platforms and assigns to view context attribute Args (all required): url (str or unicode) - c
openlibrary/plugins/upstream/utils.py:614
Functionset_spam_domains
(domains: Iterable[str])
openlibrary/plugins/upstream/spamcheck.py:24
Functionset_spam_words
(words: Iterable[str])
openlibrary/plugins/upstream/spamcheck.py:19
Functionsetup
(markdownit)
openlibrary/components/lit/html-block.js:118
Functionsetup
(config)
openlibrary/core/vendors.py:43
Functionsetup
Initializes this module from openlibrary config.
openlibrary/core/lending.py:83
Functionsetup
Initializes this module from openlibrary config.
openlibrary/core/ia.py:24
Functionsetup
()
openlibrary/olbase/events.py:23
Functionsetup
()
openlibrary/plugins/upstream/merge_authors.py:349
Functionsetup
()
openlibrary/plugins/upstream/covers.py:24
Functionsetup
Do required initialization
openlibrary/plugins/upstream/utils.py:1644
Functionsetup
Do required setup.
openlibrary/plugins/upstream/addtag.py:272
Functionsetup
Do required setup.
openlibrary/plugins/upstream/addbook.py:1001
Functionsetup
()
openlibrary/plugins/upstream/models.py:921
Functionsetup
()
openlibrary/plugins/upstream/yearly_reading_goals.py:44
Functionsetup
()
openlibrary/plugins/upstream/edits.py:261
Functionsetup
()
openlibrary/plugins/upstream/checkins.py:160
Functionsetup
()
openlibrary/plugins/upstream/data.py:95
Functionsetup
Placeholder for doing any setup required. This function is called from code.py.
openlibrary/plugins/worksearch/subjects.py:419
Functionsetup
()
openlibrary/plugins/worksearch/bulk_search.py:13
Functionsetup
()
openlibrary/plugins/worksearch/publishers.py:98
Functionsetup
Do required setup.
openlibrary/plugins/worksearch/autocomplete.py:177
Functionsetup
()
openlibrary/plugins/worksearch/languages.py:134
Functionsetup
This is just here to make sure this file is imported. Simply defining the class above as a subclass of delegate.page is enough for it to
openlibrary/plugins/inside/code.py:33
Functionsetup
This is just here to make sure this file is imported. The two add_hook calls above are doing the work
openlibrary/plugins/importapi/code.py:516
Functionsetup
()
openlibrary/plugins/openlibrary/partials.py:553
Functionsetup
()
openlibrary/plugins/openlibrary/authors.py:5
Functionsetup
()
openlibrary/plugins/openlibrary/swagger.py:5
Functionsetup
Installs handlers for various events.
openlibrary/plugins/openlibrary/events.py:28
Functionsetup
()
openlibrary/plugins/openlibrary/pd.py:107
Functionsetup
()
openlibrary/plugins/openlibrary/design.py:100
Functionsetup
()
openlibrary/plugins/openlibrary/sentry.py:8
Functionsetup
()
openlibrary/plugins/openlibrary/home.py:338
Functionsetup
()
openlibrary/plugins/openlibrary/bulk_tag.py:83
Functionsetup
()
openlibrary/plugins/openlibrary/lists.py:1070
← previousnext →4,701–4,800 of 6,179, ranked by callers