MCPcopy Create free account

hub / github.com/internetarchive/openlibrary / functions

Functions6,179 in github.com/internetarchive/openlibrary

Functionsetup
This function is called from the main application startup routine to set things up.
openlibrary/plugins/openlibrary/stats.py:305
Functionsetup
()
openlibrary/plugins/openlibrary/borrow_home.py:56
Functionsetup
Basic startup status for the server
openlibrary/plugins/openlibrary/status.py:567
Functionsetup
()
openlibrary/plugins/admin/graphs.py:79
Functionsetup
()
openlibrary/admin/code.py:29
Functionsetup_batch_db
()
openlibrary/tests/core/test_imports.py:166
Methodsetup_class
(cls)
openlibrary/tests/core/test_db.py:87
Methodsetup_class
(cls)
openlibrary/tests/core/test_db.py:246
Methodsetup_class
(cls)
openlibrary/tests/core/test_db.py:375
Methodsetup_class
(cls)
openlibrary/tests/core/test_db.py:453
Methodsetup_class
(cls)
openlibrary/tests/solr/test_update.py:111
Methodsetup_context
Set up RequestContextVars with specific values for this test class.
openlibrary/tests/core/test_lending.py:41
Methodsetup_context
Auto-use fixture to set up request context for all tests.
openlibrary/tests/core/test_i18n.py:30
Methodsetup_context
Auto-use fixture to set up request context for all tests.
openlibrary/plugins/openlibrary/tests/test_home.py:25
Functionsetup_contextvars
Processor that sets up context variables for the entire request lifecycle. This ensures RequestContextVars are available during template renderin
openlibrary/plugins/openlibrary/code.py:63
Functionsetup_database
Setup the database. This must be called before using any other functions in this module.
openlibrary/data/db.py:46
Functionsetup_db
These tests have to run as the openlibrary user.
openlibrary/coverstore/tests/test_webapp.py:15
Functionsetup_db
()
openlibrary/tests/core/test_acquisitions.py:31
Functionsetup_db_config
Set up empty database configuration for all tests to prevent db_parameters errors. This fixture is required for tests that use `create_site(
openlibrary/conftest.py:50
Functionsetup_item_db
()
openlibrary/tests/core/test_imports.py:97
Functionsetup_load_data
(mock_site)
openlibrary/catalog/add_book/tests/test_add_book.py:1700
Functionsetup_memcache
Setup the memcached servers. This must be called along with setup_database, if memcached servers are used in the system.
openlibrary/data/db.py:55
Methodsetup_method
(self, method)
scripts/tests/test_copydocs.py:69
Methodsetup_method
(self, method)
openlibrary/utils/tests/test_processors.py:11
Methodsetup_method
(self, method)
openlibrary/coverstore/tests/test_webapp.py:56
Methodsetup_method
(self, method)
openlibrary/tests/core/test_db.py:99
Methodsetup_method
(self)
openlibrary/tests/core/test_db.py:253
Methodsetup_method
(self)
openlibrary/tests/core/test_db.py:380
Methodsetup_method
(self)
openlibrary/tests/core/test_db.py:458
Methodsetup_method
(self, method)
openlibrary/plugins/upstream/tests/test_models.py:19
Methodsetup_method
(self, method)
openlibrary/plugins/upstream/tests/test_models.py:105
Methodsetup_method
(self, method)
openlibrary/plugins/upstream/tests/test_models.py:147
Methodsetup_method
(self, method)
openlibrary/plugins/upstream/tests/test_account.py:59
Methodsetup_method
(self)
openlibrary/plugins/upstream/tests/test_account.py:313
Methodsetup_method
(self, method)
openlibrary/plugins/upstream/tests/test_merge_authors.py:161
Methodsetup_method
(self, method)
openlibrary/plugins/upstream/tests/test_merge_authors.py:226
Methodsetup_method
(self, method)
openlibrary/plugins/upstream/tests/test_addbook.py:29
Methodsetup_method
(self)
openlibrary/plugins/upstream/tests/test_checkins.py:64
Methodsetup_method
(self)
openlibrary/plugins/openlibrary/tests/test_verification.py:13
Functionsetup_module
(mod)
openlibrary/plugins/upstream/tests/test_merge_authors.py:18
Methodshort_commit
(self)
openlibrary/plugins/openlibrary/status.py:300
Functionshort_lcc_to_sortable_lcc
(lcc)
openlibrary/components/LibraryExplorer/utils/lcc.js:17
Functionshort_len
(lcc: str)
openlibrary/utils/lcc.py:213
Methodshort_pull_latest
(self)
openlibrary/plugins/openlibrary/status.py:304
Methodshow
* Shows this date display.
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/CheckInComponents.js:450
FunctionshowToast
(content, options = {})
openlibrary/components/lit/OlToastRegion.js:190
Functionshutdown_handler
(signum, frame)
openlibrary/utils/shutdown.py:8
Functionsingle_thing_skeleton
Returns number of things of `type` added between `start` and `end`. `type` is partially applied for admin__[work, edition, user, author, list].
openlibrary/admin/numbers.py:50
Methodsolr_key
(self)
openlibrary/book_providers.py:196
Methodsolr_key
(self)
openlibrary/book_providers.py:297
Methodsolr_key
(self)
openlibrary/book_providers.py:574
Functionsort_dump
Sort the given dump based on key.
openlibrary/data/dump.py:138
Functionsortable_lcc_to_short_lcc
(lcc)
openlibrary/components/LibraryExplorer/utils/lcc.js:38
Functionsorted_split_semicolon
>>> sorted_split_semicolon("z;c;x;a;y;b") ['a', 'b', 'c', 'x', 'y', 'z']
openlibrary/tests/solr/updater/test_work.py:24
Methodsortfn
(sortitem)
openlibrary/plugins/books/readlinks.py:156
Methodsource_records
(self)
scripts/providers/import_wikisource.py:301
Functionsplit_dump
Split dump into authors, editions, works, redirects, and other.
openlibrary/data/dump.py:215
Methodspoofed_generic_carousel
(*args, **kwargs)
openlibrary/plugins/openlibrary/tests/test_home.py:115
Functionsprintf
Handy utility for string replacements. >>> sprintf('hello %s', 'python') 'hello python' >>> sprintf('hello %(name)s', name='python')
openlibrary/core/helpers.py:162
Methodsql
(self, engine)
openlibrary/utils/schema.py:212
Methodsql
(self, engine)
openlibrary/utils/schema.py:220
Methodsql
(self, engine)
openlibrary/utils/schema.py:308
Methodsql
(self, engine)
openlibrary/utils/schema.py:345
Methodsquare
(x)
openlibrary/tests/core/test_cache.py:41
Methodsquare
Returns square x.
openlibrary/tests/core/test_cache.py:107
Methodstatic_path
(self, path)
openlibrary/coverstore/tests/test_webapp.py:82
Functionstats_hook
web.py unload hook to add X-OL-Stats header. Also, send stats to graphite using statsd
openlibrary/plugins/openlibrary/stats.py:61
Methodstatus_matched
(key)
openlibrary/plugins/importapi/code.py:507
Methodstep
()
openlibrary/components/lit/OlCarousel.js:434
FunctionstopEvent
()
openlibrary/components/lit/html-block.js:92
Methodstore_put_many
(self, sitename, datajson)
openlibrary/plugins/openlibrary/connection.py:397
Methodsubject
(name, prefix)
openlibrary/plugins/books/dynlinks.py:250
Functionsubject_json
( request: Request, key: Annotated[str, Path()], params: Annotated[BaseSubjectRequestParams, Depen
openlibrary/fastapi/subjects.py:17
Functionsubject_name_to_key
(subject: str, prefix="")
openlibrary/plugins/upstream/utils.py:1616
FunctionsubmitCreateAccountForm
()
openlibrary/plugins/openlibrary/js/signup.js:24
MethodsubmitGroup
()
openlibrary/components/BarcodeScanner/utils/classes.js:80
Methodsubtitle
(self)
openlibrary/solr/updater/edition.py:142
Methodsubtitle
(self)
openlibrary/solr/updater/work.py:347
Methodsummary
(cls)
openlibrary/core/booknotes.py:13
Methodsummary
(cls)
openlibrary/core/yearly_reading_goals.py:13
Methodsummary
(cls)
openlibrary/core/ratings.py:27
Methodsummary
(cls)
openlibrary/core/observations.py:730
Methodsummary
(cls)
openlibrary/core/bookshelves.py:41
Methodsync_f
(x)
openlibrary/tests/core/test_cache.py:213
Methodt
(date)
openlibrary/core/processors/invalidation.py:86
MethodtakeNext
* @param {Parameters<TFunc>} args
openlibrary/components/BarcodeScanner/utils/classes.js:89
Methodteardown_class
(cls)
openlibrary/tests/core/test_db.py:94
Methodteardown_method
(self, method)
openlibrary/tests/core/test_cache.py:97
Methodteardown_method
(self)
openlibrary/tests/core/test_db.py:110
Methodteardown_method
(self)
openlibrary/tests/core/test_db.py:260
Methodteardown_method
(self)
openlibrary/tests/core/test_db.py:384
Methodteardown_method
(self)
openlibrary/tests/core/test_db.py:462
Methodteardown_method
(self)
openlibrary/plugins/upstream/tests/test_account.py:327
Methodteardown_method
(self)
openlibrary/plugins/openlibrary/tests/test_verification.py:36
FunctiontestLuceneSyntax
(pattern, string)
openlibrary/components/LibraryExplorer/utils.js:53
Functiontest_MockSite
()
openlibrary/tests/core/test_processors.py:39
Functiontest_MockSite
()
openlibrary/plugins/upstream/tests/test_merge_authors.py:68
Methodtest_about_template
(self, monkeypatch, render_template)
openlibrary/plugins/openlibrary/tests/test_home.py:47
Methodtest_accepts_list_json
Should JSON-serialize list input.
openlibrary/tests/fastapi/test_models.py:76
Methodtest_accepts_string_json
Should accept pre-serialized JSON string in addition to dict.
openlibrary/tests/fastapi/test_models.py:56
← previousnext →4,801–4,900 of 6,179, ranked by callers