Sean Turner
09/26/2022, 7:42 PMRemoteFileSystem
.
rfs = RemoteFileSystem(basepath="<s3://bucket-name/some/path/on/bucket>")
cfg = rfs.read_path("base_config.yaml")
I end up with cfg
being a coroutine
. I imagine this returns bytes but there aren't any helper methods and it's not clear how I'm supposed to proceed? I am interested in reading this file into memory.Nathaniel Russell
09/26/2022, 7:45 PMcfg = asyncio.run(rfs.read_path("base_config.yaml"))
Zanie
09/26/2022, 7:46 PMsync_compatible
annotation since 2.4.2Sean Turner
09/26/2022, 7:52 PMRemoteFileSystem.read_path
was never awaited.
Never really done async await especially in python though. I know go concurrency
cfg = rfs.read_path("base_config.yaml")
my_yaml = await(cfg)