This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

This library provides an async FDFS client for tornado.

QuickStart

install using pip:

$ pip install fdfs-tornado

Basic Usage

init a client

use tracker_ip and tracker_port to initialize the FDFS Client. Create a single client for a specific case.

from fdfs_tornado.client import makeclient

AsyncFDFSClient = makeclient(tracker_ip, tracker_port)
client = AsyncFDFSClient()

Note

the client will not create any connection before upload or download actions.

upload a file

To upload a file. First open the file in binary mode, and get the size, those are required.

from tornado.ioloop import IOLoop
ioloop = IOLoop.instance()

client = AsyncFDFSClient()
with open(filename, 'rb') as f:
    file_size = os.stat(filename).st_size
    future = client.upload(f, file_size)
    future.add_done_callback(lambda _: ioloop.close())
    ioloop.start()

    ret = future.result()
Release History

Release History

0.1a1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
fdfs-tornado-0.1a1.tar.gz (4.2 kB) Copy SHA256 Checksum SHA256 Source Jun 28, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development 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