Metadata-Version: 2.1
Name: executiveordermonitor
Version: 1.0.2
Summary: Monitor the Federal Register API for new Executive Orders
Author-email: Mihai Cosma <mcosma@gmail.com>
License: MIT License
        
        Copyright (c) 2025 Mihai Cosma
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/wakamex/executiveordermonitor
Project-URL: Bug Tracker, https://github.com/wakamex/executiveordermonitor/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.32.3

# Executive Order Monitor

Monitors the Federal Register API for new Executive Orders. Features:
- Real-time monitoring with adaptive polling (1s → 5s → 10s → 30s → 60s)
- Caches seen EOs to avoid duplicates
- Smart backoff on API errors
- Rate limit awareness

## Usage

Run using any of these methods:

1. With uvx:
```bash
uvx executiveordermonitor
```

## Installation

Requirements:
- Python 3.8+
- requests>=2.32.3

From PyPI:
```bash
pip install executiveordermonitor
```

From source:
```bash
# Clone the repository
git clone https://github.com/wakamex/executiveordermonitor.git
cd executiveordermonitor

# Create virtual environment
.venv/bin/python -m venv .venv
source .venv/bin/activate
```

2. Run as a Python module:
```bash
python -m executiveordermonitor
```

3. Run as an installed script:
```bash
executiveordermonitor
```

The monitor will:
- Start checking every 1 second
- If errors occur, gradually back off to longer intervals (5s → 10s → 30s → 60s)
- Return to faster intervals when API is responsive
- Cache seen EOs in `seen_eos.json` to avoid duplicate notifications

Each time a new Executive Order is found, it will display:
- Title
- EO Number
- Signing Date
- URL to the full document

## License
MIT License. See [LICENSE](LICENSE) file for details.
