semvec/pypi-packages huggingface dataset:
mystipy 0.7.5
A simple Python data obfuscation utility.
License: MIT
Requires Python: >=3.8

# mystipy

This is an extremely simple command-line utility for obfuscating and deobfuscating data.

## Features

- Data is automatically compressed using gzip.
- Customizable encryption key (XOR) and salt size.
- Prompt mode for interactive input.
- Hexadecimal encoding is used on the output by default, but a `--binary` override is available.

## Installation

The program is a single file, so you can just download/run it manually: `python mystipy.py`

For the sake of convenience (and to be added to your `$PATH`), it is also available on PyPI.

```bash
pip install --upgrade mystipy
```

## Usage

### Basic Commands

- Obfuscate a file:

  ```bash
  mystipy input_file output_file
  ```

- Deobfuscate a file:
  ```bash
  mystipy input_file output_file --reverse
  ```

### Options

- `-p, --prompt`: Prompt mode. If provided, you will be prompted for any arguments you don't explicitly set.
- `-r, --reverse`: Deobfuscate the input file.
- `-k, --key`: XOR key for encryption/deencryption. Must be a valid byte string. (Default: "mystipy")
- `-s, --salt`: Number of bytes to use in salt. (Default: 16)
- `--binary`: Disable exadecimal encoding/decoding. The data will be (or is) compressed binary data.

### Examples

- Obfuscate a file with a custom key and default settings:

  ```bash
  mystipy myfile.txt obfuscated.myst -k "hunter2"
  ```

- Deobfuscate a binary encoded file:

  ```bash
  mystipy obfuscated.myst deobfuscated.txt -r --binary
  ```

- Use prompt mode for interactive input:

  ```bash
  mystipy -p
  ```

- Use it in your own program:

  ```python
  import mystipy

  # Define your key and data
  key = "hunter2".encode()
  data = b"I would tell you a joke about UDP, but I'm not sure if you'd get it."

  # Obfuscate the data
  obfuscated_data = mystipy.obfuscate(data, key)
  print(f"Obfuscated data: {obfuscated_data}")

  # Deobfuscate the data
  deobfuscated_data = mystipy.deobfuscate(obfuscated_data, key)
  print(f"Deobfuscated data: {deobfuscated_data.decode()}")
  ```

### Function Aliases

The script includes function aliases to remove ambiguity if you're using it in your own code:

- `mystipy` for `obfuscate`
- `demystipy` for `deobfuscate`

```python
import mystipy
print(mystipy.mystipy == mystipy.obfuscate)       # True
print(mystipy.demystipy == mystipy.deobfuscate)   # True
```

So if you'd prefer to use the aliases, you'd import the obfuscation/deobfuscation functions like this:

```python
from mystipy import mystipy, demystipy
```
contextify 0.0.1
Contextify
License: MIT
Requires Python: <4.0,>=3.9

# Contextify

[![PyPI](https://img.shields.io/pypi/v/contextify.svg)][pypi status]
[![Status](https://img.shields.io/pypi/status/contextify.svg)][pypi status]
[![Python Version](https://img.shields.io/pypi/pyversions/contextify)][pypi status]
[![License](https://img.shields.io/pypi/l/contextify)][license]

[![Read the documentation at https://contextify.readthedocs.io/](https://img.shields.io/readthedocs/contextify/latest.svg?label=Read%20the%20Docs)][read the docs]
[![Tests](https://github.com/56kyle/contextify/workflows/Tests/badge.svg)][tests]
[![Codecov](https://codecov.io/gh/56kyle/contextify/branch/main/graph/badge.svg)][codecov]

[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)][pre-commit]
[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)][black]

[pypi status]: https://pypi.org/project/contextify/
[read the docs]: https://contextify.readthedocs.io/
[tests]: https://github.com/56kyle/contextify/actions?workflow=Tests
[codecov]: https://app.codecov.io/gh/56kyle/contextify
[pre-commit]: https://github.com/pre-commit/pre-commit
[black]: https://github.com/psf/black

## Features

- TODO

## Requirements

- TODO

## Installation

You can install _Contextify_ via [pip] from [PyPI]:

```console
$ pip install contextify
```

## Usage

Please see the [Command-line Reference] for details.

## Contributing

Contributions are very welcome.
To learn more, see the [Contributor Guide].

## License

Distributed under the terms of the [MIT license][license],
_Contextify_ is free and open source software.

## Issues

If you encounter any problems,
please [file an issue] along with a detailed description.

## Credits

This project was generated from [@cjolowicz]'s [Hypermodern Python Cookiecutter] template.

[@cjolowicz]: https://github.com/cjolowicz
[pypi]: https://pypi.org/
[hypermodern python cookiecutter]: https://github.com/cjolowicz/cookiecutter-hypermodern-python
[file an issue]: https://github.com/56kyle/contextify/issues
[pip]: https://pip.pypa.io/

<!-- github-only -->

[license]: https://github.com/56kyle/contextify/blob/main/LICENSE
[contributor guide]: https://github.com/56kyle/contextify/blob/main/CONTRIBUTING.md
[command-line reference]: https://contextify.readthedocs.io/en/latest/usage.html