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
Dev
There's an alternative to make called invoke (Makefile equivalent is tasks.py)
pip install invoke
inv test
inv lint
inv coverage
inv --list
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.
Metadata
Release files for py-casim 2.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| py-casim-2.0.3.tar.gz | 2.2 MB | Without provenance | Details for py-casim-2.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| py_casim-2.0.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for py_casim-2.0.3-py2.py3-none-any.whl |
Total release size: 2.2 MB
Release files / py-casim-2.0.3.tar.gz
| Download URL | py-casim-2.0.3.tar.gz |
|---|---|
| Size | 2.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a24399530c0d92dcc220559fc414604e3df876458f70fdf950e3c50baed4f227
|
|
BLAKE2b-256 checksum How to use checksums |
654862e1fd8a6541cf32b26542d00b6087e4803ea50df9c0fd2fb9d5acae88b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
|
Release files / py_casim-2.0.3-py2.py3-none-any.whl
| Download URL | py_casim-2.0.3-py2.py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
39ae7f21815e8da54ce348bcec075815cb688677d0757a6dfcf80ebd0dc78fb0
|
|
BLAKE2b-256 checksum How to use checksums |
8da76d22dc07519bbc2c8c617125af3c6039182b24e9b474c2245ead84db4e26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
|
Security for py-casim 2.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.