Skip to main content

Upload image

Project description

Python Casim

PyPI Build Status Documentation Status codecov Codacy Badge Requirements Status

Python package and cli to upload image on Casimages.

In python project

from py_casim import Casim

c = Casim("my_image.jpg")

link = c.get_link()

print(link)

To resize an image :

from py_casim import Casim

c = Casim("my_image.jpg", resize=640)

link = c.get_link()

print(link)

To get another url/code return :

from py_casim import Casim

c = Casim("my_image.jpg", resize=640)

link = c.get_share_code(3)  # return HTML code

See the doc for details.

From command line

foo@bar:~$ py_casim my_image.jpg
https://nsa40.casimages.com/img/xxxxxxxxxxxxxxx.png

or with options :

foo@bar:~$ py_casim --size 640 my_image.jpg
https://nsa40.casimages.com/img/xxxxxxxxxxxxxxx.png

Features

  • upload image and get his url
  • python package (import) OR command line tool

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

Cookiecutter: https://github.com/audreyr/cookiecutter

audreyr/cookiecutter-pypackage: https://github.com/audreyr/cookiecutter-pypackage

History

0.2.0 (2020-02-28)

  • Better Doc

0.1.0 (2020-02-16)

  • Configure Travis CI
  • First release on PyPI.

Project details


Release history Release notifications

Download files

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

Files for py-casim, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size py_casim-0.2.0-py2.py3-none-any.whl (6.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size py_casim-0.2.0.tar.gz (2.1 MB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page