Skip to main content

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


## Run tests

```bash
poetry run pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unified_fs-0.0.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unified_fs-0.0.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

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

Hashes for unified_fs-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8628ea01fff2ee495ddebe1922d66d8d3d76d6b43fcdf34a0bb62e620d09f15a
MD5 d1a249d4b7480b32eb47fc883795a7c4
BLAKE2b-256 de12785e48bd3a68fe90cafae6a9fca858e873ee0d90dee03f250417a5c2625f

See more details on using hashes here.

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

Hashes for unified_fs-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c881ef6b66069ac9a5ef53d1d81f0614e3ec0c9cf35283f7e9c08149c022f170
MD5 045a0b98953d02adae16ace61eda5759
BLAKE2b-256 fc5b9ddf54a12da23d8c64e3f8c9369b880f51268248605a12422abda1bebf71

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page