# python-auth0-sync-env

Sync the users from `SOURCE` env to `TARGET` env (remove all users from TARGET first).

## Logic

- Instantiate 2 Auth0 clients, one for `SOURCE` and once for `TARGET`.
- Remove all users from `TARGET`, from specified `database`.
- Copy all users from `SOURCE` to `TARGET`, within specified `database`.

## Env vars

Env vars will be set on the Jenkins job, but for local dev set the values in `.env` and then `source`.

## Make

### env / pip_env
```bash
make env
```

### run
```bash
make run
```

## Test

### lint
```bash
make lint
```

### unit test
```bash
make test
```
