A bulk upload library for DocumentCloud.
Project description
pneumatic is a library that adds some luxury and safeguards to the bulk-uploading of hundreds, thousands or hundreds of thousands of files to DocumentCloud. It is meant to do one thing – upload – and serve as an adjunct to, but not a replacement for, the excellent python-documentcloud API wrapper.
pneumatic’s name is inspired by the newsrooms of yore, which featured a series of pneumatic tubes for sending copy from the newsrooms to other departments such as the composing room.
Features
Multiprocessing for faster submission of files to DocumentCloud’s API.
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.
Links
Documentation: http://pneumatic.readthedocs.org/
Repository: https://github.com/anthonydb/pneumatic
Basic Usage
You will need 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.
Source Distributions
Built Distributions
Hashes for pneumatic-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28cfac00fe053052482f45cc75c4e272e37c7f1745ef69a14325638ca9512264 |
|
MD5 | e4171e7bff22f42095cf9b69ddbfb06e |
|
BLAKE2b-256 | a1eeb04fcabda024b7a4e297bd90bc99633f5cb30a74eb0a2c6e936375b54d83 |