semvec/pypi-packages huggingface dataset:
ephemeral-postgres 0.2.0
Start an ephemeral postgres instance for easy testing
Keywords: postgres,postgresql,testing,docker

# ephemeral-postgres

[![Build Status](https://travis-ci.org/jthacker/ephemeral_postgres.svg?branch=master)](https://travis-ci.org/jthacker/ephemeral_postgres)

ephemeral-postgres is a python package for easily setting up, testing, and
finally tearing down postgres instances. It can be easily integrated in most
test suites but has been primarily used with pytest.


## Installation
```bash
pip install ephemeral-postgres
```

## Example
```python
import ephemeral_postgres
import psycopg2

with ephemeral_postgres.postgres() as uri:
    con = psycopg2.connect(uri)
    cur = con.cursor()
    cur.execute('select * from pg_database')
    for row in cur.fetchall():
        print(row)
```

Alternatively, if you would like to run an external Postgres server, you can
override ephemeral_postgres from starting a new instance by setting the
environment variable `EPHEMERAL_POSTGRES_URI` accordingly. For example:
```bash
export EPHEMERAL_POSTGRES_URI="postgresql://postgres:postgres@localhost:5432/postgres"
python "import ephemeral_postgres; print(ephemeral_postgres.postgres()[0])"
```

## Developing
```bash
pip install -e .[test]

# run unit tests
pytest
```
kdbxpasswordpwned 0.5
Check KeePass passwords against https://haveibeenpwned.com/Passwords
Keywords: keepass,hibp,password,data,breach,leak

# kdbxpasswordpwned
Check keepass passwords against https://haveibeenpwned.com/Passwords

[![Build Status](https://travis-ci.org/fopina/kdbxpasswordpwned.svg?branch=master)](https://travis-ci.org/fopina/kdbxpasswordpwned)
[![Coverage Status](https://coveralls.io/repos/github/fopina/kdbxpasswordpwned/badge.svg?branch=master)](https://coveralls.io/github/fopina/kdbxpasswordpwned?branch=master)
[![Docker Version](https://images.microbadger.com/badges/version/fopina/kdbxpasswordpwned.svg)](https://microbadger.com/images/fopina/kdbxpasswordpwned)
[![Docker Image](https://images.microbadger.com/badges/image/fopina/kdbxpasswordpwned.svg)](https://microbadger.com/images/fopina/kdbxpasswordpwned)
[![PyPI Version](https://img.shields.io/pypi/v/kdbxpasswordpwned.svg)](https://pypi.python.org/pypi/kdbxpasswordpwned)
[![PyPI Python Versions](https://img.shields.io/pypi/pyversions/kdbxpasswordpwned.svg)](https://pypi.python.org/pypi/kdbxpasswordpwned)

### Disclosure

Even if Troy Hunt's API does provide some sense of privacy (as we don't share the password nor even the full SHA1), always review the tools you use with your KeePass files (such as this script which is small and you can easily see the password is not sent anywhere except HIBP API). I have reviewed libkeepass code (0.3.0, pinned in requirements) which is also small, and, as PyPI does not allow replacing existing versions, it is safe.

Also be sure to install tools you trust from places you trust or you might end up installing some shady version such as [this fork](https://github.com/fopina/kdbxpasswordpwned/compare/master...SlivTaMere:bea0f5c) which sends the full password (not the hash) to a different endpoint.

### Usage

Install using `pip`

```bash
$ pip install kdbxpasswordpwned
Collecting kdbxpasswordpwned
Successfully installed kdbxpasswordpwned-0.3
```
And use the CLI

```bash
$ kdbxpasswordpwned -h
usage: kdbxpasswordpwned [-h] [-k KEYFILE] [-u] [-p] kdbx

positional arguments:
  kdbx                  keepass file

optional arguments:
  -h, --help            show this help message and exit
  -k KEYFILE, --keyfile KEYFILE
                        Keyfile if needed
  -u, --show-user       show username for found entries
  -p, --show-password   show password for found entries (high shoulders?)
```

```bash
$ kdbxpasswordpwned /path/to/test_assets/sample.kdbx
Password:
Password for title1 seen 1151 times before
Password for title2 seen 61164 times before
```

Or simply use the docker image

```bash
$ docker run --rm -ti \
             -v /path/to/test_assets/sample_with_key.kdbx:/tmp.kdbx:ro \
             -v /path/to/test_assets/sample.key:/tmp.key:ro \
             fopina/kdbxpasswordpwned -upk /tmp.key /tmp.kdbx
Password for title1 seen 1151 times before - testuser - testit
Password for title2 seen 61164 times before - None - blabla
```
haip 0.1.1
The root element of the haip namespace.

# Haip

"haip.*" are namespace based python packages for various purposes. We use namespaced packages to avoid conflicts with existing packages and projects.

Normally you should not get in touch with the base-package ("haip") at all but use the subpackages directly. A design goal is to keep these subpackages as independent as possible to be able to use them seperatly (as you normaly would expect from a global python package).

## Subpackages (ongoing)

* haip.config - a simple configuration manager for yaml based config files