elabapi-python 5.2.0__tar.gz → 5.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/PKG-INFO +1 -1
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/README.md +10 -1
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/__init__.py +6 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/__init__.py +1 -0
- elabapi_python-5.2.3/elabapi_python/api/compounds_api.py +401 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api_client.py +1 -1
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/configuration.py +1 -1
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/__init__.py +5 -0
- elabapi_python-5.2.3/elabapi_python/models/compound.py +1848 -0
- elabapi_python-5.2.3/elabapi_python/models/compound_create_request.py +613 -0
- elabapi_python-5.2.3/elabapi_python/models/compound_duplicate_request.py +173 -0
- elabapi_python-5.2.3/elabapi_python/models/compounds_body.py +84 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/entity.py +27 -27
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/entity_template.py +27 -27
- elabapi_python-5.2.3/elabapi_python/models/one_of_compound_duplicate_request.py +84 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/upload.py +3 -3
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python.egg-info/PKG-INFO +1 -1
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python.egg-info/SOURCES.txt +12 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/setup.py +1 -1
- elabapi_python-5.2.3/test/test_compound.py +39 -0
- elabapi_python-5.2.3/test/test_compound_create_request.py +39 -0
- elabapi_python-5.2.3/test/test_compound_duplicate_request.py +39 -0
- elabapi_python-5.2.3/test/test_compounds_api.py +61 -0
- elabapi_python-5.2.3/test/test_compounds_body.py +39 -0
- elabapi_python-5.2.3/test/test_one_of_compound_duplicate_request.py +39 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/api_keys_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/comments_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/config_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/events_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/experiments_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/experiments_categories_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/experiments_status_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/experiments_templates_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/exports_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/extra_fields_keys_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/favorite_tags_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/idps_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/import_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/info_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/items_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/items_types_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/links_to_experiments_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/links_to_items_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/notifications_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/reports_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/resources_status_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/revisions_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/steps_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/tags_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/team_tags_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/teamgroups_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/teams_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/todolist_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/unfinished_steps_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/uploads_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/user_uploads_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/api/users_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/any_ofuploads_subid_body1.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/apikey.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/apikeys_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/comment.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/config.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/entity_editable.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/entity_template_editable.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/event.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/event_id_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/eventid_delta.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/events_id_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/exclusive_edit_mode.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/experiment.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/experiments_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/experiments_id_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/experiments_id_body1.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/experiments_links_subid_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/experiments_templates_id_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/experiments_templates_id_body1.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/export.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/exports_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/extra_fields_keys.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/favtags_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/id.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/id1.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/id2.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/id3.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/id4.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/id_comments_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/id_experiments_categories_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/id_experiments_status_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/id_items_status_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/id_steps_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/id_tags_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/id_tags_body1.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/id_teamgroups_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/id_uploads_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/idp.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/idps_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/idps_id_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/import_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/inline_response200.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/inline_response2001.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/inline_response2002.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/inline_response2003.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/inline_response2003_query_parameters.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/inline_response2004.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/inline_response2005.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/inline_response2006.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/inline_response2007.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/inline_response2008.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/item.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/items_id_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/items_id_body1.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/items_links_subid_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/items_type.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/items_types_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/link.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/metadata.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/metadata_elabftw.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/metadata_elabftw_extra_fields_groups.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/metadata_extra_fields.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/notification.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/revision.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/revisions_subid_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/statuslike.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/step.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/steps_subid_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/tag.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/tags_subid_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/tags_subid_body1.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/team.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/teamgroup.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/teamgroup_users.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/teamgroups_subid_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/teams_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/teams_id_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/todoitem.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/todolist_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/todolist_id_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/unfinished_step.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/unfinished_steps.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/uploads_subid_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/uploads_subid_body1.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/users.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/users_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/users_id_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/models/users_teams.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python/rest.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python.egg-info/dependency_links.txt +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python.egg-info/requires.txt +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/elabapi_python.egg-info/top_level.txt +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/setup.cfg +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/__init__.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_any_ofuploads_subid_body1.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_api_keys_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_apikey.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_apikeys_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_comment.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_comments_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_config.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_config_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_entity.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_entity_editable.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_entity_template.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_entity_template_editable.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_event.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_event_id_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_eventid_delta.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_events_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_events_id_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_exclusive_edit_mode.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_experiment.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_experiments_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_experiments_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_experiments_categories_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_experiments_id_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_experiments_id_body1.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_experiments_links_subid_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_experiments_status_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_experiments_templates_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_experiments_templates_id_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_experiments_templates_id_body1.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_export.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_exports_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_exports_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_extra_fields_keys.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_extra_fields_keys_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_favorite_tags_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_favtags_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_id.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_id1.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_id2.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_id3.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_id4.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_id_comments_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_id_experiments_categories_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_id_experiments_status_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_id_items_status_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_id_steps_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_id_tags_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_id_tags_body1.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_id_teamgroups_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_id_uploads_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_idp.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_idps_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_idps_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_idps_id_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_import_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_import_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_info_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_inline_response200.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_inline_response2001.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_inline_response2002.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_inline_response2003.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_inline_response2003_query_parameters.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_inline_response2004.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_inline_response2005.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_inline_response2006.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_inline_response2007.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_inline_response2008.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_item.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_items_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_items_id_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_items_id_body1.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_items_links_subid_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_items_type.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_items_types_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_items_types_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_link.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_links_to_experiments_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_links_to_items_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_metadata.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_metadata_elabftw.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_metadata_elabftw_extra_fields_groups.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_metadata_extra_fields.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_notification.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_notifications_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_reports_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_resources_status_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_revision.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_revisions_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_revisions_subid_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_statuslike.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_step.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_steps_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_steps_subid_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_tag.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_tags_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_tags_subid_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_tags_subid_body1.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_team.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_team_tags_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_teamgroup.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_teamgroup_users.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_teamgroups_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_teamgroups_subid_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_teams_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_teams_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_teams_id_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_todoitem.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_todolist_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_todolist_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_todolist_id_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_unfinished_step.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_unfinished_steps.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_unfinished_steps_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_upload.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_uploads_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_uploads_subid_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_uploads_subid_body1.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_user_uploads_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_users.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_users_api.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_users_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_users_id_body.py +0 -0
- {elabapi_python-5.2.0 → elabapi_python-5.2.3}/test/test_users_teams.py +0 -0
|
@@ -4,7 +4,7 @@ This document describes all available endpoints and methods for eLabFTW's API ve
|
|
|
4
4
|
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
|
5
5
|
|
|
6
6
|
- API version: 2.0.0
|
|
7
|
-
- Package version: 5.2.
|
|
7
|
+
- Package version: 5.2.3
|
|
8
8
|
- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen
|
|
9
9
|
|
|
10
10
|
## Requirements.
|
|
@@ -114,6 +114,10 @@ Class | Method | HTTP request | Description
|
|
|
114
114
|
*CommentsApi* | [**post_entity_comments**](docs/CommentsApi.md#post_entity_comments) | **POST** /{entity_type}/{id}/comments | Create a comment.
|
|
115
115
|
*CommentsApi* | [**read_entity_comment**](docs/CommentsApi.md#read_entity_comment) | **GET** /{entity_type}/{id}/comments/{subid} | Read a comment of that entity.
|
|
116
116
|
*CommentsApi* | [**read_entity_comments**](docs/CommentsApi.md#read_entity_comments) | **GET** /{entity_type}/{id}/comments | Read all comments of that entity.
|
|
117
|
+
*CompoundsApi* | [**delete_compound**](docs/CompoundsApi.md#delete_compound) | **DELETE** /compounds/{id} | Soft-delete a compound
|
|
118
|
+
*CompoundsApi* | [**get_compound**](docs/CompoundsApi.md#get_compound) | **GET** /compounds/{id} | Get a single compound
|
|
119
|
+
*CompoundsApi* | [**get_compounds**](docs/CompoundsApi.md#get_compounds) | **GET** /compounds | Read compounds
|
|
120
|
+
*CompoundsApi* | [**post_compounds**](docs/CompoundsApi.md#post_compounds) | **POST** /compounds | Create or import a compound
|
|
117
121
|
*ConfigApi* | [**delete_config**](docs/ConfigApi.md#delete_config) | **DELETE** /config | Reset the config to default values
|
|
118
122
|
*ConfigApi* | [**get_config**](docs/ConfigApi.md#get_config) | **GET** /config | Read the config
|
|
119
123
|
*ConfigApi* | [**patch_config**](docs/ConfigApi.md#patch_config) | **PATCH** /config | Modify the config
|
|
@@ -237,6 +241,10 @@ Class | Method | HTTP request | Description
|
|
|
237
241
|
- [Apikey](docs/Apikey.md)
|
|
238
242
|
- [ApikeysBody](docs/ApikeysBody.md)
|
|
239
243
|
- [Comment](docs/Comment.md)
|
|
244
|
+
- [Compound](docs/Compound.md)
|
|
245
|
+
- [CompoundCreateRequest](docs/CompoundCreateRequest.md)
|
|
246
|
+
- [CompoundDuplicateRequest](docs/CompoundDuplicateRequest.md)
|
|
247
|
+
- [CompoundsBody](docs/CompoundsBody.md)
|
|
240
248
|
- [Config](docs/Config.md)
|
|
241
249
|
- [Entity](docs/Entity.md)
|
|
242
250
|
- [EntityEditable](docs/EntityEditable.md)
|
|
@@ -298,6 +306,7 @@ Class | Method | HTTP request | Description
|
|
|
298
306
|
- [MetadataElabftwExtraFieldsGroups](docs/MetadataElabftwExtraFieldsGroups.md)
|
|
299
307
|
- [MetadataExtraFields](docs/MetadataExtraFields.md)
|
|
300
308
|
- [Notification](docs/Notification.md)
|
|
309
|
+
- [OneOfCompoundDuplicateRequest](docs/OneOfCompoundDuplicateRequest.md)
|
|
301
310
|
- [Revision](docs/Revision.md)
|
|
302
311
|
- [RevisionsSubidBody](docs/RevisionsSubidBody.md)
|
|
303
312
|
- [Statuslike](docs/Statuslike.md)
|
|
@@ -17,6 +17,7 @@ from __future__ import absolute_import
|
|
|
17
17
|
# import apis into sdk package
|
|
18
18
|
from elabapi_python.api.api_keys_api import ApiKeysApi
|
|
19
19
|
from elabapi_python.api.comments_api import CommentsApi
|
|
20
|
+
from elabapi_python.api.compounds_api import CompoundsApi
|
|
20
21
|
from elabapi_python.api.config_api import ConfigApi
|
|
21
22
|
from elabapi_python.api.events_api import EventsApi
|
|
22
23
|
from elabapi_python.api.experiments_api import ExperimentsApi
|
|
@@ -55,6 +56,10 @@ from elabapi_python.models.any_ofuploads_subid_body1 import AnyOfuploadsSubidBod
|
|
|
55
56
|
from elabapi_python.models.apikey import Apikey
|
|
56
57
|
from elabapi_python.models.apikeys_body import ApikeysBody
|
|
57
58
|
from elabapi_python.models.comment import Comment
|
|
59
|
+
from elabapi_python.models.compound import Compound
|
|
60
|
+
from elabapi_python.models.compound_create_request import CompoundCreateRequest
|
|
61
|
+
from elabapi_python.models.compound_duplicate_request import CompoundDuplicateRequest
|
|
62
|
+
from elabapi_python.models.compounds_body import CompoundsBody
|
|
58
63
|
from elabapi_python.models.config import Config
|
|
59
64
|
from elabapi_python.models.entity import Entity
|
|
60
65
|
from elabapi_python.models.entity_editable import EntityEditable
|
|
@@ -116,6 +121,7 @@ from elabapi_python.models.metadata_elabftw import MetadataElabftw
|
|
|
116
121
|
from elabapi_python.models.metadata_elabftw_extra_fields_groups import MetadataElabftwExtraFieldsGroups
|
|
117
122
|
from elabapi_python.models.metadata_extra_fields import MetadataExtraFields
|
|
118
123
|
from elabapi_python.models.notification import Notification
|
|
124
|
+
from elabapi_python.models.one_of_compound_duplicate_request import OneOfCompoundDuplicateRequest
|
|
119
125
|
from elabapi_python.models.revision import Revision
|
|
120
126
|
from elabapi_python.models.revisions_subid_body import RevisionsSubidBody
|
|
121
127
|
from elabapi_python.models.statuslike import Statuslike
|
|
@@ -5,6 +5,7 @@ from __future__ import absolute_import
|
|
|
5
5
|
# import apis into api package
|
|
6
6
|
from elabapi_python.api.api_keys_api import ApiKeysApi
|
|
7
7
|
from elabapi_python.api.comments_api import CommentsApi
|
|
8
|
+
from elabapi_python.api.compounds_api import CompoundsApi
|
|
8
9
|
from elabapi_python.api.config_api import ConfigApi
|
|
9
10
|
from elabapi_python.api.events_api import EventsApi
|
|
10
11
|
from elabapi_python.api.experiments_api import ExperimentsApi
|
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
eLabFTW REST API v2 Documentation
|
|
5
|
+
|
|
6
|
+
This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: 2.0.0
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from __future__ import absolute_import
|
|
14
|
+
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
# python 2 and python 3 compatibility library
|
|
18
|
+
import six
|
|
19
|
+
|
|
20
|
+
from elabapi_python.api_client import ApiClient
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class CompoundsApi(object):
|
|
24
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
25
|
+
|
|
26
|
+
Do not edit the class manually.
|
|
27
|
+
Ref: https://github.com/swagger-api/swagger-codegen
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
def __init__(self, api_client=None):
|
|
31
|
+
if api_client is None:
|
|
32
|
+
api_client = ApiClient()
|
|
33
|
+
self.api_client = api_client
|
|
34
|
+
|
|
35
|
+
def delete_compound(self, id, **kwargs): # noqa: E501
|
|
36
|
+
"""Soft-delete a compound # noqa: E501
|
|
37
|
+
|
|
38
|
+
The compound gets marked as deleted. # noqa: E501
|
|
39
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
40
|
+
asynchronous HTTP request, please pass async_req=True
|
|
41
|
+
>>> thread = api.delete_compound(id, async_req=True)
|
|
42
|
+
>>> result = thread.get()
|
|
43
|
+
|
|
44
|
+
:param async_req bool
|
|
45
|
+
:param int id: ID of the compound (required)
|
|
46
|
+
:return: None
|
|
47
|
+
If the method is called asynchronously,
|
|
48
|
+
returns the request thread.
|
|
49
|
+
"""
|
|
50
|
+
kwargs['_return_http_data_only'] = True
|
|
51
|
+
if kwargs.get('async_req'):
|
|
52
|
+
return self.delete_compound_with_http_info(id, **kwargs) # noqa: E501
|
|
53
|
+
else:
|
|
54
|
+
(data) = self.delete_compound_with_http_info(id, **kwargs) # noqa: E501
|
|
55
|
+
return data
|
|
56
|
+
|
|
57
|
+
def delete_compound_with_http_info(self, id, **kwargs): # noqa: E501
|
|
58
|
+
"""Soft-delete a compound # noqa: E501
|
|
59
|
+
|
|
60
|
+
The compound gets marked as deleted. # noqa: E501
|
|
61
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
62
|
+
asynchronous HTTP request, please pass async_req=True
|
|
63
|
+
>>> thread = api.delete_compound_with_http_info(id, async_req=True)
|
|
64
|
+
>>> result = thread.get()
|
|
65
|
+
|
|
66
|
+
:param async_req bool
|
|
67
|
+
:param int id: ID of the compound (required)
|
|
68
|
+
:return: None
|
|
69
|
+
If the method is called asynchronously,
|
|
70
|
+
returns the request thread.
|
|
71
|
+
"""
|
|
72
|
+
|
|
73
|
+
all_params = ['id'] # noqa: E501
|
|
74
|
+
all_params.append('async_req')
|
|
75
|
+
all_params.append('_return_http_data_only')
|
|
76
|
+
all_params.append('_preload_content')
|
|
77
|
+
all_params.append('_request_timeout')
|
|
78
|
+
|
|
79
|
+
params = locals()
|
|
80
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
81
|
+
if key not in all_params:
|
|
82
|
+
raise TypeError(
|
|
83
|
+
"Got an unexpected keyword argument '%s'"
|
|
84
|
+
" to method delete_compound" % key
|
|
85
|
+
)
|
|
86
|
+
params[key] = val
|
|
87
|
+
del params['kwargs']
|
|
88
|
+
# verify the required parameter 'id' is set
|
|
89
|
+
if ('id' not in params or
|
|
90
|
+
params['id'] is None):
|
|
91
|
+
raise ValueError("Missing the required parameter `id` when calling `delete_compound`") # noqa: E501
|
|
92
|
+
|
|
93
|
+
collection_formats = {}
|
|
94
|
+
|
|
95
|
+
path_params = {}
|
|
96
|
+
if 'id' in params:
|
|
97
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
98
|
+
|
|
99
|
+
query_params = []
|
|
100
|
+
|
|
101
|
+
header_params = {}
|
|
102
|
+
|
|
103
|
+
form_params = []
|
|
104
|
+
local_var_files = {}
|
|
105
|
+
|
|
106
|
+
body_params = None
|
|
107
|
+
# Authentication setting
|
|
108
|
+
auth_settings = ['token'] # noqa: E501
|
|
109
|
+
|
|
110
|
+
return self.api_client.call_api(
|
|
111
|
+
'/compounds/{id}', 'DELETE',
|
|
112
|
+
path_params,
|
|
113
|
+
query_params,
|
|
114
|
+
header_params,
|
|
115
|
+
body=body_params,
|
|
116
|
+
post_params=form_params,
|
|
117
|
+
files=local_var_files,
|
|
118
|
+
response_type=None, # noqa: E501
|
|
119
|
+
auth_settings=auth_settings,
|
|
120
|
+
async_req=params.get('async_req'),
|
|
121
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
122
|
+
_preload_content=params.get('_preload_content', True),
|
|
123
|
+
_request_timeout=params.get('_request_timeout'),
|
|
124
|
+
collection_formats=collection_formats)
|
|
125
|
+
|
|
126
|
+
def get_compound(self, id, **kwargs): # noqa: E501
|
|
127
|
+
"""Get a single compound # noqa: E501
|
|
128
|
+
|
|
129
|
+
Retrieve one compound by its ID # noqa: E501
|
|
130
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
131
|
+
asynchronous HTTP request, please pass async_req=True
|
|
132
|
+
>>> thread = api.get_compound(id, async_req=True)
|
|
133
|
+
>>> result = thread.get()
|
|
134
|
+
|
|
135
|
+
:param async_req bool
|
|
136
|
+
:param int id: ID of the compound (required)
|
|
137
|
+
:return: Compound
|
|
138
|
+
If the method is called asynchronously,
|
|
139
|
+
returns the request thread.
|
|
140
|
+
"""
|
|
141
|
+
kwargs['_return_http_data_only'] = True
|
|
142
|
+
if kwargs.get('async_req'):
|
|
143
|
+
return self.get_compound_with_http_info(id, **kwargs) # noqa: E501
|
|
144
|
+
else:
|
|
145
|
+
(data) = self.get_compound_with_http_info(id, **kwargs) # noqa: E501
|
|
146
|
+
return data
|
|
147
|
+
|
|
148
|
+
def get_compound_with_http_info(self, id, **kwargs): # noqa: E501
|
|
149
|
+
"""Get a single compound # noqa: E501
|
|
150
|
+
|
|
151
|
+
Retrieve one compound by its ID # noqa: E501
|
|
152
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
153
|
+
asynchronous HTTP request, please pass async_req=True
|
|
154
|
+
>>> thread = api.get_compound_with_http_info(id, async_req=True)
|
|
155
|
+
>>> result = thread.get()
|
|
156
|
+
|
|
157
|
+
:param async_req bool
|
|
158
|
+
:param int id: ID of the compound (required)
|
|
159
|
+
:return: Compound
|
|
160
|
+
If the method is called asynchronously,
|
|
161
|
+
returns the request thread.
|
|
162
|
+
"""
|
|
163
|
+
|
|
164
|
+
all_params = ['id'] # noqa: E501
|
|
165
|
+
all_params.append('async_req')
|
|
166
|
+
all_params.append('_return_http_data_only')
|
|
167
|
+
all_params.append('_preload_content')
|
|
168
|
+
all_params.append('_request_timeout')
|
|
169
|
+
|
|
170
|
+
params = locals()
|
|
171
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
172
|
+
if key not in all_params:
|
|
173
|
+
raise TypeError(
|
|
174
|
+
"Got an unexpected keyword argument '%s'"
|
|
175
|
+
" to method get_compound" % key
|
|
176
|
+
)
|
|
177
|
+
params[key] = val
|
|
178
|
+
del params['kwargs']
|
|
179
|
+
# verify the required parameter 'id' is set
|
|
180
|
+
if ('id' not in params or
|
|
181
|
+
params['id'] is None):
|
|
182
|
+
raise ValueError("Missing the required parameter `id` when calling `get_compound`") # noqa: E501
|
|
183
|
+
|
|
184
|
+
collection_formats = {}
|
|
185
|
+
|
|
186
|
+
path_params = {}
|
|
187
|
+
if 'id' in params:
|
|
188
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
189
|
+
|
|
190
|
+
query_params = []
|
|
191
|
+
|
|
192
|
+
header_params = {}
|
|
193
|
+
|
|
194
|
+
form_params = []
|
|
195
|
+
local_var_files = {}
|
|
196
|
+
|
|
197
|
+
body_params = None
|
|
198
|
+
# HTTP header `Accept`
|
|
199
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
200
|
+
['application/json']) # noqa: E501
|
|
201
|
+
|
|
202
|
+
# Authentication setting
|
|
203
|
+
auth_settings = ['token'] # noqa: E501
|
|
204
|
+
|
|
205
|
+
return self.api_client.call_api(
|
|
206
|
+
'/compounds/{id}', 'GET',
|
|
207
|
+
path_params,
|
|
208
|
+
query_params,
|
|
209
|
+
header_params,
|
|
210
|
+
body=body_params,
|
|
211
|
+
post_params=form_params,
|
|
212
|
+
files=local_var_files,
|
|
213
|
+
response_type='Compound', # noqa: E501
|
|
214
|
+
auth_settings=auth_settings,
|
|
215
|
+
async_req=params.get('async_req'),
|
|
216
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
217
|
+
_preload_content=params.get('_preload_content', True),
|
|
218
|
+
_request_timeout=params.get('_request_timeout'),
|
|
219
|
+
collection_formats=collection_formats)
|
|
220
|
+
|
|
221
|
+
def get_compounds(self, **kwargs): # noqa: E501
|
|
222
|
+
"""Read compounds # noqa: E501
|
|
223
|
+
|
|
224
|
+
Get a list of compounds # noqa: E501
|
|
225
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
226
|
+
asynchronous HTTP request, please pass async_req=True
|
|
227
|
+
>>> thread = api.get_compounds(async_req=True)
|
|
228
|
+
>>> result = thread.get()
|
|
229
|
+
|
|
230
|
+
:param async_req bool
|
|
231
|
+
:return: list[Compound]
|
|
232
|
+
If the method is called asynchronously,
|
|
233
|
+
returns the request thread.
|
|
234
|
+
"""
|
|
235
|
+
kwargs['_return_http_data_only'] = True
|
|
236
|
+
if kwargs.get('async_req'):
|
|
237
|
+
return self.get_compounds_with_http_info(**kwargs) # noqa: E501
|
|
238
|
+
else:
|
|
239
|
+
(data) = self.get_compounds_with_http_info(**kwargs) # noqa: E501
|
|
240
|
+
return data
|
|
241
|
+
|
|
242
|
+
def get_compounds_with_http_info(self, **kwargs): # noqa: E501
|
|
243
|
+
"""Read compounds # noqa: E501
|
|
244
|
+
|
|
245
|
+
Get a list of compounds # noqa: E501
|
|
246
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
247
|
+
asynchronous HTTP request, please pass async_req=True
|
|
248
|
+
>>> thread = api.get_compounds_with_http_info(async_req=True)
|
|
249
|
+
>>> result = thread.get()
|
|
250
|
+
|
|
251
|
+
:param async_req bool
|
|
252
|
+
:return: list[Compound]
|
|
253
|
+
If the method is called asynchronously,
|
|
254
|
+
returns the request thread.
|
|
255
|
+
"""
|
|
256
|
+
|
|
257
|
+
all_params = [] # noqa: E501
|
|
258
|
+
all_params.append('async_req')
|
|
259
|
+
all_params.append('_return_http_data_only')
|
|
260
|
+
all_params.append('_preload_content')
|
|
261
|
+
all_params.append('_request_timeout')
|
|
262
|
+
|
|
263
|
+
params = locals()
|
|
264
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
265
|
+
if key not in all_params:
|
|
266
|
+
raise TypeError(
|
|
267
|
+
"Got an unexpected keyword argument '%s'"
|
|
268
|
+
" to method get_compounds" % key
|
|
269
|
+
)
|
|
270
|
+
params[key] = val
|
|
271
|
+
del params['kwargs']
|
|
272
|
+
|
|
273
|
+
collection_formats = {}
|
|
274
|
+
|
|
275
|
+
path_params = {}
|
|
276
|
+
|
|
277
|
+
query_params = []
|
|
278
|
+
|
|
279
|
+
header_params = {}
|
|
280
|
+
|
|
281
|
+
form_params = []
|
|
282
|
+
local_var_files = {}
|
|
283
|
+
|
|
284
|
+
body_params = None
|
|
285
|
+
# HTTP header `Accept`
|
|
286
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
287
|
+
['application/json']) # noqa: E501
|
|
288
|
+
|
|
289
|
+
# Authentication setting
|
|
290
|
+
auth_settings = ['token'] # noqa: E501
|
|
291
|
+
|
|
292
|
+
return self.api_client.call_api(
|
|
293
|
+
'/compounds', 'GET',
|
|
294
|
+
path_params,
|
|
295
|
+
query_params,
|
|
296
|
+
header_params,
|
|
297
|
+
body=body_params,
|
|
298
|
+
post_params=form_params,
|
|
299
|
+
files=local_var_files,
|
|
300
|
+
response_type='list[Compound]', # noqa: E501
|
|
301
|
+
auth_settings=auth_settings,
|
|
302
|
+
async_req=params.get('async_req'),
|
|
303
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
304
|
+
_preload_content=params.get('_preload_content', True),
|
|
305
|
+
_request_timeout=params.get('_request_timeout'),
|
|
306
|
+
collection_formats=collection_formats)
|
|
307
|
+
|
|
308
|
+
def post_compounds(self, body, **kwargs): # noqa: E501
|
|
309
|
+
"""Create or import a compound # noqa: E501
|
|
310
|
+
|
|
311
|
+
Add a compound to the database. Add action => duplicate parameter with a CAS or PubChem CID to import from PubChem. If the action parameter is something else, the compound will be created directly. # noqa: E501
|
|
312
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
313
|
+
asynchronous HTTP request, please pass async_req=True
|
|
314
|
+
>>> thread = api.post_compounds(body, async_req=True)
|
|
315
|
+
>>> result = thread.get()
|
|
316
|
+
|
|
317
|
+
:param async_req bool
|
|
318
|
+
:param CompoundsBody body: (required)
|
|
319
|
+
:return: None
|
|
320
|
+
If the method is called asynchronously,
|
|
321
|
+
returns the request thread.
|
|
322
|
+
"""
|
|
323
|
+
kwargs['_return_http_data_only'] = True
|
|
324
|
+
if kwargs.get('async_req'):
|
|
325
|
+
return self.post_compounds_with_http_info(body, **kwargs) # noqa: E501
|
|
326
|
+
else:
|
|
327
|
+
(data) = self.post_compounds_with_http_info(body, **kwargs) # noqa: E501
|
|
328
|
+
return data
|
|
329
|
+
|
|
330
|
+
def post_compounds_with_http_info(self, body, **kwargs): # noqa: E501
|
|
331
|
+
"""Create or import a compound # noqa: E501
|
|
332
|
+
|
|
333
|
+
Add a compound to the database. Add action => duplicate parameter with a CAS or PubChem CID to import from PubChem. If the action parameter is something else, the compound will be created directly. # noqa: E501
|
|
334
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
335
|
+
asynchronous HTTP request, please pass async_req=True
|
|
336
|
+
>>> thread = api.post_compounds_with_http_info(body, async_req=True)
|
|
337
|
+
>>> result = thread.get()
|
|
338
|
+
|
|
339
|
+
:param async_req bool
|
|
340
|
+
:param CompoundsBody body: (required)
|
|
341
|
+
:return: None
|
|
342
|
+
If the method is called asynchronously,
|
|
343
|
+
returns the request thread.
|
|
344
|
+
"""
|
|
345
|
+
|
|
346
|
+
all_params = ['body'] # noqa: E501
|
|
347
|
+
all_params.append('async_req')
|
|
348
|
+
all_params.append('_return_http_data_only')
|
|
349
|
+
all_params.append('_preload_content')
|
|
350
|
+
all_params.append('_request_timeout')
|
|
351
|
+
|
|
352
|
+
params = locals()
|
|
353
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
354
|
+
if key not in all_params:
|
|
355
|
+
raise TypeError(
|
|
356
|
+
"Got an unexpected keyword argument '%s'"
|
|
357
|
+
" to method post_compounds" % key
|
|
358
|
+
)
|
|
359
|
+
params[key] = val
|
|
360
|
+
del params['kwargs']
|
|
361
|
+
# verify the required parameter 'body' is set
|
|
362
|
+
if ('body' not in params or
|
|
363
|
+
params['body'] is None):
|
|
364
|
+
raise ValueError("Missing the required parameter `body` when calling `post_compounds`") # noqa: E501
|
|
365
|
+
|
|
366
|
+
collection_formats = {}
|
|
367
|
+
|
|
368
|
+
path_params = {}
|
|
369
|
+
|
|
370
|
+
query_params = []
|
|
371
|
+
|
|
372
|
+
header_params = {}
|
|
373
|
+
|
|
374
|
+
form_params = []
|
|
375
|
+
local_var_files = {}
|
|
376
|
+
|
|
377
|
+
body_params = None
|
|
378
|
+
if 'body' in params:
|
|
379
|
+
body_params = params['body']
|
|
380
|
+
# HTTP header `Content-Type`
|
|
381
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
382
|
+
['application/json']) # noqa: E501
|
|
383
|
+
|
|
384
|
+
# Authentication setting
|
|
385
|
+
auth_settings = ['token'] # noqa: E501
|
|
386
|
+
|
|
387
|
+
return self.api_client.call_api(
|
|
388
|
+
'/compounds', 'POST',
|
|
389
|
+
path_params,
|
|
390
|
+
query_params,
|
|
391
|
+
header_params,
|
|
392
|
+
body=body_params,
|
|
393
|
+
post_params=form_params,
|
|
394
|
+
files=local_var_files,
|
|
395
|
+
response_type=None, # noqa: E501
|
|
396
|
+
auth_settings=auth_settings,
|
|
397
|
+
async_req=params.get('async_req'),
|
|
398
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
399
|
+
_preload_content=params.get('_preload_content', True),
|
|
400
|
+
_request_timeout=params.get('_request_timeout'),
|
|
401
|
+
collection_formats=collection_formats)
|
|
@@ -72,7 +72,7 @@ class ApiClient(object):
|
|
|
72
72
|
self.default_headers[header_name] = header_value
|
|
73
73
|
self.cookie = cookie
|
|
74
74
|
# Set default User-Agent.
|
|
75
|
-
self.user_agent = 'Swagger-Codegen/5.2.
|
|
75
|
+
self.user_agent = 'Swagger-Codegen/5.2.3/python'
|
|
76
76
|
|
|
77
77
|
def __del__(self):
|
|
78
78
|
self.pool.close()
|
|
@@ -250,5 +250,5 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
|
|
|
250
250
|
"OS: {env}\n"\
|
|
251
251
|
"Python Version: {pyversion}\n"\
|
|
252
252
|
"Version of the API: 2.0.0\n"\
|
|
253
|
-
"SDK Package Version: 5.2.
|
|
253
|
+
"SDK Package Version: 5.2.3".\
|
|
254
254
|
format(env=sys.platform, pyversion=sys.version)
|
|
@@ -18,6 +18,10 @@ from elabapi_python.models.any_ofuploads_subid_body1 import AnyOfuploadsSubidBod
|
|
|
18
18
|
from elabapi_python.models.apikey import Apikey
|
|
19
19
|
from elabapi_python.models.apikeys_body import ApikeysBody
|
|
20
20
|
from elabapi_python.models.comment import Comment
|
|
21
|
+
from elabapi_python.models.compound import Compound
|
|
22
|
+
from elabapi_python.models.compound_create_request import CompoundCreateRequest
|
|
23
|
+
from elabapi_python.models.compound_duplicate_request import CompoundDuplicateRequest
|
|
24
|
+
from elabapi_python.models.compounds_body import CompoundsBody
|
|
21
25
|
from elabapi_python.models.config import Config
|
|
22
26
|
from elabapi_python.models.entity import Entity
|
|
23
27
|
from elabapi_python.models.entity_editable import EntityEditable
|
|
@@ -79,6 +83,7 @@ from elabapi_python.models.metadata_elabftw import MetadataElabftw
|
|
|
79
83
|
from elabapi_python.models.metadata_elabftw_extra_fields_groups import MetadataElabftwExtraFieldsGroups
|
|
80
84
|
from elabapi_python.models.metadata_extra_fields import MetadataExtraFields
|
|
81
85
|
from elabapi_python.models.notification import Notification
|
|
86
|
+
from elabapi_python.models.one_of_compound_duplicate_request import OneOfCompoundDuplicateRequest
|
|
82
87
|
from elabapi_python.models.revision import Revision
|
|
83
88
|
from elabapi_python.models.revisions_subid_body import RevisionsSubidBody
|
|
84
89
|
from elabapi_python.models.statuslike import Statuslike
|