{ "info": { "author": "Cozy Cloud", "author_email": "contact@cozycloud.cc", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: System :: Software Distribution", "Topic :: System :: Systems Administration" ], "description": "## Description\n\nHelper to manage self hosting cozy\n\n** \u26a0 This tool has only been tested on the platforms we support (Debian / Ubuntu / Raspbian). Some of the commands will not work on other distributions. It is mostly a wrapper around shell commands, so if you use another distribution, you can probably read the code and adapt the commands to your distribution **\n\n## Install\n\nMake sure those packages are installed on your environment :\n> python-requests python-docopt python-openssl\tpython-psutil python-pkg-resources\n\nThen, install Python Cozy Management :\n`pip install cozy_management`\n\n\n### Details about installation\n\nThis script do this for you:\n\n1. Install requirements\n * Put cozy-apt-node-list in silent mode\n * Install cozy-apt-node-list to add nodejs repository\n * Do an `apt-get update`\n * Install nodejs\n * Install cozy-depends to have all requirements for Cozy\n * Install weboob\n2. Install Cozy Debian Package\n * Launch an `apt-get install cozy`\n * Check nodejs version\n * Launch post-configuration for cozy-standalone cozy-nginx cozy-apache2\n * cozy-standalone\n * Show a warning about self-signed certificate on Android\n * Ask for Cozy FQDN\n * Ask for certificate type (none, selfsigned, letsencrypt)\n * Install npm package (cozy-controller & cozy-monitor)\n * Add unix users (cozy, cozy-data-system & cozy-home)\n * Create /etc/cozy directory with cozy as owner\n * Create /etc/cozy/couchdb.login with Couch admin creation\n * Add /etc/supervisor/conf.d/cozy-controller.conf managed by UCF\n * (Re)start cozy-controller\n * Install stack with `cozy-monitor install-cozy-stack`\n * Install & start data-system, home & proxy to avoid errors\n * Set the Cozy domain with `commands.coffee setdomain `\n * Set the Cozy background with a curl\n * Install default apps (calendar, contacts, photos, emails, files, sync & import-from-google)\n * Manage SSL certificate\n * cozy-nginx\n * Disable default site\n * Add /etc/nginx/conf.d/cozy.conf managed by UCF\n * Handle let's encrypt if it's activated\n * cozy-apache2\n * Enable required modules (ssl, proxy_http, proxy_wstunnel & rewrite)\n * Add /etc/apache2/sites-available/cozy.conf managed by UCF\n\nYou can found more information here: https://docs.cozy.io/en/host/install/install-step-by-step.html\n\n## Usage\n\n* **show_diag**: display a quick diagnostic of the server;\n* **show_reporting**: display a full diagnostic of your server state;\n* **ping_couchdb**: check whether CouchDB is running;\n* **get_admin**: display credentials used by Cozy to connect to CouchDB;\n* **get_couchdb_admins**: list all CouchDB admin logins;\n* **create_token**: create a CouchDB admin user and write the credentials into Cozy configuration files;\n* **delete_token**: delete CouchDB admin user used by Cozy and remove the configuration file;\n* **reset_token**: delete and create the CouchDB admin user used by Cozy, updating the configuration files;\n* **create_cozy_db**: create the database;\n* **get_cozy_param **: get a parameter of the instance. Current available parameters are `domain` and `locale`;\n* **get_crt_common_name**: get the common name of the TLS certificate (the domain name);\n* **generate_certificate --size --digest **: create a certificate;\n* **make_links **: create the symbolic links to the certificate files in NGinx configuration;\n* **clean_links**: delete the symbolic links to the certificate files in NGinx configuration;\n* **is_cozy_registered**: check whether user has already registered its server;\n* **unregister_cozy**: delete user account from database;\n* **fix_oom_scores**: try to prevent applications from the stack to be killed if memory goes low;\n* **get_oom_scores**: get the Out Of Memory score for each application;\n* **rebuild_app **: reinstall every npm dependencies of an application;\n* **rebuild_all_apps**: reinstall every npm dependencies of all applications (useful when upgrading Node version);\n* **migrate_2_node4**:\n* **install_requirements**:\n* **install_cozy**: install the Cozy server;\n* **wait_couchdb**: wait until couchdb has started;\n* **wait_cozy_stack**: wait until full Cozy stack has started;\n* **emulate_smtp [--bind ] [--port ]** starts a fake SMTP server on port 25 for debugging purpose;\n* **backup**: create a timestamped backup of Cozy configuration and data into `/var/lib/cozy/backups`;\n* **restore **: restore a backup;\n* **install_weboob**: install weboob from devel repository\n* **update_weboob**: update weboob from devel repository\n* **update_weboob_modules**: update weboob modules\n\n## Contribution\n\n* Pick and solve an [issue](https://github.com/cozy/python_cozy_management/issues)\n\n## License\n\nPython Cozy management is developed by Cozy Cloud and distributed under the AGPL v3 license.\n\n## What is Cozy?\n\n![Cozy Logo](https://raw.github.com/cozy/cozy-setup/gh-pages/assets/images/happycloud.png)\n\n[Cozy](http://cozy.io) is a platform that brings all your web services in the\nsame private space. With it, your web apps and your devices can share data\neasily, providing you with a new experience. You can install Cozy on your own\nhardware where no one profiles you.\n\n## Community\n\nYou can reach the Cozy Community by:\n\n* Chatting with us on IRC #cozycloud on irc.freenode.net\n* Posting on our [Forum](https://forum.cozy.io/)\n* Posting issues on the [Github repos](https://github.com/cozy/)\n* Mentioning us on [Twitter](http://twitter.com/mycozycloud)", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cozy/python_cozy_management", "keywords": "cozy", "license": "LGPL", "maintainer": null, "maintainer_email": null, "name": "cozy-management", "package_url": "https://pypi.org/project/cozy-management/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/cozy-management/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/cozy/python_cozy_management" }, "release_url": "https://pypi.org/project/cozy-management/0.0.25/", "requires_dist": null, "requires_python": null, "summary": "Module to help self hosted cozy management", "version": "0.0.25" }, "last_serial": 2609071, "releases": { "0.0.12": [ { "comment_text": "", "digests": { "md5": "93573c0e9237714a37528203035cfe4e", "sha256": "aaefd4e77005997edbc624236034c108c239c2d4ae725ff4ff6f0fdb40627fb7" }, "downloads": -1, "filename": "cozy_management-0.0.12.tar.gz", "has_sig": false, "md5_digest": "93573c0e9237714a37528203035cfe4e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9951, "upload_time": "2016-01-13T16:15:14", "url": "https://files.pythonhosted.org/packages/6c/55/808c643b5f3f5e5e7c51cb1b5c0c7e43cbfe437ee182cacf3354b34e91c9/cozy_management-0.0.12.tar.gz" } ], "0.0.13": [ { "comment_text": "", "digests": { "md5": "63d61ce73cbac90d10061b46c6ca4458", "sha256": "05a99c2e23aeb948536cafb15c7ed014f4bd44db368f4d0a1205e7a809bf7590" }, "downloads": -1, "filename": "cozy_management-0.0.13.tar.gz", "has_sig": false, "md5_digest": "63d61ce73cbac90d10061b46c6ca4458", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10330, "upload_time": "2016-01-13T18:35:42", "url": "https://files.pythonhosted.org/packages/4d/5c/b42996f70613c3188a13fcc3242aca96512a49f49dda18b3dc483ded29b2/cozy_management-0.0.13.tar.gz" } ], "0.0.14": [ { "comment_text": "", "digests": { "md5": "a3d43285641ade3c480e7d174b91df0c", "sha256": "fa319d912fe7365e28d0e29af937c66cbec183d4ee34e090ed5c4bb3f7e1b7e9" }, "downloads": -1, "filename": "cozy_management-0.0.14.tar.gz", "has_sig": false, "md5_digest": "a3d43285641ade3c480e7d174b91df0c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11081, "upload_time": "2016-01-13T22:08:10", "url": "https://files.pythonhosted.org/packages/a3/ae/845a2de9e8b878112340eb5a226cbbab67a4d44be3503fa47c4b21a1d87f/cozy_management-0.0.14.tar.gz" } ], "0.0.15": [ { "comment_text": "", "digests": { "md5": "2cc91f906145e8842cbbd982ff205bc0", "sha256": "eaa9f84c905d822443267846f2803af8053e05fda5c143729b41950fe74d612d" }, "downloads": -1, "filename": "cozy_management-0.0.15.tar.gz", "has_sig": false, "md5_digest": "2cc91f906145e8842cbbd982ff205bc0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13004, "upload_time": "2016-01-25T23:12:40", "url": "https://files.pythonhosted.org/packages/09/f2/e9805f5df9df5d1ea5c36e701d532ae5f478b4aa2e309a527c92024d2efc/cozy_management-0.0.15.tar.gz" } ], "0.0.16": [ { "comment_text": "", "digests": { "md5": "d2c35ada2f60ef6b385e447a78ece52e", "sha256": "388ce186aa3ed24d5c49a178fe0008fad8bc0ce15ae8087ea4e259f70dad1724" }, "downloads": -1, "filename": "cozy_management-0.0.16.tar.gz", "has_sig": false, "md5_digest": "d2c35ada2f60ef6b385e447a78ece52e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14183, "upload_time": "2016-02-05T15:05:32", "url": "https://files.pythonhosted.org/packages/f0/78/39f167c1e91a059a37b6066abd5529771301ea2c696b24f1bbf8658259d3/cozy_management-0.0.16.tar.gz" } ], "0.0.17": [ { "comment_text": "", "digests": { "md5": "f86a7e75c7c58bbc034cbc9f2a7fbf73", "sha256": "6f0595dc9dbc566279f63046b36dc53575595c4b64e49ef88c5694c2f692e9a0" }, "downloads": -1, "filename": "cozy_management-0.0.17.tar.gz", "has_sig": false, "md5_digest": "f86a7e75c7c58bbc034cbc9f2a7fbf73", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14704, "upload_time": "2016-02-09T18:26:19", "url": "https://files.pythonhosted.org/packages/bb/7e/3fc367434099fd084f3e1c32818940b3bce3986ecfcbbb7b79dd77f49df3/cozy_management-0.0.17.tar.gz" } ], "0.0.18": [ { "comment_text": "", "digests": { "md5": "e188da6b318d0f2e88b677cbf9f6ceb2", "sha256": "ced219779e671711530c6f3794bd09658e43b7a2c4a4ce63fcb7a805ba05cdcf" }, "downloads": -1, "filename": "cozy_management-0.0.18.tar.gz", "has_sig": false, "md5_digest": "e188da6b318d0f2e88b677cbf9f6ceb2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14824, "upload_time": "2016-02-10T22:52:43", "url": "https://files.pythonhosted.org/packages/b5/61/f88229f81fc5285bc9a06ee7328f5c58ffd47c0d0e52c3cf24450a934548/cozy_management-0.0.18.tar.gz" } ], "0.0.19": [ { "comment_text": "", "digests": { "md5": "9f12623672a2a13facd204a375eac330", "sha256": "ca5e348a33c2f61dfebb0705a87389fbad15ad8dd3e18cb235434f67850cc60a" }, "downloads": -1, "filename": "cozy_management-0.0.19.tar.gz", "has_sig": false, "md5_digest": "9f12623672a2a13facd204a375eac330", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15562, "upload_time": "2016-03-11T11:48:07", "url": "https://files.pythonhosted.org/packages/b0/f3/b4677ccf4cb191c5f03a8c4334f36a6fb193b215dd0409248058ccc68095/cozy_management-0.0.19.tar.gz" } ], "0.0.20": [ { "comment_text": "", "digests": { "md5": "8c39e2b42a1a71430b4cf28d99e59a9e", "sha256": "c4eeb8dfa3ef90e07715bc68f70b9b50fda02961ae4bc97cc993e8f9d33fbf45" }, "downloads": -1, "filename": "cozy_management-0.0.20.tar.gz", "has_sig": false, "md5_digest": "8c39e2b42a1a71430b4cf28d99e59a9e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16165, "upload_time": "2016-03-31T21:49:48", "url": "https://files.pythonhosted.org/packages/21/d2/2586aa0ff5a7b35c5660dddc7783b1ad8660060b62ba9f0df4fcfa4fcf86/cozy_management-0.0.20.tar.gz" } ], "0.0.21": [ { "comment_text": "", "digests": { "md5": "8c2868df0ff88a84d9be693e39ddfee3", "sha256": "ad0c6aaff8a1f563d825c9c56b5919f6c7d18bcac015ca40cc9977f363c82f4f" }, "downloads": -1, "filename": "cozy_management-0.0.21.tar.gz", "has_sig": false, "md5_digest": "8c2868df0ff88a84d9be693e39ddfee3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19227, "upload_time": "2016-05-12T17:17:16", "url": "https://files.pythonhosted.org/packages/2b/97/ed61c71fe40f626143c0b2e34e9c1dc60d91116fd8bae94cd9579daf52d0/cozy_management-0.0.21.tar.gz" } ], "0.0.23": [ { "comment_text": "", "digests": { "md5": "c3c9e8857ba19f803063ebb1c8b0289e", "sha256": "9f77758a691425149a9953f0c23c77bdd900894cbd3b3618363d2618d25d2fd7" }, "downloads": -1, "filename": "cozy_management-0.0.23.tar.gz", "has_sig": false, "md5_digest": "c3c9e8857ba19f803063ebb1c8b0289e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22223, "upload_time": "2016-08-04T10:44:49", "url": "https://files.pythonhosted.org/packages/07/cf/683044ade6d8ac6a031ef8a944249bcb4d79e8eaad64e3947708d3b1154a/cozy_management-0.0.23.tar.gz" } ], "0.0.25": [ { "comment_text": "", "digests": { "md5": "dd52d5b2752e66c9225ccfe869542a1e", "sha256": "82983755d33291b6c0104a940f18e3d0ea2b6b28bfc42fc7b4c2fac4bebe2f1a" }, "downloads": -1, "filename": "cozy_management-0.0.25.tar.gz", "has_sig": false, "md5_digest": "dd52d5b2752e66c9225ccfe869542a1e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23919, "upload_time": "2017-01-31T12:31:43", "url": "https://files.pythonhosted.org/packages/e4/b3/75b3d6f7763f152de1b13db5961ab3c4c6d0290b969eb83b53ef5181f7e8/cozy_management-0.0.25.tar.gz" } ], "0.0.3": [], "0.0.4": [ { "comment_text": "", "digests": { "md5": "83d71add9ed74cb7b6feb64d6894c22b", "sha256": "3cac7a953209d9f0b125021fc9bd0999bb852773a98d3c754e17bdf04761640d" }, "downloads": -1, "filename": "cozy_management-0.0.4.tar.gz", "has_sig": false, "md5_digest": "83d71add9ed74cb7b6feb64d6894c22b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7344, "upload_time": "2016-01-07T11:07:14", "url": "https://files.pythonhosted.org/packages/a6/b3/a0da4980a9ffb0479a941996715c529a9a6fc7e2ea403d6f41e1e818d9b0/cozy_management-0.0.4.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "164eca37be63a645c1a7e1745e113dbc", "sha256": "97ea7e797aa92fcfc96224cb788a0ce03ea8c4c0e50f9e40b037a6452d3e7c6b" }, "downloads": -1, "filename": "cozy_management-0.0.8.tar.gz", "has_sig": false, "md5_digest": "164eca37be63a645c1a7e1745e113dbc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9313, "upload_time": "2016-01-11T15:24:54", "url": "https://files.pythonhosted.org/packages/58/87/ce3b8e5ddcce6e36d50477b219a75b44790373081b92279f096c5934ad61/cozy_management-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "fb6099ce8a0e15f419782702191e7143", "sha256": "2bc0f5c8a0858a192f19aed3fb713730b02dd90eb87085e41367a776e5a9094c" }, "downloads": -1, "filename": "cozy_management-0.0.9.tar.gz", "has_sig": false, "md5_digest": "fb6099ce8a0e15f419782702191e7143", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9368, "upload_time": "2016-01-11T15:45:15", "url": "https://files.pythonhosted.org/packages/1f/27/c9a5b64bfb27b16af0a8580b413036174ced720bc8de4dcc7e41f3bad6c7/cozy_management-0.0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "dd52d5b2752e66c9225ccfe869542a1e", "sha256": "82983755d33291b6c0104a940f18e3d0ea2b6b28bfc42fc7b4c2fac4bebe2f1a" }, "downloads": -1, "filename": "cozy_management-0.0.25.tar.gz", "has_sig": false, "md5_digest": "dd52d5b2752e66c9225ccfe869542a1e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23919, "upload_time": "2017-01-31T12:31:43", "url": "https://files.pythonhosted.org/packages/e4/b3/75b3d6f7763f152de1b13db5961ab3c4c6d0290b969eb83b53ef5181f7e8/cozy_management-0.0.25.tar.gz" } ] }