A bulk upload library for DocumentCloud.
Project description
pneumatic is a library intended to add some luxury and safeguards to the process of bulk-uploading hundreds, thousands or hundreds of thousands of files to DocumentCloud. Note: pneumatic is currently very much a work in progress.
Features
Multiprocessing for faster uploading.
Catalogs the API response for each upload in a SQLite database along with the file’s canonical URL.
Prevents inadvertent submission of files that DocumentCloud doesn’t handle, such as audio.
Usage
You will need to have an active DocumentCloud account. Uploading all files in a directory (and all sub-directories below it), is as simple as running:
from pneumatic import DocumentCloudUploader
client = DocumentCloudUploader('person@example.com', 'your-password')
client.upload(file_directory='/files', project='17477-loudoun-county-government')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.