Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

Module to simplify usage of WeedFS in python.

Project Description

Class to simplify communication with Weed-FS

Installation

From PyPI:

pip install pyseaweed

Tests

Install dependencies:

pip install -r test_requirements.txt

Run tests:

python setup.py tests

Or using nose:

nosetests

Note

Functional tests assumes that there is WeedFS master running on localhost:9333 (defaults). If it’s not then there will be errors in tests.

Usage

Upload file to weedFS

from pyseaweed 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)
Release History

Release History

This version
History Node

1.0.0

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting