Migration Guide¶
Upgrading to version 2.x¶
The RSC released an entirely new REST API in 2018, necessitating a number of changes to ChemSpiPy. Where possible, backwards compatibility has been maintained, but many methods are deprecated and some have been removed entirely.
ChemSpider Object¶
Instantiate the
ChemSpiderwith a requiredapi_keyparameter instead of the optionalsecurity_tokenparameter.Deprecated methods:
get_databases→get_datasources()get_extended_compound_info→get_details()get_extended_compound_info_list→get_details_batch()get_extended_mol_compound_info_list→get_details_batch()get_record_mol→get_mol()async_simple_search→filter_name()async_simple_search_ordered→filter_name()get_async_search_status→filter_status()get_async_search_status_and_count→filter_status()get_async_search_result→filter_results()get_async_search_result_part→filter_results()get_compound_info→get_details()get_compound_thumbnail→get_image()simple_search→search()
Removed methods:
get_original_molget_all_spectra_infoget_spectrum_infoget_compound_spectra_infoget_spectra_info_list
Compound Object¶
Non-standard InChI and InChIKey are no longer available. All are now ‘standard’. Deprecated properties:
Removed properties:
xlogpalogpmol_3dmol_raw
Spectrum Object¶
Spectrumobject has been removed entirely.