semvec/pypi-packages huggingface dataset:
MockMPI 0.8.3
A tool for mocking mpi4py for testing
Requires Python: >=3.5
Keywords: MPI, development, unittesting

Overview
--------

Message Passing Interface (MPI) is an approach to parallelism based on explicit communication between processes.  Python bindings to it are available via mpi4py.

Testing code that uses MPI can be awkward.  This package provides a pure-python mock MPI communicator that can be used to do so, without requiring actual MPI.  It uses multiprocessing to
start processes and makes a mocked Communicator (comm) object that takes the place of 
mpi4py.MPI.COMM_WORLD.


Installation
------------

The code is pure python; you can install it with:

```
    pip install mockmpi
```

Usage
-----

Define a function that holds the code that should work in an MPI session:

```
    def function_to_test(comm):
        ...
```

If this were a real MPI session, it should work as:

```
    import mpi4py
    comm = MPI.COMM_WORLD
    function_to_test(comm)
```

which you would run with `mpiexec -n nproc ...`

To test the code without MPI, import mock_mpiexec from this package and run:

```
    mock_mpiexec(nproc, function_to_test)
```

Extra Arguments
---------------

You can also supply additional named or positional arguments to `mock_mpiexec` and they will be
passed to `function_to_test`:

```
    mock_mpiexec(nproc, function_to_test, 1, 2, 3, a='b')
```

mimics:

```
    import mpi4py
    comm = MPI.COMM_WORLD
    function_to_test(comm, 1, 2, 3, a='b')

```

This works if the arguments can be pickled (true for most basic python and numpy types).

Caveats
-------

1. This runs on python 3.5+
2. Absolutely no attention was paid to making this efficient.  This code
   is designed to be used for unit testing, not production.
3. Only the IntraComm object is currently mocked, not the many other features
   like operators, futures, topologies, windows, spawning ... 
3. Many methods are currently missing.  Only those below are currently implemented.  Others will raise ``NotImplementedError``
 - Get_rank
 - Get_size
 - Barrier
 - send - unlike real MPI this is non-blocking
 - Send - also non-blocking
 - recv
 - Recv
 - barrier
 - bcast
 - Bcast
 - scatter
 - reduce (only with the default sum operation)
 - Reduce (only with the default sum operation)
 - allreduce
 - Allreduce
 - alltoall
 - gather

Contributions and License
-------------------------

We would greatly welcome contributions, especially to fill in missing features.

The code and any contributions are released under a BSD 2-clause license (see the LICENSE file).
passguardian 1.0.0
A smart password strength evaluator and generator with entropy scoring and breach check.
Requires Python: >=3.7

# 🔐 PassGuardian: Smart Password Evaluator

PassGuardian is a smart, terminal-based password strength evaluator that helps you create and test strong, secure passwords in real time. It combines entropy analysis, breach detection, actionable feedback, and an optional password generator — all with a colorful, polished CLI experience.

---

![PassGuardian Demo](assets/terminal-demo.png) <!-- Replace or remove if needed -->

## 🚀 Features

- 🧠 **Entropy-based Strength Scoring**
- 🔥 **Real-time Breach Check** via HaveIBeenPwned API
- 💡 **Smart Feedback** with improvement tips
- 🔁 **Interactive Password Generator**
- 🎨 **Colorful CLI UI** powered by `rich`
- 🔐 Built with **Security Best Practices**

---

## 🛠 Tech Stack

- Python 3
- `rich` (for colorful CLI output)
- `requests` (for HIBP breach API)
- Regex & logic-based password scoring
- Optional: HIBP Pwned Passwords API

---

## ⚙️ How to Run

### 1. Clone the Repository
```bash
git clone https://github.com/nv2105/PassGuardian.git
cd PassGuardian
```
### 2. Set Up Virtual Environment
```bash
python -m venv .venv
source .venv/Scripts/activate  # On Windows
# Or: source .venv/bin/activate  # On Mac/Linux
```
### 3. Install Dependencies
```bash
pip install -r requirements.txt
```
### 4. Run the CLI App
```bash
python main.py
```
### 📸 Sample Output
```sql
🧠 Estimated Entropy: 83.36 bits
✅ No known breaches found for this password.

╭──────────── Result ────────────╮
│ 🔒 Password Strength: Strong!  │
╰───────────────────────────────╯

💡 Tips to Improve:
- Add at least one special character
- Avoid common patterns like '123', 'password'
```

### 📂 Project Structure
```css
PassGuardian/
├── passguardian/
│   ├── evaluator.py
│   ├── breaches.py
│   ├── entropy.py
│   ├── generator.py
│   └── __init__.py
├── main.py
├── requirements.txt
├── .gitignore
└── README.md
```
# 📌 Author
## Naman Vora
### Final Year CSE | Aspiring Data Analyst
### [Github ](https://github.com/nv2105) | [LinkedIn](www.linkedin.com/in/namanvora21)

### 📄 License
[MIT License](https://mit-license.org)