THIS IS AN EXPERIMENTAL PACKAGE. DSRF PACKAGE HASN'T BEEN UPDATED SINCE 2020
The DSRF Conformance Checker is a tool designed and prepared by DDEX. The oryginal tool verifies the conformance of a Digital Sales Report Format (DSRF) file using Perl. The application validates input files against a conformance profile using Google's dsrf library. We re-writed this Perl script using Python.
- Supports checking multiple DSRF files at once
- Validates files and ensures they conform to the profile
- Automatically removes log files upon completion
- Outputs results into a
.logfile for review
-
Clone the repository:
git clone https://github.com/musictechlab/mtl-ddex-flatfilevalidator.git cd mtl-ddex-flatfilevalidator -
Install dependencies using Poetry:
poetry install
-
Install required dependencies for handling
.protofiles:poetry add protobuf
-
Install the
dsrflibrary: If you are pulling the DSRF library from GitHub:poetry add git+https://github.com/ddexnet/dsrf.git
-
Ensure
protocis installed for generating the required*_pb2.pyfiles:brew install protobuf
To run the DSRF conformance checker, use the following command:
poetry run dsrf-conf <file1> <file2> ...poetry run dsrf-conf dsrf_file1.txt dsrf_file2.txtThe script will validate the input files and output the results to a log file located in the same directory as the input files.
To generate Python code for protocol buffer files (if needed), run:
protoc --python_out=. *.protoThis will create the required _pb2.py files for use in the project.
- Fork the repository
- Create a new branch (
git checkout -b feature-branch) - Make your changes
- Push your changes to the branch (
git push origin feature-branch) - Create a new Pull Request
This project is licensed under the MIT License. See the LICENSE file for details.