Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

A Girder plugin to add some server-side tools that work with resource paths.

Features

  • Download by path.

    GET /resource/path/download/<resource path> will download the collection, user, folder, item, or file. If there is a single file within a parent object, the file will be downloaded directly. If there are multiple files, a zip file will be downloaded.

  • Redirect by path.

    GET, PUT, POST, DELETE /resource/path/redirect/<resource path>[/<path components>] will redirect to the appropriate model route for the last identifiable Girder model within the route.

    Since only routes that the user has permission for can be accessed, this can have strange repercussions if the resource path has components that look like route paths. For instance, PUT /resource/path/redirect/user/User/Public/ItemA/metadata will either modify an item’s metadata OR alter a file named metadata within the item.

    Also, redirecting has a significant overhead compared to accessing a route by model and id, as the resource path must be validated and checked for permissions.

  • Browse files via path.

    A GET /files endpoint is added at the server’s root (not under the /api/v1 route). This responds much like an ftp server, providing HTML listings of available resources (based on the current user). If the path is a single-file item or a file, then the appropriate file is returned. For instance /files/user/User/Public/ would list folders and items within the user’s Public folder, while /files/user/User/Public/ItemA/File1 will download the specified file.

Metadata

Release files for girder-resource-path-tools 1.0.1.dev2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for girder-resource-path-tools 1.0.1.dev2
File Size Uploaded
girder-resource-path-tools-1.0.1.dev2.zip 13.7 kB Details

Release files / girder-resource-path-tools-1.0.1.dev2.zip

Download URL girder-resource-path-tools-1.0.1.dev2.zip
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
bf8add50659ef9fe69c6b6c41485863bc2be5c9c32ebce23cd60b3a41307f82f
BLAKE2b-256 checksum
How to use checksums
ca360d03112209416d1ddc038fee4d3c4b879b2fa5eadd58925df6d1e10dad0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.0

Release history Release notifications | RSS feed

This release

1.0.1.dev2 This release

1 release file

0.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page