{ "info": { "author": "Reuven V. Gonzales", "author_email": "reuven@tobetter.us", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: POSIX", "Programming Language :: Python", "Topic :: Software Development :: Build Tools" ], "description": "lxc4u - A low level LXC tool targeted at Ubuntu\n===============================================\n\nWarning! This is still a work in progress.\n\nProvides tools for managing LXC in Ubuntu 12.04 and Ubuntu 12.04 Containers.\nOther containers are not supported (yet?)\n\n- Creates containers using overlayfs\n- Can handle multiple overlayfs layers\n\nWorking examples\n----------------\n\nCreate a container named ``test1``::\n \n import lxc4u\n\n test1_lxc = lxc4u.create('test1')\n # Wait a long time...\n\n # Start the container\n test1_lxc.start()\n\nCreate a container that overlays ``test1``::\n \n import lxc4u\n \n test1_overlay_lxc = lxc4u.create('test1_overlay', base='test1',\n overlays=['overlay_path'])\n\n # Start the container\n test1_overlay_lxc.start()\n\n test1_overlay_lxc.destroy()\n\nCreate a container with multiple overlays of ``test1``. The right most overlay\nis the upper most overlay directory::\n \n import lxc4u\n \n test1_overlay_lxc = lxc4u.create('test1_overlay', base='test1',\n overlays=['overlay1_path', 'overlay2_path'])\n\n # Start the container\n test1_overlay_lxc.start()\n\nThese examples have not yet been implemented. Soon!\n\nStarting a container named ``test1``. This assumes lxc is properly configured\nin your system::\n \n import lxc4u\n\n # Start container\n test1_lxc = lxc4u.start('test1')\n\n # Stop container\n test1_lxc.stop()\n # or lxc4u.stop('test1')\n\nPossible interface examples\n---------------------------\n\nStarting an ephemeral container using test1 as a base::\n\n import lxc4u\n\n # Start container\n test1_ephemeral_lxc = lxc4u.start('test1', ephemeral=True)\n\n # Stop container\n test1_ephemeral_lxc.stop()\n\nStarting an ephemeral container using test1 with static network settings::\n \n import lxc4u\n \n network_settings = dict(\n ip=\"10.0.3.5\",\n gateway=\"10.0.3.1\",\n netmask=\"255.255.255.0\",\n network=\"10.0.3.0\",\n )\n \n # Start container\n test1_ephemeral_lxc = lxc4u.start('test1', ephemeral=True, \n static_network=network_settings)\n\n # Stop container\n test1_ephemeral_lxc.stop()\n\nStarting an ephemeral container using with a startup command (must be available\non the container's path)::\n \n import lxc4u\n\n # Start container\n test1_ephemeral_lxc = lxc4u.start('test1', ephemeral=True,\n startup_command=\"/usr/local/bin/somecommand\")\n \n # Stop container\n test1_ephemeral_lxc.stop()", "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/ravenac95/lxc4u", "keywords": "LXC", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "lxc4u", "package_url": "https://pypi.org/project/lxc4u/", "platform": "Ubuntu", "project_url": "https://pypi.org/project/lxc4u/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/ravenac95/lxc4u" }, "release_url": "https://pypi.org/project/lxc4u/0.0.4/", "requires_dist": null, "requires_python": null, "summary": "lxc4u", "version": "0.0.4" }, "last_serial": 794404, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "c7fc1eb6b9d37d5769da32f5922610fd", "sha256": "92d45ffedf4cb6bc213148e4232b7466c925eb6ec257b37a06112220df5658d8" }, "downloads": -1, "filename": "lxc4u-0.0.1.tar.gz", "has_sig": false, "md5_digest": "c7fc1eb6b9d37d5769da32f5922610fd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5756, "upload_time": "2012-08-21T01:12:52", "url": "https://files.pythonhosted.org/packages/a0/b4/7c1028a3f56f29de7d9f5c5235f8ae27249e9b2b2b53964d3c5d3d357014/lxc4u-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "13a1d89d6a9fec3866797a86d122bd86", "sha256": "737114b64f29b8606add43e48dd4fd96e43c3d491da8f2b3308985b0c33cf1e7" }, "downloads": -1, "filename": "lxc4u-0.0.2.tar.gz", "has_sig": false, "md5_digest": "13a1d89d6a9fec3866797a86d122bd86", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6737, "upload_time": "2012-08-21T01:18:18", "url": "https://files.pythonhosted.org/packages/ec/b6/fdf383fa4b2e2059847aaf6c045a070aa8fdd1804cd20a42ecad0ca9703f/lxc4u-0.0.2.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "a345d56e2d31560162bb296513fb74ac", "sha256": "a4e36202866d01444406efe5b69bf481dfd1dba7379ddc7adc28daf57de90426" }, "downloads": -1, "filename": "lxc4u-0.0.4.tar.gz", "has_sig": false, "md5_digest": "a345d56e2d31560162bb296513fb74ac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6862, "upload_time": "2012-08-25T01:26:35", "url": "https://files.pythonhosted.org/packages/bc/5b/8c6c229c82c5b49c981b8f26c0965823267195f63af825ad353a31ced13c/lxc4u-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a345d56e2d31560162bb296513fb74ac", "sha256": "a4e36202866d01444406efe5b69bf481dfd1dba7379ddc7adc28daf57de90426" }, "downloads": -1, "filename": "lxc4u-0.0.4.tar.gz", "has_sig": false, "md5_digest": "a345d56e2d31560162bb296513fb74ac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6862, "upload_time": "2012-08-25T01:26:35", "url": "https://files.pythonhosted.org/packages/bc/5b/8c6c229c82c5b49c981b8f26c0965823267195f63af825ad353a31ced13c/lxc4u-0.0.4.tar.gz" } ] }