Skip to content

read records stored in AWS S3  #268

Done

Description

@entest-hai

Can we add a function to read records stored in AWS S3 like Pandas?

Activity

  1. Dubrzr commented on Dec 16, 2020

    @Dubrzr
    Collaborator

    This issue is linked to this one : #73

    You should be able to open the file on any filesystem (local, remote S3, HDFS...) and read the contents of it using wfdb-python, instead of implementing a connection to these different filesystems directly into wfdb-python :)

  2. Lucas-Mc commented on Apr 27, 2021

    @Lucas-Mc
    Contributor

    Hey guys thanks for the suggestion! I can get this to work by doing this so I'll make a pull request shortly:

    >>> import s3fs
    >>> fs = s3fs.S3FileSystem(anon=True)
    >>> with fs.open('s3://BUCKET_NAME/100.hea') as f: print(f.readlines())
    ... 
    [b'# unnecessary comment\n', b'100 2 360 650000\r\n', b'100.dat 212 200 11 1024 995 -22131 0 MLII\n',
    b'\r\n', b'100.dat 212 200 11 1024 1011 20052 0 V5\r\n', b'# 69 M 1085 1629 x1\r\n',
    b'# Aldomet, Inderal\r\n']
    
  3. added a commit that references this issue on Apr 29, 2021
  4. tompollard commented on Nov 23, 2026

    @tompollard
    Member

    Supported: records and annotations can be read from S3 with an s3:// path, such as wfdb.rdrecord("s3://bucket/folder/100"), with s3fs installed. See "Cloud Storage Access" in https://wfdb.readthedocs.io/en/latest/io.html.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions