Skip to main content

FreeImageHost

Unofficial wrapper for the freeimagehost website api

Install

$ python3 -m pip install freeimagehost

Example

from imagehost import ImageHost

cl = ImageHost('api_key...')

#local image
image = cl.upload(
    'image.png'
)

#url image
image2 = cl.upload(
    'https://example.com/image.png',
    'url'
)

#base64 image
image3 = cl.upload(
    'b64 string...',
    'b64'
)

print(image['image']['url'])
print(image2['image']['url'])
print(image3['image']['url'])

Asyncio Example

import asyncio
from imagehost.aio import ImageHost

async def main():
    cl = ImageHost('api_key....')
    
    #local image
    image = await cl.upload(
        'image.png'
    )
    
    #url image
    image2 = await cl.upload(
        'https://example.com/image.png',
        'url'
    )
    
    #base64 image
    image3 = await cl.upload(
        'b64 string...',
        'b64'
    )
    
    print(image['image']['url'])
    print(image2['image']['url'])
    print(image3['image']['url'])


asyncio.run(main())

Release files for freeimagehost 1.2

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

Source distribution (sdist)

Source distribution for freeimagehost 1.2
File Size Uploaded
freeimagehost-1.2.tar.gz 3.3 kB Details

Built distribution (wheel)

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

Total release size: 7.8 kB

Release files / freeimagehost-1.2.tar.gz

Download URL freeimagehost-1.2.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5c103b82bbe0057fa24d5d0a3d9ef11105b57e34cf79c1e1583d63d30c1c2474
BLAKE2b-256 checksum
How to use checksums
3988e28ce49784fdac8bdeac8c0f567ef245d17f0a4ed62dce563298068b053c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0

Release files / freeimagehost-1.2-py3-none-any.whl

Download URL freeimagehost-1.2-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0ae400966e9e3de7fcf9735e458097ab4de640157b450676a584b21fa5914765
BLAKE2b-256 checksum
How to use checksums
d066fb496065ea6bec9b0f2416d58b2300be490abc3d0568235a0ae9d3b3651b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0

Release history Release notifications | RSS feed

This release

1.2 This release

2 release files

1.1

2 release files

1.0

2 release files

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