Skip to content

Data structure formatter from files to structured file

License

Notifications You must be signed in to change notification settings

sanoguzhan/refacto

Repository files navigation

Refacto & Parsing Library

PyPI implementation Documentation Status PRs Welcome

Parsing library for re-structuring datasets of pv plants. Parsing Library consist of two packages parsing python library as an extension and refacto c++ library.

Prerequisites

CMake v3.15+ - found at https://cmake.org/

C++ Compiler - needs to support at least the C++17 standard, i.e. MSVC, GCC, Clang


Env Setup

VSCode

Build dev container

Terminal

    cd docker
    docker-compose build
    docker-compose run refacto bash

Run Project

Build

    mkdir build/ && cd build/
    cmake .. -DCMAKE_INSTALL_PREFIX=/absolute/path/to/custom/install/directory
    cmake --build . --target install 

Note: to disable to build test add -DRefacto_ENABLE_UNIT_TESTING=OFF flag

Run Tests

    cd build          # if not in the build directory already
    ctest -C Release  # or `ctest -C Debug` or any other configuration you wish to test

This will compile all the code, build the c++ library and run the tests.

Modules:

Name Type Library
XMLParser XML files Refacto & Parsing
CSVParser CSV files Refacto & Parsing
Decompressdir Compressed files Refactor & Parsing
Compressdir XML and CSV files Refactor & Parsing
Cleandir Clean files Refactor & Parsing

Extension

Python

Python Package QParsing is located interface/py3

To build the package

    python3 setup.py install_library build_ext sdist bdist_wheel

About

Data structure formatter from files to structured file

Resources

License

Stars

Watchers

Forks

Packages

No packages published