Python module to communicate with Weed-FS
Project description
PyWeed
Class to simplify communication with WeedFS
Installation
From PyPI
pip install pyweed
Usage
Upload file to weedFS
from pyweed import WeedFS
# File upload
w = WeedFS("localhost", 9333) # weed-fs master address and port
fid = w.upload_file("n.txt") # path to file
# Get file url
file_url = w.get_file_url(fid)
# Delete file
res = w.delete_file(fid)
# res is boolean (True if file was deleted)
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
pyweed-0.3.0.zip
(7.2 kB
view details)
File details
Details for the file pyweed-0.3.0.zip.
File metadata
- Download URL: pyweed-0.3.0.zip
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cab2316784a02915ab6504d008b100244274f9f43c2abe1c594c1e884f3ec40f
|
|
| MD5 |
3a1d0c442b06a0da4b97182a377d439f
|
|
| BLAKE2b-256 |
99ee0a42d55e82bf64e03218d6e10e12dec4aa8bb5a75d94c301f104452ac6fd
|