MCPcopy Create free account

hub / github.com/internetarchive/openlibrary / functions

Functions6,179 in github.com/internetarchive/openlibrary

↓ 1 callersFunctionget_list_seeds
(list_key)
scripts/copydocs.py:292
↓ 1 callersFunctionget_lists_async
(keys: list[str])
openlibrary/plugins/openlibrary/lists.py:1164
↓ 1 callersMethodget_loan_count
(self)
openlibrary/plugins/upstream/models.py:762
↓ 1 callersMethodget_loan_for
Returns the loan object for given ocaid. Returns None if this user hasn't borrowed the given book.
openlibrary/core/models.py:1084
↓ 1 callersFunctionget_loans
(user)
openlibrary/plugins/upstream/borrow.py:373
↓ 1 callersFunctionget_location_and_publisher
Parses locations and publisher names out of Internet Archive metadata `publisher` strings. For use when there is no MARC record. Returns
openlibrary/plugins/upstream/utils.py:1549
↓ 1 callersFunctionget_many
(keys)
scripts/copydocs.py:182
↓ 1 callersMethodget_many
(self, sitename, data)
openlibrary/plugins/openlibrary/connection.py:69
↓ 1 callersFunctionget_marc_record_from_ia
Takes IA identifiers and optional IA metadata and returns MARC record instance. 08/2018: currently called by openlibrary/plugins/importapi/co
openlibrary/catalog/get_ia.py:30
↓ 1 callersFunctionget_memcache
()
openlibrary/coverstore/oldb.py:31
↓ 1 callersFunctionget_memcache
Returns memcache client created from infobase configuration.
openlibrary/olbase/events.py:129
↓ 1 callersMethodget_memcache_client
(self)
openlibrary/plugins/ol_infobase.py:379
↓ 1 callersFunctionget_message_from_template
(template_name: str, name: str, args: tuple[(Any, ...)])
openlibrary/plugins/upstream/utils.py:267
↓ 1 callersMethodget_metadata
(self, identifier: str)
openlibrary/solr/data_provider.py:180
↓ 1 callersFunctionget_metadata_direct
Fetches metadata by querying the archive.org metadata API, without local caching. :param bool cache: if false, requests uncached metadata fro
openlibrary/core/ia.py:89
↓ 1 callersMethodget_metadata_provider
(self, provider_name: str)
openlibrary/plugins/importapi/import_ui.py:238
↓ 1 callersFunctionget_missed_isbn_bib_keys
Return a Generator[str, None, None] with all ISBN bib_keys not in `found_records`.
openlibrary/plugins/books/dynlinks.py:523
↓ 1 callersFunctionget_missing_fields
Return missing fields, if any.
openlibrary/catalog/utils/__init__.py:408
↓ 1 callersMethodget_multi
(self, keys)
openlibrary/utils/olmemcache.py:28
↓ 1 callersMethodget_multi
(self, keys: list[str])
openlibrary/core/cache.py:322
↓ 1 callersMethodget_multi_choice
Searches for the given type in the observations object, and returns the type's 'multi_choice' value. return: The multi_choice value f
openlibrary/core/observations.py:949
↓ 1 callersFunctionget_names_to_try
(lang: dict)
openlibrary/plugins/upstream/utils.py:704
↓ 1 callersMethodget_native_type
(self, type)
openlibrary/utils/schema.py:55
↓ 1 callersFunctionget_next_page
Returns list of issues and optional url for next page
scripts/gh_scripts/issue_comment_bot.py:67
↓ 1 callersMethodget_notes
(self, limit: int = RESULTS_PER_PAGE, page: int = 1)
openlibrary/plugins/upstream/mybooks.py:622
↓ 1 callersMethodget_notes_grouped_by_work
Returns a list of book notes records, which are grouped by work_id. The 'notes' field contains a JSON string consisting of 'edition_i
openlibrary/core/booknotes.py:131
↓ 1 callersFunctionget_observation_metrics
Returns a dictionary of observation statistics for the given work. Statistics will be used to populate a book's "Reader Observations" compon
openlibrary/core/observations.py:621
↓ 1 callersMethodget_observations
(self, limit: int = RESULTS_PER_PAGE, page: int = 1)
openlibrary/plugins/upstream/mybooks.py:633
↓ 1 callersMethodget_observations_for_work
(cls, work_id)
openlibrary/core/observations.py:914
↓ 1 callersMethodget_observations_grouped_by_work
Returns a list of records which contain a work id and a JSON string containing all of the observations for that work_id.
openlibrary/core/observations.py:920
↓ 1 callersFunctionget_ol
(servername: str)
scripts/manage-imports.py:21
↓ 1 callersMethodget_olid
(self)
openlibrary/plugins/upstream/models.py:346
↓ 1 callersFunctionget_osp_dump_location
Get whether the location of the Open Syllabus project counts dump
openlibrary/utils/open_syllabus_project.py:13
↓ 1 callersFunctionget_pd_dashboard_data
()
openlibrary/plugins/openlibrary/pd.py:78
↓ 1 callersFunctionget_pd_org
Returns the name of the organization associated with the given identifier. Falls back to vtmas_disabilityresources if no match is found.
openlibrary/plugins/openlibrary/pd.py:35
↓ 1 callersMethodget_pending
These are zips on disk which are presumably incomplete or have not yet been uploaded
openlibrary/coverstore/archive.py:142
↓ 1 callersFunctionget_populated_languages
Get the languages for which we have many available ebooks, in MARC21 format See https://openlibrary.org/languages
openlibrary/plugins/upstream/utils.py:1157
↓ 1 callersMethodget_position
(self)
openlibrary/core/waitinglist.py:65
↓ 1 callersFunctionget_price_data_async
(isbn: str, asin: str)
openlibrary/plugins/openlibrary/api.py:333
↓ 1 callersMethodget_products
:param asins: One or more ASINs. Max 10 per call. :param serialize: If True, run each product through serialize() before returning.
openlibrary/core/vendors.py:416
↓ 1 callersFunctionget_promise_items_url
>>> get_promise_items_url('2022-12-01', '2022-12-31') 'https://archive.org/advancedsearch.php?q=collection:bookdonationsfrombetterworldbooks+
scripts/promise_batch_imports.py:167
↓ 1 callersFunctionget_property_id
(name)
openlibrary/coverstore/oldb.py:39
↓ 1 callersFunctionget_property_id
(type, name)
openlibrary/plugins/ol_infobase.py:121
↓ 1 callersMethodget_publish_year
(self)
openlibrary/core/models.py:264
↓ 1 callersMethodget_queryparams
Returns query params to be passed to the image URL for rendering this graph.
openlibrary/plugins/admin/graphs.py:38
↓ 1 callersFunctionget_random_borrowable_ebook_keys
(count: int, language: str | None = None)
openlibrary/plugins/openlibrary/home.py:128
↓ 1 callersMethodget_rating_stats
(self)
openlibrary/core/models.py:607
↓ 1 callersMethodget_ratings_summary
(work_id)
openlibrary/plugins/openlibrary/api.py:58
↓ 1 callersFunctionget_readable_path
Returns real_path and readable_path from the given path. The patterns is a list of (path_regex, type, property_name, default_value) tuples.
openlibrary/core/processors/readableurls.py:118
↓ 1 callersFunctionget_reading_goals
(year=None)
openlibrary/plugins/upstream/yearly_reading_goals.py:13
↓ 1 callersMethodget_readitem
(self, iaid, orig_iaid, orig_ekey, wkey, status, publish_date)
openlibrary/plugins/books/readlinks.py:50
↓ 1 callersFunctionget_real_ips_file_path
Construct the real IPs file path.
scripts/obfi/reveal.py:44
↓ 1 callersMethodget_recap
(self)
openlibrary/plugins/upstream/account.py:347
↓ 1 callersMethodget_recentchanges
(self, limit: int = 100, offset: int = 0)
openlibrary/accounts/model.py:301
↓ 1 callersMethodget_redirects
(cls, day, batch_size=1000, batch=0)
openlibrary/core/models.py:776
↓ 1 callersFunctionget_references
(doc, result=None)
scripts/copydocs.py:115
↓ 1 callersFunctionget_references
(data, result=None)
openlibrary/plugins/openlibrary/code.py:180
↓ 1 callersMethodget_request_label
(self)
scripts/monitoring/solr_logs_monitor.py:61
↓ 1 callersMethodget_results
( self, req: ListSearchRequest, request_label: Literal["LIST_SEARCH", "LIST_SEARCH_API
openlibrary/plugins/worksearch/code.py:1006
↓ 1 callersMethodget_results
( self, q, request_label: Literal["SUBJECT_SEARCH", "SUBJECT_SEARCH_API"], off
openlibrary/plugins/worksearch/code.py:1034
↓ 1 callersMethodget_results
( self, q, request_label: Literal["AUTHOR_SEARCH", "AUTHOR_SEARCH_API"], offse
openlibrary/plugins/worksearch/code.py:1076
↓ 1 callersMethodget_seed
Get the day's seed.
scripts/obfi/hide.py:29
↓ 1 callersMethodget_seed
(self)
openlibrary/core/models.py:1211
↓ 1 callersFunctionget_seed_count
* @returns {number} count of number of seed books in a list
openlibrary/plugins/openlibrary/js/lists/ListViewBody.js:66
↓ 1 callersMethodget_service_status
Returns the stats of the service `service`
openlibrary/plugins/admin/services.py:21
↓ 1 callersFunctionget_solr_keys
()
openlibrary/book_providers.py:846
↓ 1 callersFunctionget_solr_next
Get whether this is the next version of solr; ie new schema configs/fields, etc.
openlibrary/solr/utils.py:55
↓ 1 callersMethodget_solr_query_term
(self)
openlibrary/core/lists/model.py:511
↓ 1 callersFunctionget_solr_works_async
(work_keys: set[str], fields: Iterable[str] | None = None, editions=False)
openlibrary/plugins/worksearch/code.py:223
↓ 1 callersFunctionget_sort_key
Returns a sort key used to group urls in 10K batches. >>> get_sort_key("/authors/OL123456A") 'authors_0012'
scripts/sitemaps/sitemap.py:129
↓ 1 callersMethodget_sorted_editions
Get this work's editions sorted by publication year :param list[str] keys: ensure keys included in fetched editions
openlibrary/plugins/upstream/models.py:597
↓ 1 callersFunctionget_spam_domains
()
openlibrary/plugins/upstream/spamcheck.py:14
↓ 1 callersFunctionget_spam_words
()
openlibrary/plugins/upstream/spamcheck.py:9
↓ 1 callersMethodget_subfield_values
(self, want)
openlibrary/catalog/marc/tests/test_marc.py:29
↓ 1 callersMethodget_subject_async
( self, key, details=False, offset=0, limit=DEFAULT_RESULTS, s
openlibrary/plugins/worksearch/subjects.py:199
↓ 1 callersMethodget_subject_links
Returns all the subjects as link objects. Each link is a web.storage object with title and key fields. The type should be one of subj
openlibrary/core/models.py:653
↓ 1 callersMethodget_subject_url
(self, subject: SeedSubjectString)
openlibrary/core/lists/model.py:561
↓ 1 callersMethodget_summary
Returns the summary of counts for past n days. Summary can be either sum or average depending on the type of stats. This is used to f
openlibrary/core/admin.py:55
↓ 1 callersMethodget_table_of_contents
(self)
openlibrary/plugins/upstream/models.py:329
↓ 1 callersMethodget_tag_lines
Returns a list of selected fields, (tag, field contents) :param want list: List of str, 3 digit MARC field ids :rtype: list
openlibrary/catalog/marc/marc_binary.py:145
↓ 1 callersFunctionget_tag_types
()
openlibrary/plugins/upstream/addtag.py:17
↓ 1 callersMethodget_tar_filename
Returns tarfile:offset:size for given coverid.
openlibrary/coverstore/code.py:357
↓ 1 callersFunctionget_tar_index
(tarindex, size)
openlibrary/coverstore/code.py:380
↓ 1 callersFunctionget_tarindex_path
(index, size)
openlibrary/coverstore/code.py:388
↓ 1 callersFunctionget_template_paths
Return all templates with the given suffix under ``templates/`` and ``macros/``. Mirrors the directory layout used by the Templetor compile test
openlibrary/tests/test_templates.py:13
↓ 1 callersFunctionget_total_by_olid
Retrieves the total number of times a book with the given Open Library ID (OLID) has been assigned in syllabi from the Open Syllabus Project
openlibrary/utils/open_syllabus_project.py:26
↓ 1 callersMethodget_trending_data
Fetches the record's information from Solr. :param work_key: type-prefixed key, eg /works/OL1W
openlibrary/solr/data_provider.py:264
↓ 1 callersMethodget_type
(self)
openlibrary/utils/form.py:50
↓ 1 callersMethodget_type
(self, doc)
openlibrary/plugins/ol_infobase.py:559
↓ 1 callersMethodget_unarchived_covers
(self, limit, **kwargs)
openlibrary/coverstore/archive.py:247
↓ 1 callersFunctionget_untracked_files
Returns a set of all currently untracked files with specified extension(s).
openlibrary/i18n/__init__.py:45
↓ 1 callersMethodget_url_suffix
Returns the additional suffix that is added to the key to get the URL of the page. Models of Edition, Work etc. should extend this to return
openlibrary/core/models.py:190
↓ 1 callersFunctionget_user_lists
(seed_info)
openlibrary/plugins/openlibrary/lists.py:261
↓ 1 callersMethodget_users_logged_books
Returns LoggedBooksData containing Reading Log database records for books that the user has logged. Also allows filtering/searching t
openlibrary/core/bookshelves.py:340
↓ 1 callersMethodget_users_rating
(self, username: str)
openlibrary/core/models.py:545
↓ 1 callersMethodget_users_read_status
(self, username)
openlibrary/core/models.py:556
↓ 1 callersMethodget_users_read_status_of_works
(cls, username: str, work_ids: list[str])
openlibrary/core/bookshelves.py:613
↓ 1 callersMethodget_users_settings
(self)
openlibrary/plugins/upstream/models.py:748
↓ 1 callersMethodget_waiting_loan_for
:param str or None ocaid: edition ocaid :rtype: dict (e.g. {position: number})
openlibrary/core/models.py:1096
↓ 1 callersMethodget_waitinglist
Returns list of records for all the books the user is currently waiting for.
openlibrary/core/models.py:1075
← previousnext →2,101–2,200 of 6,179, ranked by callers