New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

rustfs

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rustfs

pipPyPI
Version
0.1.3
Maintainers
1

Rust Filesystem

import pandas as pd
from rustfs import RustFileSystem

df = pd.DataFrame({"name": ["Tom", "Joseph"], "age": [20, 22]})
df.to_parquet("s3://my-s3-bucket/df.parquet", storage_options={"access_key_id": "minio", "secret_access_key":"miniostorage", "endpoint": "http://localhost:30002"})


rfs = RustS3FileSystem(access_key_id="minio", secret_access_key="miniostorage", endpoint="http://localhost:30002", allow_http=True)
from rustfs import RustFileSystem

rfs = RustFileSystem(access_key_id="minio", secret_access_key="miniostorage", endpoint="http://localhost:30002", allow_http=True)
fh = rfs.open("s3://my-s3-bucket/test.txt", "wb")

This is me and troy discussing things

with open("s3://bucket/one_tb.file", "rb") as reader:
    with rustfs.open("s3://bucket/one_tb.copy", "wb") as writer:
        # rust writer needs to accept BinaryIO
        writer.write(reader)


with rfsopen("/local/one_tb.file", "rb") as reader:
    with rfsopen("s3://bucket/one_tb.copy", "wb") as writer:
        while True:
            b = reader.read(10)
            if not b:
                break
            writer.write(b)


with rustfs.open(""s3://bucket/one_tb.copy", "rb") as reader:
    reader.read()

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts