Skip to main content

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.

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


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

pneumatic-0.1.1-py2.py3-none-any.whl (7.6 kB view hashes)

Uploaded Python 2 Python 3

pneumatic-0.1.1-py2.7.egg (10.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page