Skip to main content

run terminal commands

Project description

chibi_command

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

run terminal commands

Use

use lsblk

from chibi_command.disk.lsblk import Lsblk

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

parchear popen

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.1 ( 2026-04-28 )

  • se agrego a status no_fail para los servicios desabilitados

  • se agrego a pacman print version “Pacman.sync().print_version().run( “paquete” ).result”

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 )

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chibi_command-2.5.1.tar.gz (26.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chibi_command-2.5.1-py2.py3-none-any.whl (29.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file chibi_command-2.5.1.tar.gz.

File metadata

  • Download URL: chibi_command-2.5.1.tar.gz
  • Upload date:
  • Size: 26.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for chibi_command-2.5.1.tar.gz
Algorithm Hash digest
SHA256 6c9789d871b5d73c1cdbee3cbbc10c6bc35af18f5462cb5746d88e53bfd8d769
MD5 2965b89313d07237fbf8f728b41f1817
BLAKE2b-256 125b2ad4beebbdc5e3f8fcf7ed216e4c552083ab49085790f914dac4c10fcf4f

See more details on using hashes here.

File details

Details for the file chibi_command-2.5.1-py2.py3-none-any.whl.

File metadata

  • Download URL: chibi_command-2.5.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 29.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for chibi_command-2.5.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 97cda5ed483179ac3e0902d7daaa3a9dcf91e7f3ec280e4a80dde879964772bf
MD5 70b63b43cbec313d4a21b8f7d10b64a6
BLAKE2b-256 3a15ae80c07d352da7b972dc5bc37c03aea7414f9a6ef300fd03e2c54d510d92

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page