Metadata-Version: 2.4
Name: digital-marketing-pro-ai-agents
Version: 0.2.0
Summary: Evidence-based marketing automation toolkit
License: MIT License
        
        Copyright (c) 2026 gagan5-3
        
        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.
        
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dashboard
Requires-Dist: streamlit<2,>=1.40; extra == "dashboard"
Provides-Extra: api
Requires-Dist: fastapi<1,>=0.115; extra == "api"
Requires-Dist: uvicorn<1,>=0.30; extra == "api"
Provides-Extra: mcp
Requires-Dist: mcp<2,>=1.12; extra == "mcp"
Provides-Extra: dev
Requires-Dist: pytest<10,>=8; extra == "dev"
Requires-Dist: build<2,>=1; extra == "dev"
Dynamic: license-file

# Digital Marketing AI Agents

An MIT-licensed, early-stage Python marketing research toolkit. It offers
ten local analysis agents, optional Claude/OpenAI/Gemini/Ollama text
interpretation, a structured evidence workflow, and a Streamlit
development-preview dashboard.

**Status:** experimental. Local analyses use supplied evidence; they do not
fetch live websites, measure search traffic, or guarantee SEO rankings. Cloud
AI calls require the provider's API key, may cost money, and have not been
live-verified.

## Quick start: lightweight offline agents

Requires Python 3.10+. Install the project first with `python -m pip install -e .`. No runtime third-party dependencies for this CLI:

```sh
python -m marketing_agents seo examples/page.html
python -m marketing_agents content "local SEO" "small businesses"
python -m marketing_agents competitor examples/page.html examples/competitor.html
```

Outputs are JSON. The SEO agent checks title, description, H1 count and
image alt attributes. The content agent creates a rule-based editorial
brief. The competitor agent compares two supplied HTML pages.

### Optional AI interpretation

Use a model identifier available in your account, and set one of
`ANTHROPIC_API_KEY`, `OPENAI_API_KEY` or `GEMINI_API_KEY` in your shell,
or start Ollama locally:

```sh
python -m marketing_agents.ai --provider ollama --model MODEL_ID seo examples/page.html
```

See [AI provider instructions](docs/ai-providers.md). No secrets should be
committed. Supplied marketing data is shared with cloud providers if selected.

## Structured research workflow and dashboard

The primary `marketing_ai` Python package provides JSON-input SEO,
editorial and competitor-feature analysis with a sequential workflow.

```sh
python -m pip install -e ".[dev]"
marketing-ai workflow examples/demo.json
python -m pytest -v
```

To optionally obtain model recommendations for the workflow, configure
`MARKETING_PROVIDER` and `MARKETING_MODEL` plus the required API key as
shown in [.env.example](.env.example) and run:

```sh
marketing-ai workflow examples/demo.json --ai
```

To run the **development-preview dashboard**:

```sh
python -m pip install -e ".[dashboard]"
streamlit run dashboard.py
```

The dashboard supports ten agent modes plus workflow and report downloads. The legacy `marketing_agents` interface is included in the same distribution and shares the primary SEO and provider engines. Legacy editorial and HTML comparison output formats are retained.
Provider adapters are available but live behavior remains unverified.

## Tests, documentation and contribution

```sh
python -m pip install -e ".[dev]"
python -m pytest -v
python -m unittest discover -s tests -v
```

See [CONTRIBUTING.md](CONTRIBUTING.md), [ROADMAP.md](ROADMAP.md),
[developer instructions](docs/development.md), and [MIT LICENSE](LICENSE).
The repository includes synthetic examples and GitHub Actions CI. Do not
interpret template output as real marketing research.

## v0.1.0 release preparation

The upgraded dashboard supports ten agent modes plus workflow, optional provider selection, and JSON/Markdown downloads. See [release checklist](docs/release-checklist.md). The primary CLI and dashboard share task dispatch; legacy commands are retained as compatibility interfaces.

## Ten-agent development preview

See [agent input schemas and examples](docs/agents.md). All ten agents are available in the primary CLI and dashboard; the legacy CLI retains its original commands. Paid campaign agents share a metrics engine. No live marketing APIs are used.

## REST API and MCP (v0.2.0)

See [local interface setup](docs/interfaces.md). These interfaces run offline and do not send data to cloud providers.
