unified_fs
Project description
unified_fs
A unified file system interface for Python. This package provides a unified interface for interacting with the file system, regardless of the underlying file system. This allows you to write code that works with both local and remote file systems without modification.
Installation
pip install unified-fs
Usage
from file_system import FileSystem
fs = FileSystem()
# List files in a directory
files = fs.listdir('s3://my-bucket/my-folder')
print(files)
# Read a file
data = fs.read('s3://my-bucket/my-folder/my-file.txt')
print(data)
# Write a file
fs.write('s3://my-bucket/my-folder/my-file.txt', 'Hello, world!')
# Delete a file
fs.delete('s3://my-bucket/my-folder/my-file.txt')
Supported File Systems
- Local file system
- Amazon S3
- Google Cloud Storage
- Azure Blob Storage
- FTP
- SFTP
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
Versioning
We use SemVer for versioning. For the versions available, see the [tags on this repository](
Authors
- Balakrishna Maduru - Initial work - [balakrishnamaduru@gmail.com]
## Run tests
```bash
poetry run pytest
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file unified_fs-0.0.1.tar.gz.
File metadata
- Download URL: unified_fs-0.0.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.0 Darwin/23.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8628ea01fff2ee495ddebe1922d66d8d3d76d6b43fcdf34a0bb62e620d09f15a
|
|
| MD5 |
d1a249d4b7480b32eb47fc883795a7c4
|
|
| BLAKE2b-256 |
de12785e48bd3a68fe90cafae6a9fca858e873ee0d90dee03f250417a5c2625f
|
File details
Details for the file unified_fs-0.0.1-py3-none-any.whl.
File metadata
- Download URL: unified_fs-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.0 Darwin/23.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c881ef6b66069ac9a5ef53d1d81f0614e3ec0c9cf35283f7e9c08149c022f170
|
|
| MD5 |
045a0b98953d02adae16ace61eda5759
|
|
| BLAKE2b-256 |
fc5b9ddf54a12da23d8c64e3f8c9369b880f51268248605a12422abda1bebf71
|