Skip to main content
Pre-release

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

fs_basespace

Readonly pyfilesystem2 interface to Illumina Basespace

Installing

pip install fs-basespace

Requires python3 version of basespace-python-sdk which can be installed from the develop branch.

pip install 'git+https://github.com/basespace/basespace-python-sdk#egg=BaseSpacePy-0.3&subdirectory=src'

Opening FS Basespace

With class constructor

from fs_basespace import BASESPACEFS
basespacefs = BASESPACEFS("/projects/{project-id}/appresults/{result-id}/files/{file-id}",
                          client_id = "{client-key}",
                          client_secret = "{client-secret}",
                          access_token = "{access_token}",
                          server_name = "{server_name} optional")

Default server name for Illumina is https://api.basespace.illumina.com/

With connection string

import fs
basespacefs = fs.open_fs("basespace://{clientKey}:{clientSecret}:{appToken}@{server}")

Advanced connection strings

Access to server root directory:

basespace://{clientKey}:{clientSecret}:{appToken}@{server}

Accessing projects:

basespace://{clientKey}:{clientSecret}:{appToken}@{server}!/projects/{projectId}

Accessing project sample files:

basespace://{clientKey}:{clientSecret}:{appToken}@{server}!/projects/{projectId}/samples/{sampleId}/files/{fileId}

Accessing project appResult files (bam, vcf, …):

basespace://{clientKey}:{clientSecret}:{appToken}@{server}!/projects/{projectId}/appresults/{resultId}/files/{fileId}

Downloading files

with open("local_file", "wb") as local_file:
    basespacefs.download("path/to/remote/file/id", local_file)

Uploading files

Only readonly access to Basespace is implemented in this package. No upload possible yet.

Metadata

Release files for fs-basespace 1.2.0.dev2024102000

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

Source distribution (sdist)

Source distribution for fs-basespace 1.2.0.dev2024102000
File Size Uploaded Provenance Actions
fs-basespace-1.2.0.dev2024102000.tar.gz 12.5 kB Without provenance Details for fs-basespace-1.2.0.dev2024102000.tar.gz

Release files / fs-basespace-1.2.0.dev2024102000.tar.gz

Download URL fs-basespace-1.2.0.dev2024102000.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
cbf89c9bce7ee90010103df679d58e6613ef003984de1ac4c2fda8ee24d8084e
BLAKE2b-256 checksum
How to use checksums
4112a9842a2a58723d9b6c6342b52bb7027e66ced759ea151ee960b6d5e04371
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Security for fs-basespace 1.2.0.dev2024102000

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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