# wristband-python

## Setup Instructions

1. **Create a Virtual Environment**

   To keep your project's dependencies isolated, it's recommended to use a virtual environment. You can create one using the following command:
   ```bash
   python3 -m venv .venv
   ```

2.  **Activate the Virtual Environment**

Activate the virtual environment to ensure that any packages you install are confined to this environment.

   - On Windows:
   ```bash
   .venv\Scripts\activate
   ```

   - On macOS/Linux:
   ```bash
   source .venv/bin/activate
   ```

3.	**Install the Dependencies**

With the virtual environment activated, install all required Python packages using:
```bash
pip install -r requirements.txt
```


4.  **Configure Environment Variables**

Copy the example environment file and fill in your specific details:
```bash
cp .env.example .env
```

Open the .env file in a text editor and replace the placeholder values with your actual Wristband credentials

Example .env file:
```ini
APPLICATION_VANITY_DOMAIN=you_application_vanity_domain
CLIENT_ID=your_client_id
CLIENT_SECRET=your_client_secret
TENANT_ID=your_tenant_id
IDENTITY_PROVIDER_ID="wristband"
```

## Distribute to PyPi

**Increment the version number**
- PATCH for bug fixes (e.g., 0.1.1)
   - MINOR for new features (e.g., 0.2.0)
   - MAJOR for incompatible API changes (e.g., 1.0.0)

**Clean previous builds (optional but recommended)**
```bash
rm -rf build dist *.egg-info 
pip install --upgrade setuptools wheel
python3 setup.py sdist bdist_wheel
pip install --upgrade twine
twine upload dist/*
```

pypi-AgEIcHlwaS5vcmcCJGRlYjEyYjFmLWUwMTctNDVjOS05OTY0LTFmMzU2ZTNiYzdmOQACKlszLCI1M2Q5NGU3NS0xODI1LTQzNzQtYmY1ZS04NGRhOTFlYTViMzMiXQAABiB3yYxtfrKBrH3JgVrvAxc-xOjyh8vC3DjDVPn1MqnOog