semvec/pypi-packages huggingface dataset:
vec2d 0.2.3
Maths and Graph functions for vectors on the 2D plane
License: MIT
Requires Python: >=3.10,<4.0

# Vector2D library
> Helper library with Math and graphing related functions for vectors in the 2D plane.

## Usage

Install the library by typing:

```bash
python -m pip install vec2d
```

Once installed, you'll have access to the Math and graphing packages:

```python
from vec2d.math import add
from vec2d.graph import draw, Arrow, Colors, LineStyles

u = (2, 0)
v = (1, 3)

draw(
    Arrow(u, color=Colors.ORANGE),
    Arrow(v, color=Colors.PINK, linestyle=LineStyles.LOOSELY_DASHED),
    Arrow(add(u, v), color=Colors.BLUE)
)
```

The functions in the `vec2d.math` library are self-explanatory. Vectors are represented and tuples with `int` or `float` components.

The `vec2d.graph` is a helper library for graphing related capabilities for 2D objects. With it you can draw simple figures such as points, segments, polygons, and arrows on the 2D plane using Matplotlib as the backend in a very simple way and without any hassle.

The library exposes classes for the figures, an enumeration for the common colors, and a function `draw` to render the figures as Matplotlib plots.

| Class | Constructor example | Description |
| :---- | :------------------ | :---------- |
| `Polygon` | `Polygon(*vectors)` | Draws a polygon whose vertices are represented by the given list of vectors. |
| `Points` | `Points(*vectors)` | Represents a list of points (i.e., dots), one at each of the input vectors. |
| `Arrow` | `Arrow(tip)`<br>`Arrow(tip, tail)` | Draws an arrow from the origin to the `tip` vector, or from the `tail` vector to the `tip` vector if `tail` if given. |
| `Segment` | `Segment(start, end)` | Draws a line segment from the start to the vector end. |

## See Also

See also [vec3d](https://pypi.org/project/vec3d/) for a similar library for vectors in the 3D space.

## Acknowledgements

This library is a small refactoring of https://github.com/orlandpm/Math-for-Programmers library.
pywordsegment 0.4.3
Concatenated-word segmentation Python library written in Rust
License: MIT
Keywords: word,segment,rust,pyo3

<p align="center">
    <a href="https://github.com/intsights/pywordsegment">
        <img src="https://raw.githubusercontent.com/intsights/pywordsegment/master/images/logo.png" alt="Logo">
    </a>
    <h3 align="center">
        Concatenated-word segmentation Python library written in Rust
    </h3>
</p>


![license](https://img.shields.io/badge/MIT-License-blue)
![Python](https://img.shields.io/badge/Python-3.7%20%7C%203.8%20%7C%203.9%20%7C%203.10%20%7C%203.11-blue)
![OS](https://img.shields.io/badge/OS-Mac%20%7C%20Linux%20%7C%20Windows-blue)
![Build](https://github.com/intsights/pywordsegment/workflows/Build/badge.svg)
[![PyPi](https://img.shields.io/pypi/v/pywordsegment.svg)](https://pypi.org/project/pywordsegment/)

## Table of Contents

- [Table of Contents](#table-of-contents)
- [About The Project](#about-the-project)
  - [Built With](#built-with)
  - [Installation](#installation)
- [Usage](#usage)
- [License](#license)
- [Contact](#contact)


## About The Project

A fast concatenated-word segmentation library written in Rust, inspired by [wordninja](https://github.com/keredson/wordninja) and [wordsegment](https://github.com/grantjenks/python-wordsegment). The binding uses [pyo3](https://github.com/PyO3/pyo3) to interact with the rust package.


### Built With

* [pyo3](https://github.com/PyO3/pyo3)


### Installation

```sh
pip3 install pywordsegment
```


## Usage

```python
import pywordsegment

# The internal UNIGRAMS & BIGRAMS corpuses are lazy initialized
# once per the whole module. Multiple WordSegmenter instances would
# not create new dictionaries.

# Segments a word to its parts
pywordsegment.WordSegmenter.segment(
    text="theusashops",
)
# ["the", "usa", "shops"]


# This function checks whether the substring exists as a whole segment
# inside text.
pywordsegment.WordSegmenter.exist_as_segment(
    substring="inter",
    text="internationalairport",
)
# False

pywordsegment.WordSegmenter.exist_as_segment(
    substring="inter",
    text="intermilan",
)
# True
```


## License

Distributed under the MIT License. See `LICENSE` for more information.


## Contact

Gal Ben David - gal@intsights.com

Project Link: [https://github.com/intsights/pywordsegment](https://github.com/intsights/pywordsegment)
vulzap 0.1.1
0/1-Day Semiautomation Anaylsis Tool
License: MIT
Requires Python: >=3.8

<h1 align="center">
  <br>
  <a href="http://www.github.com/vulzap/vulzap"><img src="https://avatars.githubusercontent.com/u/148681518?s=200&v=4" alt="vulzap" width="200"></a>
  <br>
  vulzap
  <br>
</h1>

<h4 align="center">Web-based 0/1-Day Semi-Automation Analysis Tool</h4>

<p align="center">
  <a href="#key-features">Key Features</a> •
  <a href="#how-to-use">How To Use</a> •
  <a href="#build">Build</a> •
  <a href="#license">License</a>
</p>

## Key Features

## Installation

### Manual

```sh
$ python3 setup.py install
```

```sh
$ pip3 install vulzap
```

## How To Use

### Set environments

| Key       | Value (default)         |
| --------- | ----------------------- |
| DB_HOST   | MySQL Host (localhost)  |
| DB_PORT   | MySQL Port (3306)       |
| DB_USER   | MySQL User (root)       |
| DB_PASSWD | MySQL Password ()       |
| DB_NAME   | MySQL DataBase (vulzap) |

**Default**

```yaml
DB_HOST=localhost
DB_PORT=3306
DB_USER=root
DB_PASSWD=
DB_NAME=vulzap
```

Under `~/.vzrc` (MacOS), `%UserProfile\.vzrc` (Windows)

You can set environment values with this command:

```php
$ vz setenv <key> <value>
```

Also can print environment values with this command:

```php
$ vz printenv
```

### Crawl

```powershell
$ python vulzap\main.py crawl -u http://localhost:9001 -H "{'Cookie': 'test'}"
```

### Exploit

vulzap supports: XSS(Cross Site Script), SQL Injection

**XSS**

```powershell
$ python vulzap\main.py exploit --mode xss -u http://13.209.98.240/DVWA/vulnerabilities/xss_r/?name=name -m GET
```

```sh
$ python vulzap/main.py exploit --mode xss -u http://13.209.98.240/DVWA/vulnerabilities/xss_r/?name=name -m GET
```

**SQL Injection**

```powershell
$ python vulzap\main.py exploit --mode sqli -d "{'http://testphp.vulnweb.com/listproducts.php': {'GET': ['cat'], 'POST': []}, 'http://example.com/': {'GET': ['search', 'def'], 'POST': []}}"
```

```sh
$ python vulzap/main.py exploit --mode sqli -d "{'http://testphp.vulnweb.com/listproducts.php': {'GET': ['cat'], 'POST': []}, 'http://example.com/': {'GET': ['search', 'def'], 'POST': []}}"
```

### show

```powershell
$ python vulzap\main.py show
```

### proxy

```powershell
$ python vulzap\main.py proxy --host localhost --port 8080
```

### Build

```sh
# test build
$ python setup.py develop

$ python setup.py install
```

### Release

```sh
$ python setup.py sdist bdist_wheel

$ python -m twine upload dist/*
```

## License

MIT