Metadata-Version: 2.4
Name: cyberark-tpc-plugin-parser
Version: 0.2.0
Summary: A package to help parse CyberArk TPC plugin prompts and process files.
Author-email: Peter McDonald <git@petermcdonald.co.uk>
License: MIT License
        
        Copyright (c) 2025 (Peter McDonald)
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: homepage, https://github.com/petermcd/CyberArk-TPC-Plugin-Parser
Project-URL: repository, https://github.com/petermcd/CyberArk-TPC-Plugin-Parser.git
Project-URL: issues, https://github.com/petermcd/CyberArk-TPC-Plugin-Parser/issues
Keywords: cyberark,parser,tpc
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Topic :: Software Development :: Testing
Classifier: Typing :: Typed
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# CyberArk TPC Plugin Parser

CyberArk TPC Plugin Parser is a package intended to make it easy to work with CyberArk process
and platform ini files.

The lexer and parser breaks down the files to their constituent parts so that they can be
further processed by other applications.

## Installation

CyberArk TPC Plugin Parser can be installed using Pip:

```bash
pip install cyberark-tpc-plugin-parser
```

## Usage

The main point of entry is the parser, this takes the content of the process and prompts
files as arguments:

```python
from tpc_plugin_parser.parser import Parser

with open('/path/to/files/process.ini') as process_fh:
    process_content: str = process_fh.read()
    
with open('/path/to/files/prompts.ini') as prompts_fh:
    prompts_content: str = prompts_fh.read()

parser: Parser = Parser(process_file=process_content, prompts_file=prompts_content)
process_file_tokens = parser.process_file
prompt_file_tokens = parser.prompts_file
```
