Closed charlottekostelic closed 6 months ago
MetadataSession
bib_match
bib_get_classification
holdings_set_with_bib
holdings_unset_with_bib
bib_create
bib_replace
bib_validate
lhr_create
lhr_delete
lhr_get
lhr_replace
lbd_create
lbd_delete
lbd_get
lbd_replace
holdings_get_codes
get_brief_bib
brief_bibs_get
get_full_bib
bib_get
holding_get_status
holdings_get_current
holding_set
holdings_set
holding_unset
holdings_unset
search_brief_bib_other_editions
brief_bibs_get_other_editions
search_brief_bibs
brief_bibs_search
search_current_control_numbers
bib_get_current_oclc_number
search_general_holdings
summary_holdings_search
search_shared_print_holdings
shared_print_holdings_search
WorldcatAccessToken
scopes
TypeError
token_expires_at
datetime
datetime.utcnow()
ValueError
WorldcatAuthorizationError
InvalidOclcNumber
pytest
pytest.ini
pyproject.toml
AttributeError
Query.prepared_request
PreparedRequest
principalID
principalIDNS
_split_into_legal_volume
WorldcatSessionError
WorldcatSession
Changelog
[1.0.0] - (3/26/2024)
Added
MetadataSession
methods to support new functionality released in Metadata API 2.0bib_match
bib_get_classification
holdings_set_with_bib
andholdings_unset_with_bib
MetadataSession
methods to support existing Metadata API functionalitybib_create
bib_replace
bib_validate
lhr_create
lhr_delete
lhr_get
lhr_replace
lbd_create
lbd_delete
lbd_get
lbd_replace
holdings_get_codes
Changed
MetadataSession
methods that have been renamed and updated (replacing existing functionality in Bookops-Worldcat):get_brief_bib
is nowbrief_bibs_get
get_full_bib
is nowbib_get
holding_get_status
is nowholdings_get_current
holding_set
is nowholdings_set
holding_unset
is nowholdings_unset
search_brief_bib_other_editions
is nowbrief_bibs_get_other_editions
search_brief_bibs
is nowbrief_bibs_search
search_current_control_numbers
is nowbib_get_current_oclc_number
search_general_holdings
is nowsummary_holdings_search
search_shared_print_holdings
is nowshared_print_holdings_search
WorldcatAccessToken
scopes
arg now only accepts strings. ATypeError
is raised ifscopes
arg is passed a listtoken_expires_at
attribute is now an awaredatetime
object (change made due todatetime.utcnow()
deprecation)TypeError
andValueError
replaceWorldcatAuthorizationError
whenWorldcatAccessToken
is passed an invalid arg.MetadataSession
now raisesInvalidOclcNumber
exception when invalid OCLC identifiers are givenpytest
configuration moved frompytest.ini
topyproject.toml
MetadataSession
methodsFixed
AttributeError
changed toTypeError
if arg passed toQuery.prepared_request
is not aPreparedRequest
MetadataSession
have been changed to camel case to be consisted with Metadata API documentationRemoved
principalID
andprincipalIDNS
as args forWorldcatAccessToken
_split_into_legal_volume
removed fromMetadataSession
; aValueError
is now raised if a method is passed too many oclcNumbersDeprecated
WorldcatSessionError
TypeError
orValueError
inWorldcatSession