{ "info": { "author": "Yanis Guenane", "author_email": "yanis@guenane.org", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: Information Technology", "License :: OSI Approved :: Apache Software License", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2.7" ], "description": "C14 Python Wrapper\n==================\n\nThis module is a python wrapper around the Online.net `C14`_ storage solution.\n\nThis module implements every publicly made available by Online.net API calls.\n\n.. _C14: https://www.online.net/en/c14\n\n\nUsage\n-----\n\n.. code-block::\n\n from c14 import C14\n\n token = 'thisismyprivatetoken'\n\n c14api = C14(token)\n\n # Create a safe\n c14api.create_safe('My Safe', 'This is the description of my safe')\n\n # List all safes\n c14api.list_safes()\n\n\nList of available methods\n-------------------------\n\n``def list_platforms(self)``: Get a list of links to the platforms.\n\n``def get_platform(self, id)``: Get information on a platform.\n\n- ``id``: ID of the platform.\n\n``def list_protocols(self)`` Get a list of available file transfer protocols.\n\n``def create_safe(self, name, description=None)``: Create a safe.\n\n- ``name``: Name of the safe.\n- ``description``: Description of the safe.\n\n``def get_safe(self, uuid)``: Get information on a safe.\n\n- ``uuid``: Id of the safe.\n\n``def update_safe(self, uuid, name=None, description=None)``: Edit a safe.\n\n- ``uuid``: Id of the safe.\n- ``name``: Name of the safe.\n- ``description``: Description of the safe.\n\n``def list_safes(self)``: Get a list of links to the user's safes.\"\"\"\n\n``def delete_safe(self, uuid)``: Delete a safe.\n\n- ``uuid``: Id of the safe.\n\n``def create_archive(self, safe_id, name, description, protocols, platforms, parity=None, ssh_keys=None, days=None)``: Create an archive.\n\n- ``safe_id``: Id of the safe.\n- ``name``: Name of the archive.\n- ``description``: Description of the archive.\n- ``protocols``: File transfer protocols used.\n- ``platforms``: Ids of platforms where the archive will be stored.\n- ``parity``: Parity (standard, or enterprise; default: standard).\n- ``ssh_keys``: UUIDs of SSH keys.\n- ``days``: Number of days until the files are archived automatically (2, 5, or 7; default: 7).\n\n\n``def get_archive(self, safe_id, uuid)``: Get information on an Archive.\n\n- ``safe_id``: Id of the safe.\n- ``uuid``: Id of the archive.\n\n``def update_archive(self, uuid, name=None, description=None)``: Edit an archive.\n\n- ``safe_id``: Id of the safe.\n- ``uuid``: Id of the archive.\n- ``name``: Name of the archive.\n- ``description``: Description of the archive.\n\n``def list_archives(self, safe_id)``: Get a list of archives in the user's safe.\n\n- ``safe_id``: Id of the safe.\n\n``def delete_archive(self, safe_id, uuid)``: Delete an archive.\n\n- ``safe_id``: Id of the safe.\n- ``uuid``: Id of the archive.\n\n``def archive_archive(self, safe_id, uuid)``: Archive files from temporary storage.\n\n- ``safe_id``: Id of the safe.\n- ``uuid``: Id of the archive.\n\n``def archive_informations(self, safe_id, uuid)``: Get information on an archive's temporary storage.\n\n- ``safe_id``: Id of the safe.\n- ``uuid``: Id of the archive.\n\n``def archive_list_jobs(self, safe_id, uuid)``: Get list of archive jobs.\n\n- ``safe_id``: Id of the safe.\n- ``uuid: Id`` of the archive.\n\n``def archive_get_job(self, safe_id, uuid, job_id)``: Get informations of a job.\n\n- ``safe_id``: Id of the safe.\n- ``uuid: Id`` of the archive.\n- ``job_id``: Id of the job.\n\n``def archive_get_encryption_key(self, safe_id, uuid)``: Get an archive's encryption key.\n\n- ``safe_id``: Id of the safe.\n- ``uuid``: Id of the archive.\n\n``def archive_set_encryption_key(self, safe_id, uuid, key)``: Set an archive's encryption key.\n\n- ``safe_id``: Id of the safe.\n- ``uuid``: Id of the archive.\n- ``key``: Encryption key.\n\n``def archive_delete_encryption_key(self, safe_id, uuid)``: Delete an archive's encryption key.\n\n- ``safe_id``: Id of the safe.\n- ``uuid``: Id of the archive.\n\n``def archive_list_locations(self, safe_id, uuid)``: Get a list of locations on the user's archive.\n\n- ``safe_id``: Id of the safe.\n- ``uuid``: Id of the archive.\n\n``def archive_get_location(self, safe_id, uuid, location_id)``: Get information on an archive location.\n\n- ``safe_id``: Id of the safe.\n- ``uuid``: Id of the archive.\n\n``def verify_archive(self, safe_id, uuid, location_id)``: Verify the files on an archive's location.\n\n- ``safe_id``: Id of the safe.\n- ``uuid``: Id of the archive.\n- ``location_id``: Id of the location.\n\n``def unarchive(self, safe_id, uuid, location_id, protocols, rearchive=None, key=None, ssh_keys=None)``: Unarchive files into temporary storage.\n\n- ``safe_id``: Id of the safe.\n- ``uuid``: Id of the archive.\n- ``location_id``: Id of the location.\n- ``protocols``: File transfer protocols used.\n- ``rearchive``: Rearchive the data after 7 days (default: true).\n- ``key``: Encryption key.\n- ``ssh_keys``: UUIDs of SSH keys.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Spredzy/python-c14", "keywords": "", "license": "Apache v2.0", "maintainer": "", "maintainer_email": "", "name": "c14", "package_url": "https://pypi.org/project/c14/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/c14/", "project_urls": { "Homepage": "https://github.com/Spredzy/python-c14" }, "release_url": "https://pypi.org/project/c14/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "C14 Python Wrapper", "version": "0.0.1" }, "last_serial": 2218854, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "3e398e72c0968f7ca91b09ac222aa899", "sha256": "1f9455c7315e8f919ed1a3e84de4a867c8cdfc97d62831a2513f546ee4b984a9" }, "downloads": -1, "filename": "c14-0.0.1.tar.gz", "has_sig": false, "md5_digest": "3e398e72c0968f7ca91b09ac222aa899", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4650, "upload_time": "2016-07-13T13:41:56", "url": "https://files.pythonhosted.org/packages/c3/e7/555a5a9b49fa703418251a7088fb0ad65a90afb6192725348fb175e870ff/c14-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3e398e72c0968f7ca91b09ac222aa899", "sha256": "1f9455c7315e8f919ed1a3e84de4a867c8cdfc97d62831a2513f546ee4b984a9" }, "downloads": -1, "filename": "c14-0.0.1.tar.gz", "has_sig": false, "md5_digest": "3e398e72c0968f7ca91b09ac222aa899", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4650, "upload_time": "2016-07-13T13:41:56", "url": "https://files.pythonhosted.org/packages/c3/e7/555a5a9b49fa703418251a7088fb0ad65a90afb6192725348fb175e870ff/c14-0.0.1.tar.gz" } ] }