This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Unofficial uploader to pixhost.org image sharing site.

Project Description

Unofficial Python 3.2+ upload client for pixhost.org image sharing website.

Usage

import pixhostuploader as pixhost

uploaded = pixhost.upload('image.jpg')

print(uploaded)

Uploader returns 3 URLs for each image: thumbnail, full size image and a its page on pixhost.org.

{
    'thumb_image': '...',
    'full_size_image': '...',
    'page_url': '...',
}

You can also upload multiple images at once.

images = [
    'image.jpg',
    'another_image.jpg',
]
uploaded = pixhost.upload(images)

Uploader then returns a list of URLs for each uploaded image.

[
    {
        'thumb_image': '...',
        'full_size_image': '...',
        'page_url': '...',
    }, {
        'thumb_image': '...',
        'full_size_image': '...',
        'page_url': '...',
    }
]

Maximum image size on pixhost.org is 10 MB so if you try to upload a larger file the upload function throws TooLargeImageFormat exception.

Also in case the upload fails for some reason (upload page doesn’t return 200 code) UploadFailed is thrown.

Release History

Release History

This version
History Node

1.0.10

History Node

1.0.9

History Node

1.0.8

History Node

1.0.7

History Node

1.0.6

History Node

1.0.5

History Node

1.0.4

History Node

1.0.3

History Node

1.0.2

History Node

1.0.1

History Node

1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pixhostuploader-1.0.10-py3-none-any.whl (4.4 kB) Copy SHA256 Checksum SHA256 3.4 Wheel May 6, 2015
pixhostuploader-1.0.10.tar.gz (3.4 kB) Copy SHA256 Checksum SHA256 Source May 6, 2015

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