Skip to content

Commit

Permalink
add higher limits everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
fontanka16 committed Feb 10, 2022
1 parent 2076024 commit 8cbd330
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 17 deletions.
50 changes: 35 additions & 15 deletions folioclient/FolioClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,52 +44,60 @@ def current_user(self):
@cached_property
def identifier_types(self):
return list(
self.folio_get_all("/identifier-types", "identifierTypes", self.cql_all)
self.folio_get_all(
"/identifier-types", "identifierTypes", self.cql_all, 1000
)
)

@cached_property
def statistical_codes(self):
return list(
self.folio_get_all("/statistical-codes", "statisticalCodes", self.cql_all)
self.folio_get_all(
"/statistical-codes", "statisticalCodes", self.cql_all, 1000
)
)

@cached_property
def contributor_types(self):
return list(
self.folio_get_all("/contributor-types", "contributorTypes", self.cql_all)
self.folio_get_all(
"/contributor-types", "contributorTypes", self.cql_all, 1000
)
)

@cached_property
def contrib_name_types(self):
return list(
self.folio_get_all(
"/contributor-name-types", "contributorNameTypes", self.cql_all
"/contributor-name-types", "contributorNameTypes", self.cql_all, 1000
)
)

@cached_property
def instance_types(self):
return list(
self.folio_get_all("/instance-types", "instanceTypes", self.cql_all)
self.folio_get_all("/instance-types", "instanceTypes", self.cql_all, 1000)
)

@cached_property
def instance_formats(self):
return list(
self.folio_get_all("/instance-formats", "instanceFormats", self.cql_all)
self.folio_get_all(
"/instance-formats", "instanceFormats", self.cql_all, 1000
)
)

@cached_property
def alt_title_types(self):
return list(
self.folio_get_all(
"/alternative-title-types", "alternativeTitleTypes", self.cql_all
"/alternative-title-types", "alternativeTitleTypes", self.cql_all, 1000
)
)

@cached_property
def locations(self):
return list(self.folio_get_all("/locations", "locations", self.cql_all))
return list(self.folio_get_all("/locations", "locations", self.cql_all, 1000))

@cached_property
def electronic_access_relationships(self):
Expand All @@ -98,55 +106,67 @@ def electronic_access_relationships(self):
"/electronic-access-relationships",
"electronicAccessRelationships",
self.cql_all,
1000,
)
)

@cached_property
def instance_note_types(self):
return list(
self.folio_get_all(
"/instance-note-types", "instanceNoteTypes", self.cql_all
"/instance-note-types", "instanceNoteTypes", self.cql_all, 1000
)
)

@cached_property
def class_types(self):
return list(
self.folio_get_all(
"/classification-types", "classificationTypes", self.cql_all
"/classification-types", "classificationTypes", self.cql_all, 1000
)
)

@cached_property
def organizations(self):
return list(
self.folio_get_all(
"/organizations-storage/organizations", "organizations", self.cql_all
"/organizations-storage/organizations",
"organizations",
self.cql_all,
1000,
)
)

@cached_property
def holding_note_types(self):
return list(
self.folio_get_all(
"/holdings-note-types", "holdingsNoteTypes", self.cql_all
"/holdings-note-types", "holdingsNoteTypes", self.cql_all, 1000
)
)

@cached_property
def call_number_types(self):
return list(
self.folio_get_all("/call-number-types", "callNumberTypes", self.cql_all)
self.folio_get_all(
"/call-number-types", "callNumberTypes", self.cql_all, 1000
)
)

@cached_property
def holdings_types(self):
return list(self.folio.folio_get_all("/holdings-types", "holdingsTypes"))
return list(
self.folio.folio_get_all(
"/holdings-types", "holdingsTypes", self.cql_all, 1000
)
)

@cached_property
def modes_of_issuance(self):
return list(
self.folio_get_all("/modes-of-issuance", "issuanceModes", self.cql_all)
self.folio_get_all(
"/modes-of-issuance", "issuanceModes", self.cql_all, 1000
)
)

def login(self):
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
setup(
name="folioclient",
packages=["folioclient"],
version="0.37",
version="0.38",
license="MIT",
long_description="",
long_description_content_type="text/markdown",
description="A simple wrapper over the FOLIO LMS system API:s",
author="Theodor Tolstoy",
author_email="pypi.teddes@tolstoy.se",
url="https://github.com/FOLIO-FSE/FolioClient/",
download_url="https://github.com/FOLIO-FSE/FolioClient/archive/v_037.tar.gz",
download_url="https://github.com/FOLIO-FSE/FolioClient/archive/v_038.tar.gz",
keywords=["FOLIO", "FOLIO_LSP", "OKAPI", "API Wrapper"],
install_requires=["requests"], # I get to this in a second
classifiers=[
Expand Down

0 comments on commit 8cbd330

Please sign in to comment.