Metadata-Version: 2.0
Name: dopy
Version: 0.3.7
Summary: Python client for the Digital Ocean API
Home-page: https://github.com/devo-ps/dopy
Author: Vincent Viallet
Author-email: vincent@devo.ps
License: The MIT License (MIT)
Requires-Dist: requests (>=1.0.4)

Copyright (c) 2013 devo.ps

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Download-URL: https://github.com/devo-ps/dopy/archive/master.zip
Description: Digital Ocean API Python Wrapper
        ================================
        
        Inspired by [dop](https://github.com/ahmontero/dop).
        
        Installation
        ============
        
        .. code-block:: bash
            
            # pip install dopy
        
        Getting Started
        ===============
        
        To interact with Digital Ocean, you first need .. a digital ocean account with 
        valid API keys.
        
        Keys can be set either as Env variables, or within the code.
        
        For API v.2.
        
        .. code-block:: bash
        
            # export DO_API_VERSION='2'
            # export DO_API_TOKEN='api_token'
        
        .. code-block:: pycon
        
            >>> from dopy.manager import DoManager
            >>> do = DoManager(None, 'api_token', api_version=2)
        
        
        For API v.1.
        
        .. code-block:: bash
            
            # export DO_CLIENT_ID='client_id'
            # export DO_API_KEY='long_api_key'
        
        .. code-block:: pycon
        
            >>> from dopy.manager import DoManager
            >>> do = DoManager('client_id', 'long_api_key')
        
        Methods
        =======
        
        The methods of the DoManager are self explanatory; ex.
        
        .. code-block:: pycon
        
            >>> do.all_active_droplets()
            >>> do.show_droplet('12345')
            >>> do.destroy_droplet('12345')
            >>> do.all_regions()
            >>> do.all_images()
            >>> do.all_ssh_keys()
            >>> do.sizes()
            >>> do.all_domains()
            >>> do.new_droplet('new_droplet', 66, 1601, 1)
        
        The methods for v.2 API are similar, the only difference
        is using names instead of IDs for domains and slugs for
        sizes, images and datacenters; ex.
        
        .. code-block:: pycon
        
            >>> do.show_domain('exapmle.com')
            >>> do.new_droplet('new_droplet', '512mb', 'lamp', 'ams2')
                                            
        
        
        TODO
        ====
        
        See github issue list - post if any needed
        
        https://github.com/devo-ps/dopy/issues
        
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
