Skip to content
/ beecell Public

beecell is a project that contains various python 2 utility modules. Utility are useful to manage password, connect to a sql db and manage a remote ssh connection.

Notifications You must be signed in to change notification settings

Nivola/beecell

Repository files navigation

beecell

beecell is a project that contains various python 3 utility modules. Utility are useful to manage password, connect to a sql db and manage a remote ssh connection.

Here a more specific description of packages and modules.

Utility file that include variuos function:

  • simple.py: general function for password encryption and decryption, dictionary utility, print data etc.
  • remote.py: various class create remote client, run ssh command, run tcp command, make http request, install software in a remote portal

Utility package:

  • paramiko_shell: Python implementation of SSHv2. This package run and interactive shell and offers utility to handle it
  • networkx: utility for handle network
  • db: database manager for mysql, postgress and redis
  • auth: authentication manager based on database and on ldap
  • logger: logging helper

Prerequisites

Fundamental requirements is python 3.7>.

First of all you have to install some package and create a python virtual env:

$ sudo apt -y install gcc python-dev sshpass rsync mariadb-client git libldap2-dev libffi-dev libssl-dev libsasl2-dev pkg-config libvirt-dev
$ python3 -m venv /tmp/py3-test-env
$ source /tmp/py3-test-env/bin/activate

Installing

Public packages:

$ pip install -U git+https://github.com/Nivola/beecell.git

Running the tests

Activate virtual env

$ source /tmp/py3-test-env/bin/activate

Open tests directory beecell/tests. Copy file beecell.yml in your home directory. Open the file and set correctly all the variables.

Run some tests:

$ python sendmail.py
$ python paramiko_shell.py 
$ python networkx_layout.py
$ python db/manager_mysql.py 
$ python db/manager_redis.py
$ python auth/perm.py 
$ python auth/ldap_auth.py 
$ python auth/database_auth.py 

Test log can be seen in the home directory. Files:

  • test.log

Versioning

We use Semantic Versioning for versioning. (https://semver.org)

Authors and Contributors

See the list of contributors who participated in this project in the file AUTHORS.md contained in each specific project.

Copyright

CSI Piemonte - 2018-2022

Regione Piemonte - 2020-2022

License

See the *LICENSE.txt file for details

About

beecell is a project that contains various python 2 utility modules. Utility are useful to manage password, connect to a sql db and manage a remote ssh connection.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages