Skip to main content
Help us improve Python packaging – donate today!

Python module to communicate with Weed-FS

Project Description

https://travis-ci.org/utek/pyweed.svg?branch=master

PyWeed

Class to simplify communication with WeedFS

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

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

Release history Release notifications

History Node

1.0.0

History Node

1.0.0b2

History Node

1.0.0b1

History Node

0.5.2.dev1

History Node

0.5.2.dev0

History Node

0.5.1

History Node

0.5.0

History Node

0.4.0

History Node

0.4.dev4

History Node

0.4.dev3

History Node

0.4.dev2

History Node

0.4.dev1

History Node

0.4.dev0

History Node

0.3.5

History Node

0.3.3

History Node

0.3.2

This version
History Node

0.3.1

History Node

0.3.0

History Node

0.2.0

History Node

0.1.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pyweed-0.3.1.zip (7.6 kB) Copy SHA256 hash SHA256 Source None Apr 28, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page