semvec/pypi-packages huggingface dataset:
abook-parser 0.1.0
parser for the abook CLI
License: MIT
Requires Python: >=3.12

# abook_parser

parser for the [abook](https://abook.sourceforge.io/) CLI

## Installation

Requires `python3.12+`

To install with pip, run:

```
pip install git+https://github.com/purarue/abook_parser
```

## Usage

This can read the addressbook, sort it by some key, and print a formatted version (either `JSON` or the `abook` addressbook format).

```
Usage: abook_parser parse [OPTIONS] FILE

  Parse the addressbook file, and sort it by the name field

Options:
  -t, --output-type [abook|json]  output format type
  -k, --sort-key TEXT             sort addressbook items by key
  -o, --output PATH               output file path
  --help                          Show this message and exit.
```

It also has commands to `add` or `edit` and item with a [`fzf`](https://github.com/junegunn/fzf)-based interactive mode.

```
Usage: abook_parser edit [OPTIONS] FILE

  Edit a field in the addressbook file

Options:
  --ignore-case / --no-ignore-case
                                  ignore case in query
  -q, --query TEXT                query string to search for
  --help                          Show this message and exit.
```

### Tests

```bash
git clone 'https://github.com/purarue/abook_parser'
cd ./abook_parser
pip install '.[testing]'
pytest
flake8 ./abook_parser
mypy ./abook_parser
```
vulheader 1.0.1
A Python tool for checking missing HTTP security headers for better web security.
License: MIT
Requires Python: >=3.7
Keywords: security headers, web security, HTTP headers, Strict-Transport-Security, Content-Security-Policy, X-Frame-Options, Referrer-Policy, vulnerability scanner, website security

# vulheader

A Python tool to check for missing HTTP security headers on websites. It can check for the presence of security headers like `Strict-Transport-Security`, `Content-Security-Policy`, `X-Frame-Options`, `X-Content-Type-Options`, `Referrer-Policy`, and `Permissions-Policy`.

## Installation

To install the package, run:

```bash
pip install vulheader
```

## Usage

You can use `vulheader` both as a Python package and as a command-line tool.

### As a Python Package

You can use the `check()` function to check for specific headers or all headers.

#### Check for a specific header

To check if a specific header is present or missing, use the following code:

```python
import vulheader

url = "https://example.com"

result = vulheader.check(url, "Strict-Transport-Security")
if result == "missing":
    print("Strict-Transport-Security: Missing")
else:
    print("Strict-Transport-Security: Present")
```

You can replace `"Strict-Transport-Security"` with any of the following headers to check for their presence:

- `Strict-Transport-Security`
- `Content-Security-Policy`
- `X-Frame-Options`
- `X-Content-Type-Options`
- `Referrer-Policy`
- `Permissions-Policy`

#### Check all headers at once

You can also check for all security headers at once:

```python
import vulheader

url = "https://example.com"

header_status = vulheader.check(url)

for header, status in header_status.items():
    print(f"{header}: {'Present' if status == 'present' else 'Missing'}")
```

### As a Command-Line Tool

Once installed, you can use `vulheader` directly from the command line to check the headers of a website.

#### Check for all headers

To check for all security headers:

```bash
vulheader --url https://example.com
```

#### Check for a specific header

To check for a specific header, use the `-H` option followed by the header name:
```bash
vulheader --url https://example.com -H "Strict-Transport-Security"
```

Replace `"Strict-Transport-Security"` with any of the following headers:

- `Strict-Transport-Security`
- `Content-Security-Policy`
- `X-Frame-Options`
- `X-Content-Type-Options`
- `Referrer-Policy`
- `Permissions-Policy`
- 
#### Checking all headers:

```bash
Strict-Transport-Security: Missing
Content-Security-Policy: Present
X-Frame-Options: Missing
X-Content-Type-Options: Missing
Referrer-Policy: Missing
Permissions-Policy: Missing
```

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.