Skip to main content

Img2Url-Api for images hosting

Project description

Img2Url-API

API for image hosting eg. www.img2url.site

#Example:

import

from ImgUploader import ImgUploader

init

url = "http://www.vitz.usermd.net"
user_key = "LXJdKWdqR2UEfaOcgLdAupYlFXY"
sec_key = "KMEXnv5PTvmevfIsZbv5Igo7Guc"
img_uploader = ImgUploader(url, user_key, sec_key)

upload

for i in range(100):
print(i)
img_uploader.post_image("test.jpg")

get

img = img_uploader.get_image(107)
print(img)

get all

imgs = img_uploader.get_images()
print(imgs)

remove

print(img_uploader.remove_image(109))

removel all

print(img_uploader.remove_all())

Project details


Download files

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

Source Distribution

Img2UrlApi-0.2.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

Img2UrlApi-0.2-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file Img2UrlApi-0.2.tar.gz.

File metadata

  • Download URL: Img2UrlApi-0.2.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.5

File hashes

Hashes for Img2UrlApi-0.2.tar.gz
Algorithm Hash digest
SHA256 c55bf6da9e22b2e5938efa4b7505c40d2fcf2551c7e3f1406e50baf3ff65eaeb
MD5 25a7eb9f03421791b172c4712ad46889
BLAKE2b-256 10b3efac2c46ed10ae6d0f7fd227bef44f25904f32ce41f50965b5092127a201

See more details on using hashes here.

File details

Details for the file Img2UrlApi-0.2-py3-none-any.whl.

File metadata

  • Download URL: Img2UrlApi-0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.5

File hashes

Hashes for Img2UrlApi-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a2e8a16cd45b74db24c2e7609b1196ffc9b1e722a5ab6eaa244a3ef2e0abde54
MD5 15328f1b74564c15d5fc4ec90831b9fe
BLAKE2b-256 1ba4cf9abf5be15d283aa078800ca89312ab031a7406efad6e99681572141d43

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page