semvec/pypi-packages huggingface dataset:
pig-latin 0.1.4
Translate text into Pig Latin using Python
License: Unlicense

# Python Pig Latin

Translate text into Pig Latin using Python

## How it works

This script converts English text in Pig Latin following these steps:

- Strips non-alpha or single space characters from input text
- Converts input text to all lower case
- For words that start with consonants, moves all consonants before the first vowel to the end of the word ("the" becomes "ethay" not "hetay")
- For words that start with vowels, nothing is changed, only the suffix is added
- Adds suffix "ay" to the end of words

## Instructions

Install with Pip/PyPi in the command line interface:

```
pip install pig-latin
```

In your Python code, import the library:

```
import piglatin
```

Call the translator in your code:

```
piglatin.translate('Your text goes here!')
```

Your text will be translated into Pig Latin and returned as a string.
port-scanner 0.1.4
A simple Python port scanner
License: Unlicense

# Python Port Scanner

A simple port scanner built with Python

## How it works

This scans a range of ports for a given URL and prepares a report showing which ports are open.

## Instructions

Install with Pip/PyPi in the command line interface:

```
pip install port-scanner
```

In your Python code, import the library:

```
import portscanner
```

Create an instance of the Target class:

```
my_target = portscanner.Target("example.com")
```

Scan your target one or more times. All the settings shown below are optional, and the example code shows what the defaults would be if nothing is specified.

- "min" and "max" represent the range of ports to scan
- "timeout" is how long in seconds the scanner will wait for an unresponsive port before moving on to the next one

```
my_target.scan(min = 1, max = 100, timeout = 0.01)
```

Generate a report of the results of your scan(s), which will be returned as a list. Set all to "True" or leave it blank if you want your report to include all of the scans for your target, or set it to "False" to see only the most recent scan.

```
my_target.report(all = True)
```