Skip to main content

chibi_lxc

https://img.shields.io/pypi/v/chibi_lxc.svg https://img.shields.io/travis/dem4ply/chibi_lxc.svg Documentation Status

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

Example

write a file with the container

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

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

Features

  • create container

  • provision container

  • destroy container

History

1.0.1 (2026-06-06)

  • se agrego una excepcion para cuando sea root no use la env var de USER

0.0.1 (2020-04-05)

  • First release on PyPI.

Metadata

Release files for chibi-lxc 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chibi-lxc 1.0.1
File Size Uploaded Provenance
chibi_lxc-1.0.1.tar.gz 17.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for chibi-lxc 1.0.1
File Interpreter ABI Platform
chibi_lxc-1.0.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 27.5 kB

Release files / chibi_lxc-1.0.1.tar.gz

Download URL chibi_lxc-1.0.1.tar.gz
Size 17.6 kB
Tags Source
SHA-256 checksum
How to use checksums
390b8c51812c386529b44253f57e07992d32558a553d2ee79bf068265541bf66
BLAKE2b-256 checksum
How to use checksums
81054f268861c4a649870ec4e513315fa04a815dd96d75ae76b1f019d596e81a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Release files / chibi_lxc-1.0.1-py2.py3-none-any.whl

Download URL chibi_lxc-1.0.1-py2.py3-none-any.whl
Size 9.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
86489d5e9595974eee3517416e502d41aed522d0842bc27631d5abbaad846a4a
BLAKE2b-256 checksum
How to use checksums
2abd003a6e39039bfeac6f803e872924baa0323f75945bc61e2f0d30290fe501
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Security for chibi-lxc 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page