Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vroncevic/gen_message_queue
Message queues skeleton for integration processes
https://github.com/vroncevic/gen_message_queue
bsd c communication generator ipc linux macos message-queue messaging posix python3 qnx template unix
Last synced: 22 days ago
JSON representation
Message queues skeleton for integration processes
- Host: GitHub
- URL: https://github.com/vroncevic/gen_message_queue
- Owner: vroncevic
- License: gpl-3.0
- Created: 2018-09-19T17:49:31.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-08T21:32:05.000Z (4 months ago)
- Last Synced: 2024-08-09T12:26:24.108Z (3 months ago)
- Topics: bsd, c, communication, generator, ipc, linux, macos, message-queue, messaging, posix, python3, qnx, template, unix
- Language: C
- Homepage: https://vroncevic.github.io/gen_message_queue
- Size: 6.9 MB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Generate Message Queue
**gen_message_queue** is tool for generation message queue modules.
Developed in **[python](https://www.python.org/)** code: **100%**.
The README is used to introduce the modules and provide instructions on
how to install the modules, any machine dependencies it may have and any
other information that should be provided before the modules are installed.[![gen_message_queue python checker](https://github.com/vroncevic/gen_message_queue/actions/workflows/gen_message_queue_python_checker.yml/badge.svg)](https://github.com/vroncevic/gen_message_queue/actions/workflows/gen_message_queue_python_checker.yml) [![gen_message_queue package checker](https://github.com/vroncevic/gen_message_queue/actions/workflows/gen_message_queue_package_checker.yml/badge.svg)](https://github.com/vroncevic/gen_message_queue/actions/workflows/gen_message_queue_package.yml) [![GitHub issues open](https://img.shields.io/github/issues/vroncevic/gen_message_queue.svg)](https://github.com/vroncevic/gen_message_queue/issues) [![GitHub contributors](https://img.shields.io/github/contributors/vroncevic/gen_message_queue.svg)](https://github.com/vroncevic/gen_message_queue/graphs/contributors)
**Table of Contents**
- [Installation](#installation)
- [Install using pip](#install-using-pip)
- [Install using build](#install-using-build)
- [Install using py setup](#install-using-py-setup)
- [Install using docker](#install-using-docker)
- [Dependencies](#dependencies)
- [Tool structure](#tool-structure)
- [Docs](#docs)
- [Contributing](#contributing)
- [Copyright and licence](#copyright-and-licence)### Installation
![debian linux os](https://raw.githubusercontent.com/vroncevic/gen_message_queue/dev/docs/debtux.png)
[![gen_message_queue python3 build](https://github.com/vroncevic/gen_message_queue/actions/workflows/gen_message_queue_python3_build.yml/badge.svg)](https://github.com/vroncevic/gen_message_queue/actions/workflows/gen_message_queue_python3_build.yml)
Currently there are three ways to install package
* Install process based on using pip mechanism
* Install process based on build mechanism
* Install process based on setup.py mechanism
* Install process based on docker mechanism##### Install using pip
**gen_message_queue** is located at **[pypi.org](https://pypi.org/project/gen-message-queue/)**.
You can install by using pip
```bash
# python3
pip3 install gen-message-queue
```##### Install using build
Navigate to release **[page](https://github.com/vroncevic/gen_message_queue/releases/)** download and extract release archive.
To install **gen_message_queue** type the following
```bash
tar xvzf gen_message_queue-x.y.z.tar.gz
cd gen_message_queue-x.y.z/
# python3
wget https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py
python3 -m pip install --upgrade setuptools
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build
pip3 install -r requirements.txt
python3 -m build --no-isolation --wheel
pip3 install ./dist/gen_message_queue-*-py3-none-any.whl
rm -f get-pip.py
chmod 755 /usr/local/lib/python3.10/dist-packages/usr/local/bin/gen_message_queue_run.py
ln -s /usr/local/lib/python3.10/dist-packages/usr/local/bin/gen_message_queue_run.py /usr/local/bin/gen_message_queue_run.py
```##### Install using py setup
Navigate to release **[page](https://github.com/vroncevic/gen_message_queue/releases/)** download and extract release archive.
To install modules, locate and run setup.py with arguments
```bash
tar xvzf gen_message_queue-x.y.z.tar.gz
cd gen_message_queue-x.y.z/
# python3
pip3 install -r requirements.txt
python3 setup.py install_lib
python3 setup.py install_data
python3 setup.py install_egg_info
```##### Install using docker
You can use docker to create image/container.
### Dependencies
**gen_message_queue** requires next modules and libraries
* [ats-utilities - Python App/Tool/Script Utilities](https://vroncevic.github.io/ats_utilities)
### Tool structure
**gen_message_queue** is based on OOP
Generator structure:
```bash
gen_message_queue/
├── conf/
│ ├── gen_message_queue.cfg
│ ├── gen_message_queue.logo
│ ├── gen_message_queue_util.cfg
│ ├── project.yaml
│ └── template/
│ ├── posix/
│ │ ├── mq_posix_close.template
│ │ ├── mq_posix_fatal_error.template
│ │ ├── mq_posix_open_mode.template
│ │ ├── mq_posix_open.template
│ │ ├── mq_posix_receive.template
│ │ ├── mq_posix_send.template
│ │ ├── mq_posix.template
│ │ └── mq_posix_unlink.template
│ └── sysv/
│ ├── mq_sysv_control.template
│ ├── mq_sysv_file_to_key.template
│ ├── mq_sysv_get_buffer.template
│ ├── mq_sysv_get_buffer_type.template
│ ├── mq_sysv_key_to_id.template
│ ├── mq_sysv_receive.template
│ ├── mq_sysv_send.template
│ ├── mq_sysv_set_buffer.template
│ ├── mq_sysv_set_buffer_type.template
│ └── mq_sysv.template
├── __init__.py
├── log/
│ └── gen_message_queue.log
├── pro/
│ ├── __init__.py
│ ├── read_template.py
│ └── write_template.py
└── run/
└── gen_message_queue_run.py8 directories, 28 files
```### Code coverage
| Name | Stmts | Miss | Cover |
|------|-------|------|-------|
| `gen_message_queue/__init__.py` | 75 | 14 | 81% |
| `gen_message_queue/pro/__init__.py` | 62 | 2 | 97% |
| `gen_message_queue/pro/read_template.py` | 54 | 7 | 87% |
| `gen_message_queue/pro/write_template.py` | 54 | 4 | 93% |
| **Total** | 245 | 27 | 89% |### Docs
[![Documentation Status](https://readthedocs.org/projects/gen_message_queue/badge/?version=latest)](https://gen-message-queue.readthedocs.io/en/latest/?badge=latest)
More documentation and info at
* [gen_message_queue.readthedocs.io](https://gen-message-queue.readthedocs.io)
* [www.python.org](https://www.python.org/)### Contributing
[Contributing to gen_message_queue](CONTRIBUTING.md)
### Copyright and licence
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
Copyright (C) 2018 - 2024 by [vroncevic.github.io/gen_message_queue](https://vroncevic.github.io/gen_message_queue)
**gen_message_queue** is free software; you can redistribute it and/or modify
it under the same terms as Python itself, either Python version 3.x or,
at your option, any later version of Python 3 you may have available.Lets help and support PSF.
[![Python Software Foundation](https://raw.githubusercontent.com/vroncevic/gen_message_queue/dev/docs/psf-logo-alpha.png)](https://www.python.org/psf/)
[![Donate](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.python.org/psf/donations/)