This project contains Python scripts for automating email extraction from Outlook using OpenAI agents.
examples/email_extraction/
- Contains scripts for email extractionmain.py
- Main email extraction script with agent-based architecturemain_small.py
- Simplified version for testingtest_main.py
- Test scripts
- Clone the repository:
git clone https://github.com/yourusername/openai-agents-python.git
cd openai-agents-python
- Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Set up credentials:
cp secrets.json.template secrets.json
# Edit secrets.json with your credentials
- For basic email extraction:
python examples/email_extraction/main_small.py
- For full agent-based extraction:
python examples/email_extraction/main.py
Use the provided git_ops.sh
script for automated Git operations:
# Make the script executable
chmod +x git_ops.sh
# Basic usage
./git_ops.sh
# With commit message
./git_ops.sh "Your commit message here"
- Never commit
secrets.json
to Git - Keep your GitHub credentials secure
- Use SSH keys for GitHub authentication