Metadata-Version: 2.4
Name: chibi_command
Version: 2.5.0
Summary: run terminal commands
Home-page: https://github.com/dem4ply/chibi_command
Author: Dem4ply
Author-email: dem4ply@gmail.com
License: WTFPL
Keywords: chibi_command
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: Public Domain
Classifier: Natural Language :: English
Classifier: Natural Language :: Spanish
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Utilities
License-File: LICENSE
License-File: AUTHORS.rst
Requires-Dist: chibi>=0.5.5
Requires-Dist: chibi_hybrid>=0.0.1
Requires-Dist: chibi-atlas>=1.1.0
Requires-Dist: chibi_requests>=1.2.0
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: summary

=============
chibi_command
=============


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

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

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

run terminal commands


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


***
Use
***

use lsblk
=========

.. code-block:: python

	from chibi_command.disk.lsblk import Lsblk

	blocks = Lsblk().run().result
	assert blocks[ 'sda' ].childs[ 'name' ]


parchear popen
==============

.. code-block:: python

	from chibi_command import Command, Command_json_result
	from chibi_command.unittests import patch_empty


	class Test_test( TestCase ):

		@patch_empty
		def test_some_test( self, popen ):
			self.command().run()
			popen.assert_called()


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

********************
2.5.0 ( 2026-04-28 )
********************

* se agrego a pacman el parametro no_confirm

********************
2.4.5 ( 2026-03-25 )
********************

* se cambio para que el comando ssh use -t para una pseudo terminal

********************
2.4.4 ( 2026-03-25 )
********************

* se cambio la estructura del comando ssh para poder encdenar multiples comandos con su
* se agrego el comando cd

********************
2.4.3 ( 2026-03-25 )
********************

* correcion cuando se manda su por ssh se agregaron las comillas para -c

********************
2.4.2 ( 2026-03-25 )
********************

* se agrego el argumento faltante para su -c en el comando sudo

********************
2.4.1 ( 2026-03-25 )
********************

* se agrega alternativa a sudo con su en el comando de ssh

********************
2.4.0 ( 2026-03-25 )
********************

* se agrego atajo para parchear popen
* se agrego parametro en las clases para agregar variables de ambiente cuando
	se ejecuta algun comando
* se agrego funcion para buscar paquetes con pacman

********************
2.3.2 ( 2026-03-24 )
********************

* se agrego la propiedad para asignar el identity file para ssh
* se agrego la propiedad de usuario y host para el comando ssh

********************
2.3.1 ( 2026-03-20 )
********************

* correcion en el nombre de la llave time o tiempo para el comando de ping

********************
2.3.0 ( 2026-03-20 )
********************

* se agrego la opcion de ignore-existing para rsync
* se agrego el comando e2label

********************
2.2.0 ( 2026-03-20 )
********************

* se agrego el comando lsblk en chibi_command.disk.lsblk

********************
2.1.1 ( 2025-05-22 )
********************

* usar el RPM.query() hace que el comando sea captivo

********************
2.1.0 ( 2025-05-21 )
********************

* se agrego el snippet para saber la ip local Ip.get_my_local_ip()
* se agregaron los argumentos para queries de changelog de rpm RPM.query().changelog().run( 'some.rpm' )

********************
2.0.0 ( 2025-05-15 )
********************

* se migro el uso de git a https://github.com/dem4ply/chibi_git

********************
1.1.3 ( 2025-03-12 )
********************

* se agrego repr a los results de los comandos
* correcion con el f string que faltaba en un logger debug

********************
1.1.0 ( 2024-10-18 )
********************

* comando ping

********************
1.0.0 ( 2024-10-18 )
********************

* se cambio el comportamiento para que tire una excepcion cada vez que un comando falla

********************
0.9.0 ( 2024-10-17 )
********************

* comando de ssh

********************
0.8.0 ( 2024-10-17 )
********************

* se agrego comandos para archlinux ( pacman y yay )

******************
0.6.0 (2020-02-19)
******************

* se agrego cp en chibi_command.commnon

******************
0.0.1 (2020-02-19)
******************

* First release on PyPI.
