Module to simplify usage of WeedFS in python.
Project description
Class to simplify communication with Weed-FS
Installation
From PyPI:
pip install pyweed
Tests
Install dependencies:
pip install -r test_requirements.txt
Run tests:
python setup.py tests
Or using nose:
nosetests
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.5.zip
(11.9 kB
view details)
File details
Details for the file pyweed-0.3.5.zip.
File metadata
- Download URL: pyweed-0.3.5.zip
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1612c7459c08b05ae2bc0339f192f70bd9c4f86029c8ffd5ab90930bf36378d9
|
|
| MD5 |
9bbb9dc0a171fa8fde89364a78e4428f
|
|
| BLAKE2b-256 |
45d36f241a1348d2ff87b9cf0a2df9a7b3ae796b00cd85084613d62f81ee4e9c
|