A single high-level file operations API for both object stores and local file system.
Project description
Core functions are accessed through the Files
class. This is a high-level interface for file operations on your local file system and/or s3 protocol object stores. Internally, appropriate functions will by called based on the type of arguments passed. i.e. s3://
path or /local/path
.
from fileflows import Files
Core functions include create, transfer, copy, move, delete, exists, file_size, list_files, parquet_column_names, df_from_csv, df_from_parquet
.
See core for more details.
Additional functionality specific to s3 protocol object stores can be accessed through the S3
class. See s3 for more details.
from fileflows import S3
Both Files
and S3
take an optional S3Cfg
object as argument (from fileflows import S3Cfg
). S3Cfg
contains parameters for the s3 protocol object store you are working with. If no argument is provided, S3Cfg
will default to environment variables: s3_endpoint_url
(http://localhost:9000 by default), aws_access_key_id
, aws_secret_access_key
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file fileflows-0.2.6-py3-none-any.whl
.
File metadata
- Download URL: fileflows-0.2.6-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 168856c821643d23fd257e8f2c2d465132ed5f15d2b32ddbea8c703eb57e8702 |
|
MD5 | 31b36d50bf9fbcf39f900aab97ca7a49 |
|
BLAKE2b-256 | bd14d3cb4723d83ab40f13010123f2a736a48b61bfa7989bb7f309f435ae0e9f |