Skip to main content

Various document utils

Project description


Various document management utils


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

# Generate Content-Disposition header with file name

# Get file extension

# Get file mimetype

# Save file to disk"path/to/file")

To see other features proceed to the documentation

Project details

Download files

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

Files for docci, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size docci-1.0.0-py3-none-any.whl (4.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size docci-1.0.0.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page