Name | freeimagehost JSON |
Version |
1.2
JSON |
| download |
home_page | |
Summary | An unofficial wrapper for the freeimagehost website api. |
upload_time | 2023-11-09 23:57:26 |
maintainer | |
docs_url | None |
author | samuelmarc |
requires_python | >=3.8 |
license | MIT |
keywords |
image
upload
uploader
imageuploader
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# FreeImageHost
Unofficial wrapper for the freeimagehost website api
# Install
```bash
$ python3 -m pip install freeimagehost
```
## Example
```python
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
```python
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())
```
Raw data
{
"_id": null,
"home_page": "",
"name": "freeimagehost",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "image,upload,uploader,imageuploader",
"author": "samuelmarc",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/39/88/e28ce49784fdac8bdeac8c0f567ef245d17f0a4ed62dce563298068b053c/freeimagehost-1.2.tar.gz",
"platform": null,
"description": "# FreeImageHost\r\n\r\nUnofficial wrapper for the freeimagehost website api\r\n\r\n# Install\r\n```bash\r\n$ python3 -m pip install freeimagehost\r\n```\r\n\r\n## Example\r\n```python\r\nfrom imagehost import ImageHost\r\n\r\ncl = ImageHost('api_key...')\r\n\r\n#local image\r\nimage = cl.upload(\r\n 'image.png'\r\n)\r\n\r\n#url image\r\nimage2 = cl.upload(\r\n 'https://example.com/image.png',\r\n 'url'\r\n)\r\n\r\n#base64 image\r\nimage3 = cl.upload(\r\n 'b64 string...',\r\n 'b64'\r\n)\r\n\r\nprint(image['image']['url'])\r\nprint(image2['image']['url'])\r\nprint(image3['image']['url'])\r\n```\r\n\r\n## Asyncio Example\r\n```python\r\nimport asyncio\r\nfrom imagehost.aio import ImageHost\r\n\r\nasync def main():\r\n cl = ImageHost('api_key....')\r\n \r\n #local image\r\n image = await cl.upload(\r\n 'image.png'\r\n )\r\n \r\n #url image\r\n image2 = await cl.upload(\r\n 'https://example.com/image.png',\r\n 'url'\r\n )\r\n \r\n #base64 image\r\n image3 = await cl.upload(\r\n 'b64 string...',\r\n 'b64'\r\n )\r\n \r\n print(image['image']['url'])\r\n print(image2['image']['url'])\r\n print(image3['image']['url'])\r\n\r\n\r\nasyncio.run(main())\r\n```\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "An unofficial wrapper for the freeimagehost website api.",
"version": "1.2",
"project_urls": null,
"split_keywords": [
"image",
"upload",
"uploader",
"imageuploader"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d066fb496065ea6bec9b0f2416d58b2300be490abc3d0568235a0ae9d3b3651b",
"md5": "966683fce4b00fabd3398fe6c8ecf84f",
"sha256": "0ae400966e9e3de7fcf9735e458097ab4de640157b450676a584b21fa5914765"
},
"downloads": -1,
"filename": "freeimagehost-1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "966683fce4b00fabd3398fe6c8ecf84f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 4451,
"upload_time": "2023-11-09T23:57:22",
"upload_time_iso_8601": "2023-11-09T23:57:22.759823Z",
"url": "https://files.pythonhosted.org/packages/d0/66/fb496065ea6bec9b0f2416d58b2300be490abc3d0568235a0ae9d3b3651b/freeimagehost-1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3988e28ce49784fdac8bdeac8c0f567ef245d17f0a4ed62dce563298068b053c",
"md5": "665a3a1786e0b7081751d88af2e21dec",
"sha256": "5c103b82bbe0057fa24d5d0a3d9ef11105b57e34cf79c1e1583d63d30c1c2474"
},
"downloads": -1,
"filename": "freeimagehost-1.2.tar.gz",
"has_sig": false,
"md5_digest": "665a3a1786e0b7081751d88af2e21dec",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 3313,
"upload_time": "2023-11-09T23:57:26",
"upload_time_iso_8601": "2023-11-09T23:57:26.231468Z",
"url": "https://files.pythonhosted.org/packages/39/88/e28ce49784fdac8bdeac8c0f567ef245d17f0a4ed62dce563298068b053c/freeimagehost-1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-09 23:57:26",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "freeimagehost"
}