Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sanoguzhan/refacto
Data structure formatter from files to structured file
https://github.com/sanoguzhan/refacto
Last synced: 1 day ago
JSON representation
Data structure formatter from files to structured file
- Host: GitHub
- URL: https://github.com/sanoguzhan/refacto
- Owner: sanoguzhan
- License: apache-2.0
- Created: 2021-01-18T09:21:34.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-27T14:58:58.000Z (over 2 years ago)
- Last Synced: 2024-03-15T14:10:29.020Z (8 months ago)
- Language: C++
- Size: 22.2 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Refacto & Parsing Library
[![PyPI implementation](https://img.shields.io/pypi/implementation/ansicolortags.svg)](https://pypi.python.org/pypi/ansicolortags/)
[![Documentation Status](https://readthedocs.org/projects/ansicolortags/badge/?version=latest)](http://ansicolortags.readthedocs.io/?badge=latest)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)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
```sh
cd docker
docker-compose build
docker-compose run refacto bash
```---
## Run Project
### Build
```sh
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
```sh
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](https://github.com/sanoguzhan/refacto/blob/master/include/refacto/xmlparser.hpp) | XML files | Refacto & Parsing |
| [CSVParser](https://github.com/sanoguzhan/refacto/blob/master/include/refacto/csvparser.hpp) | CSV files | Refacto & Parsing |
| [Decompressdir](https://github.com/sanoguzhan/refacto/blob/master/include/refacto/cod.hpp) | Compressed files | Refactor & Parsing |
| [Compressdir](https://github.com/sanoguzhan/refacto/blob/master/include/refacto/cod.hpp) | XML and CSV files | Refactor & Parsing |
| [Cleandir](https://github.com/sanoguzhan/refacto/blob/master/include/refacto/cod.hpp) | Clean files | Refactor & Parsing |---
## Extension
### Python
Python Package QParsing is located interface/py3
*To build the package*
```sh
python3 setup.py install_library build_ext sdist bdist_wheel
```