Skip to main content

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


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 hashes)

Uploaded Source

Supported by

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