pycloudapp icon indicating copy to clipboard operation
pycloudapp copied to clipboard

A wrapper around CloudApp API

========== pycloudapp

a wrapper around the CloudApp_ api_.

Note that this project is dead because I started using droplr.

Requirements

  • Python >= 2.5

In order to upload files you need to have: - poster_ - ordereddict_

Both of these are available in pypi.

Installation

>>> pip install -e git+git://github.com/originell/pycloudapp.git#egg=cloudapp

HowTo

>>> from cloudapp.cloud import Cloud
>>> mycloud = Cloud()
>>> mycloud.auth('yourusername', 'yourpassword')
>>> mycloud.list_items()
>>> mycloud.list_items(page=1, per_page=2)
>>> mycloud.item_info('http://cl.ly/someID')
>>> bookmark = mycloud.create_bookmark('origiNell', 'http://www.originell.org/')
>>> print bookmark
>>> print bookmark['href']
>>> mycloud.delete_file(bookmark['href'])

License

See LICENSE.

.. _CloudApp: http://www.getcloudapp.com/ .. _api: http://support.getcloudapp.com/faqs/developers/api .. _poster: http://atlee.ca/software/poster/ .. _ordereddict: http://pypi.python.org/pypi/ordereddict/1.1