semvec/pypi-packages huggingface dataset:
swecc-email-scraper 0.1.2
A Python CLI tool for analyzing email data in mbox format
Requires Python: >=3.10
Keywords: analysis, cli, email, mbox

# SWECC Email Scraper

A Python CLI tool for analyzing email data in mbox format.

## Features

- 📧 Process mbox format email archives
- 🔧 Unix-style pipeline architecture for flexible processing
- 📊 Extendable framework for building analysis pipelines
- Coming soon: More analysis processors...

## Installation

### From PyPI

```bash
pip install swecc-email-scraper
```

### From Source

```bash
git clone https://github.com/swecc-uw/swecc-email-scraper.git
cd swecc-email-scraper
pip install -e ".[dev]"  # Install with development dependencies

# Run tests
pytest
```

## Quick Start

The tool uses Unix pipes to compose commands. Each command does one thing and can be combined with others:

1. Basic usage - get email stats with example processor:
```bash
swecc-email-scraper read mailbox.mbox \
  | swecc-email-scraper stats \
  | swecc-email-scraper format -f json > results.json
```

2. List available processors:
```bash
swecc-email-scraper list-processors
```

3. List available output formats:
```bash
swecc-email-scraper list-formats
```

## Command Reference

### Read Command
Reads an mbox file and outputs email data as JSON:
```bash
swecc-email-scraper read input.mbox > emails.json
```

### Stats Command
Processes email data from stdin and outputs statistics:
```bash
cat emails.json | swecc-email-scraper stats > stats.json
```

### Format Command
Formats JSON data using the specified formatter:
```bash
cat stats.json \
  | swecc-email-scraper format -f json \
  > formatted.json
```

## Pipeline Examples

1. Basic email statistics to terminal:
```bash
swecc-email-scraper read inbox.mbox \
  | swecc-email-scraper stats \
  | swecc-email-scraper format
```

2. Save analysis to a file:
```bash
swecc-email-scraper read inbox.mbox \
  | swecc-email-scraper stats \
  > analysis.json
```

3. Process with custom formatting:
```bash
swecc-email-scraper read inbox.mbox \
  | swecc-email-scraper stats \
  | swecc-email-scraper format -f json \
  > analysis.json
```

4. Use with Unix tools:
```bash
# Filter emails before analysis
swecc-email-scraper read inbox.mbox \
  | jq 'map(select(.sender | contains("important")))' \
  | swecc-email-scraper stats
```

## Extending the Tool

The tool is designed to be easily extensible. See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed information on:

- Creating custom processors
- Adding new output formats
- Contributing to the project
- Development setup and guidelines

## Architecture

The tool uses a Unix pipeline architecture where:

1. `read` command converts mbox files to JSON email data
2. Processor commands (like `stats`) transform or analyze the data
3. `format` command handles output formatting
4. Standard Unix pipes (`|`) connect the components

## License

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

## Acknowledgments

Developed as part of SWECC Labs at the University of Washington.
valhallabott 1.0.0
A Telegram bot for sending emails with customizable settings.
Requires Python: >=3.6

# ValhallaBot
```
What This
ValhallaBot is a Telegram bot designed to send emails with customizable settings. It allows users to add recipient and sender emails, set email subjects and messages, and control the sending interval.
```

## Installation

You can install ValhallaBot using pip:

```bash
pip install valhallabot
```

Usage
```
After installing the package, you can use the bot by creating an instance of ValhallaBot and running it. Here's an example:
```

```
#code
from valhallabott import ValhallaBot
bot = ValhallaBot(bot_token="YOUR_BOT_TOKEN", admin_id=YOUR_ADMIN_ID)
bot.run()
```
```valhalla
Parameters:
bot_token: Your Telegram bot token.

admin_id: Your Telegram user ID (to identify the admin).

Make sure to replace "YOUR_BOT_TOKEN" and YOUR_ADMIN_ID with your actual bot token and admin ID.
```
coinapi.rest.v1 1.4
SDKs for CoinAPI
Requires Python: >=3.0

**Requirements:**
 * Python >= 3

**Install using:**

```bash
pip install --upgrade coinapi_rest_v1
```

**Import this way**

```python
from coinapi_rest_v1.restapi import CoinAPIv1
```

**To run examples:**

```bash
git clone https://github.com/coinapi/coinapi-sdk/
cd coinapi-sdk/data-api/python-rest/coinapi_rest_v1
# edit examples.py, fill your API key inside of it
python examples.py YOUR_API_KEY
```