Skip to main content

Module to simplify usage of WeedFS in python.

Project description

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

PyWeed

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.3.zip (11.6 kB view details)

Uploaded Source

File details

Details for the file pyweed-0.3.3.zip.

File metadata

  • Download URL: pyweed-0.3.3.zip
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyweed-0.3.3.zip
Algorithm Hash digest
SHA256 88afdc081cb1c74ab413004f70560ca914b755b9b646c65682e0b8a99ea3260f
MD5 b1743cd6901fdb29bd63c5bacda48684
BLAKE2b-256 c65f4f27b3bed8be63ff56c4f4c17ccf3b839f73f8df062ccd430a90e9d175d7

See more details on using hashes here.

Supported by

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