semvec/pypi-packages huggingface dataset:
pwdlib 0.3.0
Modern password hashing for Python
Requires Python: >=3.10

# pwdlib

<p align="center">
    <em>Modern password hashing for Python</em>
</p>

[![build](https://github.com/frankie567/pwdlib/workflows/Build/badge.svg)](https://github.com/frankie567/pwdlib/actions)
[![codecov](https://codecov.io/gh/frankie567/pwdlib/branch/main/graph/badge.svg)](https://codecov.io/gh/frankie567/pwdlib)
[![PyPI version](https://badge.fury.io/py/pwdlib.svg)](https://badge.fury.io/py/pwdlib)
[![Downloads](https://pepy.tech/badge/pwdlib)](https://pepy.tech/project/pwdlib)

---

**Documentation**: <a href="https://frankie567.github.io/pwdlib/" target="_blank">https://frankie567.github.io/pwdlib/</a>

**Source Code**: <a href="https://github.com/frankie567/pwdlib" target="_blank">https://github.com/frankie567/pwdlib</a>

---

## Quickstart

```sh
pip install 'pwdlib[argon2]'
```

```py
from pwdlib import PasswordHash

password_hash = PasswordHash.recommended()
hash = password_hash.hash("herminetincture")
password_hash.verify("herminetincture", hash)  # True
```

## Why `pwdlib`?

For years, the de-facto standard to hash passwords was [`passlib`](https://foss.heptapod.net/python-libs/passlib). Unfortunately, it has not been very active recently and its [maintenance status is under question](https://foss.heptapod.net/python-libs/passlib/-/issues/187). Starting Python 3.13, `passlib` won't work anymore.

That's why I decided to start `pwdlib`, a password hash helper for the modern Python era. However, it's **not designed to be a complete replacement** for `passlib`, which supports numerous [hashing algorithms and features](https://passlib.readthedocs.io/en/stable/lib/index.html).

**✅ Goals**

- [x] Provide an easy-to-use wrapper to hash and verify passwords
- [x] Support modern and secure algorithms like Argon2 or Bcrypt

**❌ Non-goals**

- [ ] Support legacy hashing algorithms like MD5
- [ ] Implement algorithms directly — we should only rely on existing and battle-tested implementations

## Development

### Setup environment

We use [uv](https://docs.astral.sh/uv/) to manage the development environment and production build, and [just](https://github.com/casey/just) to manage command shortcuts. Ensure they are installed on your system.

### Run unit tests

You can run all the tests with:

```bash
just test
```

### Format the code

Execute the following command to apply linting and check typing:

```bash
hatch run lint
```

### Publish a new version

You can bump the version, create a commit and associated tag with one command:

```bash
hatch version patch
```

```bash
hatch version minor
```

```bash
hatch version major
```

Your default Git text editor will open so you can add information about the release.

When you push the tag on GitHub, the workflow will automatically publish it on PyPi and a GitHub release will be created as draft.

## Serve the documentation

You can serve the Mkdocs documentation with:

```bash
hatch run docs-serve
```

It'll automatically watch for changes in your code.

## License

This project is licensed under the terms of the MIT license.
time-label 0.0.0
A tiny utility providing time duration constants in seconds and milliseconds.
Requires Python: >=3.8
Keywords: time, constants, duration, utility

# TimeLabel

Never needed to set time duration in your projects? Like when setting cache in django and want to save it for a specific time (like 10 Minutes).

Well, this package provides some simple labels like WEEK, MONTH (30 days), ...

It's not a very complicated package (actually it's super simple), but someone might find it handy. At least I have implemented it in lots of my projects, and finally I decided to turn it into a package.

Simple usage:

```python
from django.core.cache import cache

from time_label import TimeLabel

...
cache.set(key, value, 5 * TimeLabel.MINUTE)
...

```
opentelemetry-instrumentation-fmpy 0.1.2
OpenTelemetry instrumentation for FMPy
Requires Python: >=3.8

# OpenTelemetry FMPy Instrumentation

[![pypi](https://img.shields.io/pypi/v/opentelemetry-instrumentation-fmpy.svg)](https://pypi.org/project/opentelemetry-instrumentation-fmpy/)
[![python](https://img.shields.io/pypi/pyversions/opentelemetry-instrumentation-fmpy.svg)](https://pypi.org/project/opentelemetry-instrumentation-fmpy/)

OpenTelemetry instrumentation for [FMPy](https://github.com/CATIA-Systems/FMPy), providing distributed tracing and observability for Functional Mock-up Unit (FMU) simulations.

## Installation

```bash
uv add opentelemetry-instrumentation-fmpy
```

## Usage

### Programmatic Instrumentation

```python
from opentelemetry.instrumentation.fmpy import FmpyInstrumentor

# Enable instrumentation
FmpyInstrumentor().instrument()

import fmpy
# FMU operations are now traced automatically
result = fmpy.simulate_fmu("model.fmu", stop_time=10.0)

# Disable instrumentation
FmpyInstrumentor().uninstrument()
```

## Development

### Requirements

- Python 3.8+
- uv (for development)


## Citation

If you use this repository in your research or publications, please cite it using the following BibTeX entry:

```bibtex
@misc{opentelemetry-instrumentation-fmpy,
  author       = {Christoffer Björkskog},
  title        = {OpenTelemetry Instrumentation for FMPy},
  year         = {2025},
  howpublished = {\url{https://github.com/Novia-RDI-Seafaring/opentelemetry-instrumentation-fmpy}},
  note         = {Contact: christoffer.bjorkskog@novia.fi},
  institution  = {Novia University of Applied Sciences}
}
```



## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.