Telco engineering data library
Project description
teed
Telco engineering data library
Probe and transform raw telco files into CSV.
A simple BulkCm file parsing
(env) joaomg@mypc:~/teed$ python -m teed bulkcm parse data/bulkcm.xml data
Parsing data/bulkcm.xml
Created data/ManagedElement.csv
Created data/ManagementNode.csv
Created data/SubNetwork.csv
Time: 0:00:00.000856
(env) joaomg@mypc:~/teed$
Install from source
git clone https://github.com/joaomg/teed.git
cd teed
pip install -e .
Probe a file
python -m teed bulkcm probe data/bulkcm_with_vsdatacontainer.xml
Parse a file output it's content to CSV files
python -m teed bulkcm parse data/bulkcm_empty.xml data
python -m teed bulkcm parse data/bulkcm_with_header_footer.xml data
python -m teed bulkcm parse data/bulkcm_with_vsdatacontainer.xml data
Usage
Beside command-line teed can be used as a library:
from teed import bulkcm, meas
## bulkcm
stream = bulkcm.BulkCmParser.stream_to_csv("data")
bulkcm.parse("data/bulkcm.xml", "data", stream)
## meas
meas.parse("data/mdc*xml", "data")
The bulkcm parser extracts content from a single file.
While the meas parser, in a single run, can process any number of XML files using wildcards and directory recursion.
The bulkcm and meas parsers also differ on CSV file creation:
-
bulkcm deletes previously existing CSV files
-
meas appends to existing CSV files
Take notice of these differences when calling the parsers from shell.
Or using them in data pipelines.
Documentation
Probe, split and extract configuration content from bulkcm XML files.
Extract performance data from meas XML files.
How to build teed.
License
The teed library is licensed under:
GNU Affero General Public License v3.0
On ETSI references and usage rights
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file teed-0.0.5.tar.gz
.
File metadata
- Download URL: teed-0.0.5.tar.gz
- Upload date:
- Size: 27.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b683d229f988c4402e81aaec6554f482f2c886385cb2e22b69ee75ae7b888fd |
|
MD5 | ea19ab12ec60248deb46708480cafb7a |
|
BLAKE2b-256 | c98d70db0f312f6bbc79942b4a90072d6aa86008e467fb1f6fe007f5ed2453ed |
File details
Details for the file teed-0.0.5-py2.py3-none-any.whl
.
File metadata
- Download URL: teed-0.0.5-py2.py3-none-any.whl
- Upload date:
- Size: 27.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b398199a30f823c17670be835d4354dd351eca159391bc15e4cbbac59a01168e |
|
MD5 | ced7bfdd4603fa56d38566d8c84fa275 |
|
BLAKE2b-256 | 43bcf1ed3e1e76fb4fbb519b0759d9c603663869cbc81350f74fc6bb99431708 |