Upload image
Project description
Python Casim
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
- Free software: MIT license
- Documentation: https://py-casim.readthedocs.io.
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
1.0.0 (2020-07-22)
- Stable release
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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py-casim-1.0.0.tar.gz
(2.1 MB
view hashes)
Built Distribution
Close
Hashes for py_casim-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12b2e9aa1fbd861c0d225ca0e80b49ca9cb065139ac99a9074a4d367587b59a3 |
|
MD5 | bc432ebbe0c96cc02c0e46ac7ab51b4b |
|
BLAKE2b-256 | 776968f7f4d0ece4b68e13d12a736d2c0db6883a15d198334f63a5de0e4801cc |