Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Various document utils

Project description

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

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.1.0
Filename, size File type Python version Upload date Hashes
Filename, size docci-1.1.0-py3-none-any.whl (4.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size docci-1.1.0.tar.gz (4.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page