chibi-lxc


Namechibi-lxc JSON
Version 0.3.0 PyPI version JSON
download
home_pagehttps://github.com/dem4ply/chibi_lxc
Summarydefinition of lxc containers using python
upload_time2023-04-14 23:02:06
maintainer
docs_urlNone
authordem4ply
requires_python
licenseWTFPL
keywords chibi_lxc
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            =========
chibi_lxc
=========


.. image:: https://img.shields.io/pypi/v/chibi_lxc.svg
        :target: https://pypi.python.org/pypi/chibi_lxc

.. image:: https://img.shields.io/travis/dem4ply/chibi_lxc.svg
        :target: https://travis-ci.org/dem4ply/chibi_lxc

.. image:: https://readthedocs.org/projects/chibi-lxc/badge/?version=latest
        :target: https://chibi-lxc.readthedocs.io/en/latest/?badge=latest
        :alt: Documentation Status

definition of lxc containers using python class and manage lxc
similar to vagrant


Example
-------

write a file with the container

.. sourcecode:: python

	from chibi_lxc import Container
	class Centos_8( Container ):
		name = 'centos_8'
		distribution = 'centos'
		arch = 'amd64'
		version = '8'
		provision_folders = { 'scripts': 'provision' }
		env_vars = { 'LC_ALL': 'es_MX.utf8' }
		scripts = ( 'install_python.sh', ( 'add_user.py', 'chibi', ) )

write a config.py

with the next conten

.. sourcecode:: python

	import sys
	from chibi.config import configuration
	from chibi.file import Chibi_path
	from chibi.module import import_

	sys.path.append( Chibi_path( '.' ).inflate )

	from containers.base import Centos_7


	configuration.chibi_lxc.containers.add( Centos_7 )


the scripts should be in the folder provision_folders[ 'scripts' ]


create the container

::

	chibi_lxc up Centos_8 # create the container
	chibi_lxc provision Centos_8 # not needed the first time
	chibi_lxc list # lista los container configurados
	chibi_lxc status # lista el status de los container
	chibi_lxc host # lista el estado y hosts de los container
	chibi_lxc stop Centos_8 # stop the container
	chibi_lxc destroy Centos_8 # destroy the container


* Free software: WTFPL
* Documentation: https://chibi-lxc.readthedocs.io.


Features
--------

* create container
* provision container
* destroy container


=======
History
=======

0.0.1 (2020-04-05)
------------------

* First release on PyPI.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/dem4ply/chibi_lxc",
    "name": "chibi-lxc",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "chibi_lxc",
    "author": "dem4ply",
    "author_email": "dem4ply@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/f5/03/cbc822fe06d584bef05e3c4fb734d0f8d4add4c40537d87b6df24521edf0/chibi_lxc-0.3.0.tar.gz",
    "platform": null,
    "description": "=========\nchibi_lxc\n=========\n\n\n.. image:: https://img.shields.io/pypi/v/chibi_lxc.svg\n        :target: https://pypi.python.org/pypi/chibi_lxc\n\n.. image:: https://img.shields.io/travis/dem4ply/chibi_lxc.svg\n        :target: https://travis-ci.org/dem4ply/chibi_lxc\n\n.. image:: https://readthedocs.org/projects/chibi-lxc/badge/?version=latest\n        :target: https://chibi-lxc.readthedocs.io/en/latest/?badge=latest\n        :alt: Documentation Status\n\ndefinition of lxc containers using python class and manage lxc\nsimilar to vagrant\n\n\nExample\n-------\n\nwrite a file with the container\n\n.. sourcecode:: python\n\n\tfrom chibi_lxc import Container\n\tclass Centos_8( Container ):\n\t\tname = 'centos_8'\n\t\tdistribution = 'centos'\n\t\tarch = 'amd64'\n\t\tversion = '8'\n\t\tprovision_folders = { 'scripts': 'provision' }\n\t\tenv_vars = { 'LC_ALL': 'es_MX.utf8' }\n\t\tscripts = ( 'install_python.sh', ( 'add_user.py', 'chibi', ) )\n\nwrite a config.py\n\nwith the next conten\n\n.. sourcecode:: python\n\n\timport sys\n\tfrom chibi.config import configuration\n\tfrom chibi.file import Chibi_path\n\tfrom chibi.module import import_\n\n\tsys.path.append( Chibi_path( '.' ).inflate )\n\n\tfrom containers.base import Centos_7\n\n\n\tconfiguration.chibi_lxc.containers.add( Centos_7 )\n\n\nthe scripts should be in the folder provision_folders[ 'scripts' ]\n\n\ncreate the container\n\n::\n\n\tchibi_lxc up Centos_8 # create the container\n\tchibi_lxc provision Centos_8 # not needed the first time\n\tchibi_lxc list # lista los container configurados\n\tchibi_lxc status # lista el status de los container\n\tchibi_lxc host # lista el estado y hosts de los container\n\tchibi_lxc stop Centos_8 # stop the container\n\tchibi_lxc destroy Centos_8 # destroy the container\n\n\n* Free software: WTFPL\n* Documentation: https://chibi-lxc.readthedocs.io.\n\n\nFeatures\n--------\n\n* create container\n* provision container\n* destroy container\n\n\n=======\nHistory\n=======\n\n0.0.1 (2020-04-05)\n------------------\n\n* First release on PyPI.\n\n\n",
    "bugtrack_url": null,
    "license": "WTFPL",
    "summary": "definition of lxc containers using python",
    "version": "0.3.0",
    "split_keywords": [
        "chibi_lxc"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2cd0332764d70762d6cea6a8c2d729cdd8396555c2bb4997bc094327be667ed6",
                "md5": "475db6fbc8947d788cbf1e5526a5e6c1",
                "sha256": "04ca4628e43ee2756aa9a88ff058a9ff76cf327cf6f93aaf83299e6a2368fc12"
            },
            "downloads": -1,
            "filename": "chibi_lxc-0.3.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "475db6fbc8947d788cbf1e5526a5e6c1",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 9677,
            "upload_time": "2023-04-14T23:02:03",
            "upload_time_iso_8601": "2023-04-14T23:02:03.754603Z",
            "url": "https://files.pythonhosted.org/packages/2c/d0/332764d70762d6cea6a8c2d729cdd8396555c2bb4997bc094327be667ed6/chibi_lxc-0.3.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f503cbc822fe06d584bef05e3c4fb734d0f8d4add4c40537d87b6df24521edf0",
                "md5": "0e855bb7ddd0a096b471aabd2fb9e77a",
                "sha256": "5522162d031997c0816494cbb1aad694dcb793f4bb4dde224b193e6a94ccfcca"
            },
            "downloads": -1,
            "filename": "chibi_lxc-0.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "0e855bb7ddd0a096b471aabd2fb9e77a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 17212,
            "upload_time": "2023-04-14T23:02:06",
            "upload_time_iso_8601": "2023-04-14T23:02:06.204674Z",
            "url": "https://files.pythonhosted.org/packages/f5/03/cbc822fe06d584bef05e3c4fb734d0f8d4add4c40537d87b6df24521edf0/chibi_lxc-0.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-14 23:02:06",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "dem4ply",
    "github_project": "chibi_lxc",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": false,
    "lcname": "chibi-lxc"
}
        
Elapsed time: 0.12867s