General useful utility functions for Python projects.
These are functions I use every day. Ideally they should make their way into the standard library. I understand we cannot put everything in the standard library, hence this package. ;)
The various modules have the following requirements:
# util_email
imapclient
pyzmail
# util_fs
unidecode
# util_ftp
ftputil
paramiko
# util_image
pillow
# util_logging
logging_tree
If you only need one module it is recommended you install from source and manage the requirments yourself.
Example usage:
from PIL import Image
from lcutil import util_email as ue
from lcutil import util_image as ui
face = ui.scale_width(Image.open('face.jpg'), 100)
back = ui.scale_width(Image.open('back.jpg'), 100)
stiched = ui.stitch_vertical(face, back)
stiched.save('/tmp/stiched.jpg')
ue.html_email(from_='me <me@example.com>',
to=['alice <alice@example.com>'],
bcc=['bob <bob@example.com>'],
subject='Here is an image for you',
html_body='<html><body><h1>Hello World!</h1></body></html>',
files=['/tmp/stiched.jpg'],
smtp_server='smtp.example.com',
smtp_port=25,
smtp_username='username',
smtp_password='password')
Metadata
Release files for lcutil 0.2.2
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 |
|---|---|---|---|---|
| lcutil-0.2.2.tar.gz | 11.8 kB | Without provenance | Details for lcutil-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lcutil-0.2.2-py2-none-any.whl | Python 2 | none | any | Details for lcutil-0.2.2-py2-none-any.whl |
Total release size: 27.1 kB
Release files / lcutil-0.2.2.tar.gz
| Download URL | lcutil-0.2.2.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fc99df303d7e8f542b0292f9d862a51ce89e2a3644fe4dc63ea54ec37bbe1245
|
|
BLAKE2b-256 checksum How to use checksums |
c239d4d60df5bd384d18c38ba5e52e74e60e81c4258158484a4b6c9ce15d0316
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.15rc1
|
Release files / lcutil-0.2.2-py2-none-any.whl
| Download URL | lcutil-0.2.2-py2-none-any.whl |
|---|---|
| Size | 15.3 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
c3c1ea9e2d720a0a049014ab5a538bbb92b6c0b1034b04e8797a8188ffd13750
|
|
BLAKE2b-256 checksum How to use checksums |
bd5ef37588b2735df5eeaf28254c63956a05233812aced24c20e271c9190a406
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.15rc1
|
Security for lcutil 0.2.2
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.