semvec/pypi-packages huggingface dataset:
ffptutils 0.1.1
a python library that reads and writes Spirent iTest ParameterTree (.ffpt) files
License: MIT
Requires Python: >=3.6

# ffptutils-py

A python library that reads/writes Spirent iTest Parameter (.ffpt) files.

Tested with Python 3.6, 3.7, and 3.8 on Windows and Ubuntu platforms.

## Features

- Convert .ffpt file <-> .csv file.
  - Supported CSV encoding is utf-8 with BOM (Suitable for Windows Excel).
  - Supported Parameter Types are: TEXT, BOOLEAN, INTEGER and DOUBLE.
- Load .ffpt file from your python script.

## Install

```
pip install ffptutils
```

## Usage 1) Convert .ffpt <-> .csv

1) Convert a ffpt file to csv format. 

```
> ffpt2csv file1_orig.ffpt edit.csv
```

2) Edit the csv file using Excel or other software.
![csvedit](csvedit.png)

3) Convert the csv file back to ffpt format.
```
> csv2ffpt edit.csv file1.ffpt
```

## Usage 2) General purpose .ffpt file loader

```python
import ffptutils
pt = ffptutils.load('test/2.ffpt')

assert pt['param1'] == 'some value'
assert pt['param2'] == True
assert pt['param3'] == False
assert pt['param4'] == None
assert pt['param5'] == 24
assert pt['param6'] == 1.0
assert pt['param7/param1'] == 'hoge'
assert pt['param7/param2/param1'] == 'fuga'
```

As you can see, it recognizes the Parameter types and converts into the appropriate python types as below:

- TEXT -> str
- DOUBLE -> float
- INTEGER -> int
- BOOLEAN -> bool

## PIP Package

- https://pypi.org/project/ffptutils/
Taby 1.0.0
CLI for highlighting tab spaces in a file
License: MIT
Keywords: python,tabs,highlight,CLI

# Taby

A python package that highlights tabs in a file. 

### Features
- Easy to use
- Fast
- Efficient

### Author
This pip package was created and maintained by Landon Hutchins and Travis Mackey

### Installation
The following are the steps on how to use the Taby package.

```sh
pip install taby
```

```
#------Example Usage------#
#import package

from Taby import *

#Create a highlighter object by specifying the color of the highlight and then the 'TAB' keyword to replace all tab instances in the file.

highlighter_object = higlighter('yellow', 'TAB')

#Specify a file to be read from, a file to output, and the highlighter object
#Any file type can be read in, except for byte-like files such as PDF or JPEG

reader('inputfile.py', 'outfile.txt', highlighter_object)

#Once the output file has been written to, specify the same outfile and pass in the highlighter object so that the changes can be printed to the console. 

console('outfile.txt', highlighter_object)


#Current highlights available:
 - yellow
 - red
 - green
 - blue

```
### Contributions
This project is currently closed to contributions

### License
MIT