Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mark-meyer/xml2pb
Scripts for creating realtime protobuffer from xml feed
https://github.com/mark-meyer/xml2pb
Last synced: about 2 months ago
JSON representation
Scripts for creating realtime protobuffer from xml feed
- Host: GitHub
- URL: https://github.com/mark-meyer/xml2pb
- Owner: mark-meyer
- Created: 2020-01-22T23:07:19.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-09-23T22:35:28.000Z (over 2 years ago)
- Last Synced: 2023-03-01T18:22:47.371Z (almost 2 years ago)
- Language: Python
- Size: 2.75 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# xmls2pb
Scripts to transform realtime xml data into google protobuf format### Requirements
Python 3.6 or greater### Installing
Install dependencies:
```
pip3 install -r requirements.txt
```Copy configuration in `config-orig.py` to config.py and add customization.
### Running
Start the script with
```
python ./run.py
```
or for more logging information:
```
python ./run.py --log DEBUG
```### Running as a service on EC2
The included file `xml2pb.service` is a basic systemd service. Place it somewhere
that systemd looks, such as `/etc/systemd/system` then reload, enable, and start:
```
sudo systemctl daemon-reload
sudo systemctl enable xml2pd.service
sudo systemctl start xml2pd.service
```
Check for status with:```
sudo systemctl status xml2pd.service
```### Authors
* **Mark Meyer** - *Initial work* - [Github](https://github.com/mark-meyer)