Skip to main content

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 files for pixhostuploader 1.0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pixhostuploader 1.0.10
File Size Uploaded
pixhostuploader-1.0.10.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pixhostuploader 1.0.10
File Interpreter ABI Platform
pixhostuploader-1.0.10-py3-none-any.whl Python 3 none any Details

Total release size: 7.8 kB

Release files / pixhostuploader-1.0.10.tar.gz

Download URL pixhostuploader-1.0.10.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
03413ec5360a0d6fdabf0d6265771467de000e26d17aea2e1b2799ba8a392b26
BLAKE2b-256 checksum
How to use checksums
6e4479b55fd698248f128bc39537c954a1de312d1e146a2f1a8585993829a3e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pixhostuploader-1.0.10-py3-none-any.whl

Download URL pixhostuploader-1.0.10-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bbc0358e72906fe22443428f2a9b0bf9ce040c2bd282263db0ecaf8c661fe18c
BLAKE2b-256 checksum
How to use checksums
4dde6febec22b49944a4efdca6e66ef12e8f9142a8c203ba55986cd9073a7d60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.10 This release

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page