docci
Various document management utils
Usage
The docci.file.FileAttchment class is root of whole package.
It abstracts work with files and provides useful properties like base64 convertion, content-disposition header generation, mimetype detection:
from docci.file import FileAttachment
# Create file attachment from file
file = FileAttachment.load("path/to/file")
# Now you can use the FileAttachment features:
# Get base64 file representation
file.content_base64
# Generate Content-Disposition header with file name
file.content_disposition
# Get file extension
file.extension
# Get file mimetype
file.mimetype
# Save file to disk
file.save("path/to/file")
To see other features proceed to the documentation
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
docci-1.1.0.tar.gz
(4.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
docci-1.1.0-py3-none-any.whl
(4.7 kB
view details)
File details
Details for the file docci-1.1.0.tar.gz.
File metadata
- Download URL: docci-1.1.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.2 CPython/3.7.1 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
843fadccafd25e4a828410ab69a6dcbd033cebaa6c225f0e2c68e29f18d3f95e
|
|
| MD5 |
821767d97456e81a0ff25ac2606f7764
|
|
| BLAKE2b-256 |
a51a3e92ecbea5319079890b5ccf714f1d126083045c98512d544fec61b185a7
|
File details
Details for the file docci-1.1.0-py3-none-any.whl.
File metadata
- Download URL: docci-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.2 CPython/3.7.1 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9146d0acea78ed8d1d781253afd301d0e37b0320421192a3831f74d870ee489
|
|
| MD5 |
92565d969d4b53b47bd3d794cfca7850
|
|
| BLAKE2b-256 |
dd0b5992323ae479eca333097f7e556ca209dda39ef7d5bd4735d6808220d342
|