Skip to content

deepcoder42/rabbitmq-lib

Repository files navigation

Python project that contains common libraries and classes for RabbitMQ.

Classification (U)

Description:

This project consists of a number of Python files that are common function libraries and classes for connecting to and operating in a RabbitMQ system.

This README file is broken down into the following sections:

  • Prerequisites
  • Installation
  • Testing
    • Unit

Prerequisites:

  • List of Linux packages that need to be installed on the server.
    • git
    • python-pip

Installation:

  • From here on out, any reference to {Python_Project} or PYTHON_PROJECT replace with the baseline path of the python program.
  • Replace any reference to {Other_Python_Project} with the baseline path of another python program.
  • There are two types of installs: pip and git.

Pip Installation:

Create requirements file in another program's project to install rabbitmq-lib as a library module.

Create requirements-rabbitmq-lib.txt:

cd {Python_Project}
cp requirements-rabbitmq-lib.txt {Other_Python_Project}/requirements-mysql-lib.txt
Modify the other program's README.md file to add the pip commands under the "Install supporting classes and libraries" section.

Modify the {Other_Python_Project}/README.md file and add the following line:

   pip install -r requirements-rabbitmq-lib.txt --target rabbit_lib --system
Add the general Rabbitmq-lib requirements to the other program's requirements.txt file. Remove any duplicates.

Modify the {Other_Python_Project}/requirements.txt file and add the following line:

pika==0.11.0

Git Installation:

Install general Python libraries and classes using git.

cd {Python_Project}
git clone git@github.com:deepcoder42/rabbitmq-lib.git

Install/upgrade system modules.

sudo bash
umask 022
pip install -r requirements.txt --upgrade --system
exit

Testing

Unit Testing:

Installation:

Install the project using the procedures in the Installation section.

Testing:

cd {Python_Project}/rabbitmq-lib
test/unit/rabbitmq_class/unit_test_run.sh

Code Coverage:

cd {Python_Project}/rabbitmq-lib
test/unit/rabbitmq_class/code_coverage.sh

About

Python project that contains common libraries and classes for RabbitMQ.

Resources

License

Stars

Watchers

Forks

Packages

No packages published