Skip to content

Commit

Permalink
Cache querying and bulk skeleton endoints (#261)
Browse files Browse the repository at this point in the history
* Compressed SWC format option.

* lint/ruff corrections

* Bulk skeleton generation.

* New skeleton cache query endpoint

* Ruff corrections

* Trivial change

* Removed debugging code. Labeled protected functions.

* Ruff correctdions.

* Ruff corrections.

* Ruff changes that make the code definitively HARDER to read. Is this really what we want?

* Converted print statements to logging calls.

* Server version checking for new API endpoints.

* Ruff conformity.

* Added SkeletonClient.skeletons_exist().

* Ruff changes.
  • Loading branch information
kebwi authored Nov 4, 2024
1 parent 75aa098 commit f364376
Show file tree
Hide file tree
Showing 2 changed files with 315 additions and 22 deletions.
17 changes: 17 additions & 0 deletions caveclient/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,30 @@
skeletonservice_endpoints_v1 = {
"get_version": skeleton_common + "/version",
"skeleton_info": skeleton_v1 + "/{datastack_name}/precomputed/skeleton/info",
"bulk_skeleton_info": skeleton_v1 + "/{datastack_name}/bulk/skeleton/info",
"skeleton_info_versioned": skeleton_v1
+ "/{datastack_name}/precomputed/skeleton/info/{skvn}",
"get_cache_contents_via_ridprefixes": skeleton_v1
+ "/{datastack_name}/precomputed/skeleton/query_cache/{root_id_prefixes}/{limit}",
"get_cache_contents_via_skvn_ridprefixes": skeleton_v1
+ "/{datastack_name}/precomputed/skeleton/query_cache/{skeleton_version}/{root_id_prefixes}/{limit}",
"skeletons_exist_via_rids": skeleton_v1
+ "/{datastack_name}/precomputed/skeleton/exists/{root_ids}",
"skeletons_exist_via_skvn_rids": skeleton_v1
+ "/{datastack_name}/precomputed/skeleton/exists/{skeleton_version}/{root_ids}",
"get_skeleton_via_rid": skeleton_v1
+ "/{datastack_name}/precomputed/skeleton/{root_id}",
"get_skeleton_via_skvn_rid": skeleton_v1
+ "/{datastack_name}/precomputed/skeleton/{skeleton_version}/{root_id}",
"get_skeleton_via_skvn_rid_fmt": skeleton_v1
+ "/{datastack_name}/precomputed/skeleton/{skeleton_version}/{root_id}/{output_format}",
"get_bulk_skeletons_via_rids": skeleton_v1
+ "/{datastack_name}/bulk/get_skeletons/{output_format}/{gen_missing_sks}/{root_ids}",
"get_bulk_skeletons_via_skvn_rids": skeleton_v1
+ "/{datastack_name}/bulk/get_skeletons/{skeleton_version}/{output_format}/{gen_missing_sks}/{root_ids}",
"gen_bulk_skeletons_via_rids": skeleton_v1
+ "/{datastack_name}/bulk/gen_skeletons/{root_ids}",
"gen_bulk_skeletons_via_skvn_rids": skeleton_v1
+ "/{datastack_name}/bulk/gen_skeletons/{skeleton_version}/{root_ids}",
}
skeletonservice_api_versions = {1: skeletonservice_endpoints_v1}
Loading

0 comments on commit f364376

Please sign in to comment.