{ "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": "", "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 2.0", "maintainer": "", "maintainer_email": "", "name": "c14-jpic", "package_url": "https://pypi.org/project/c14-jpic/", "platform": "", "project_url": "https://pypi.org/project/c14-jpic/", "project_urls": { "Homepage": "https://github.com/Spredzy/python-c14" }, "release_url": "https://pypi.org/project/c14-jpic/0.0.2/", "requires_dist": null, "requires_python": "", "summary": "C14 Python Wrapper", "version": "0.0.2" }, "last_serial": 4686570, "releases": { "0.0.0": [ { "comment_text": "", "digests": { "md5": "fc40c32070600d3e62cc93e6a6bb6676", "sha256": "10c1a6eb71ae4473050b299f4482a97a1fe8f9f65296df623087fddebee96a0f" }, "downloads": -1, "filename": "c14-jpic-0.0.0.tar.gz", "has_sig": false, "md5_digest": "fc40c32070600d3e62cc93e6a6bb6676", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6559, "upload_time": "2019-01-11T18:07:29", "url": "https://files.pythonhosted.org/packages/bd/22/163ba7816ed9907aec85a7f19bafa76ad2a9675b358c04a9da4ff4f4df90/c14-jpic-0.0.0.tar.gz" } ], "0.0.1": [ { "comment_text": "", "digests": { "md5": "7e9b5e3dc64d691668f3fcc627a8caa4", "sha256": "a40c5c04244bf8413060a6055cfff31cc0736eef63a5785e3fc84eac0e05ff23" }, "downloads": -1, "filename": "c14-jpic-0.0.1.tar.gz", "has_sig": false, "md5_digest": "7e9b5e3dc64d691668f3fcc627a8caa4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6595, "upload_time": "2019-01-11T18:06:30", "url": "https://files.pythonhosted.org/packages/d9/9e/c845d8238c92328554507406a858d139f4b23d8bce27837a8fd2c34fe95c/c14-jpic-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "97963856024159a6b68377b2f78120f0", "sha256": "5eff6f6effddbab7566045908ec575ae1b7a2cc027dc45b7f34e716b5f3e2585" }, "downloads": -1, "filename": "c14-jpic-0.0.2.tar.gz", "has_sig": false, "md5_digest": "97963856024159a6b68377b2f78120f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4355, "upload_time": "2019-01-11T18:41:57", "url": "https://files.pythonhosted.org/packages/90/6c/2ff738d5091590767348d503a7cb0800b6ca3c3c9e6245187114bc7902ca/c14-jpic-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "97963856024159a6b68377b2f78120f0", "sha256": "5eff6f6effddbab7566045908ec575ae1b7a2cc027dc45b7f34e716b5f3e2585" }, "downloads": -1, "filename": "c14-jpic-0.0.2.tar.gz", "has_sig": false, "md5_digest": "97963856024159a6b68377b2f78120f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4355, "upload_time": "2019-01-11T18:41:57", "url": "https://files.pythonhosted.org/packages/90/6c/2ff738d5091590767348d503a7cb0800b6ca3c3c9e6245187114bc7902ca/c14-jpic-0.0.2.tar.gz" } ] }