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.
- Prerequisites
- Installation
- Testing
- Unit
- List of Linux packages that need to be installed on the server.
- git
- python-pip
- 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.
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
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
Install the project using the procedures in the Installation section.
cd {Python_Project}/rabbitmq-lib
test/unit/rabbitmq_class/unit_test_run.sh
cd {Python_Project}/rabbitmq-lib
test/unit/rabbitmq_class/code_coverage.sh