semvec/pypi-packages huggingface dataset:
salesengine 0.4.0
Universal Sales Intelligence Engine — drop in any dataset, get standardized, executive-ready reports
License: MIT
Requires Python: >=3.8
Keywords: business intelligence, churn analysis, cross-industry, data cleaning, pdf report, pptx slides, price index, report generation, revenue management, sales analytics

# SalesEngine

**Universal Sales Intelligence Engine** — Drop in any sales/transaction dataset, answer a short questionnaire, and get standardized, executive-ready reports. Works across industries.

## What's New in v0.4.0

**Professional Report Output** — Complete formatting overhaul:
- PDF reports with stat cards, styled tables, teal design system, page headers/footers
- PPTX decks with branded cover slides, KPI cards, color-coded change percentages
- Timestamped output files — never collides with open reports
- ReportTheme system — customize colors and branding for any company

**Bug Fixes:**
- Fixed "?" characters on PDF cover page (emoji Unicode rendering)
- Fixed raw numbers on executive summary (2758944.72 → 2.8M)
- Fixed table headers showing raw column names (Volume_Change_% → Change %)
- Fixed missing alternating row colors on PPTX tables

## Install

```bash
pip install salesengine              # Excel only
pip install salesengine[pdf]         # + PDF reports
pip install salesengine[pptx]        # + PowerPoint decks
pip install salesengine[all]         # Everything
```

## Quick Start

```python
import salesengine as se

# Scan your data
se.scan("sales_data.csv")

# Fill out the generated questionnaire, then run
se.run("sales_data.csv", "intake.json", formats=["all"])
```

## Three Output Formats

| Format | Audience | What They Get |
|--------|----------|---------------|
| Excel  | Analyst  | Pivot-ready workbook with all data |
| PDF    | Leadership | Polished report with stat cards and tables |
| PPTX   | Presenter | Slide deck with KPI cards and data slides |

## 22 Analytics Functions

Data Cleaning, Customer Churn Analysis, Price Benchmarking, Margin Health,
Volume & Revenue Analytics, Customer Ranking, Geographic Analysis,
Segment Comparison, Product Mix Analysis.

## Cross-Industry

The same engine serves food distribution, SaaS, healthcare, retail,
manufacturing, financial services, and logistics. Configure once via
the questionnaire — the analytics adapt automatically.
retcon-queries 1.0.0
Shared GraphQL queries for the Retcon platform
License: MIT
Requires Python: >=3.10
Keywords: arweave, graphql, queries, retcon

# Retcon Queries

Shared GraphQL queries for the Retcon platform. Published as both npm (`@retcon/queries`) and PyPI (`retcon-queries`) packages.

## Installation

### TypeScript / JavaScript

```bash
npm install @retcon/queries
```

### Python

```bash
pip install retcon-queries
```

Or for local development:

```bash
pip install -e ../retcon-queries
```

## Usage

### TypeScript

```typescript
import { GET_FEEDS, GET_FEED_BY_URL } from '@retcon/queries';

// Use with any GraphQL client
const result = await client.query({
  query: GET_FEEDS,
  variables: { limit: 100 }
});
```

### Python

```python
from retcon_queries import GET_FEEDS, GET_FEED_BY_URL

# Use with any GraphQL client (httpx, gql, etc.)
response = await client.post(
    graphql_url,
    json={"query": GET_FEEDS, "variables": {"limit": 100}}
)
```

## Available Queries

### Registry Queries

| Query | Description | Variables |
|-------|-------------|-----------|
| `GET_FEEDS` | Get all Feed-Registry entries | `cursor`, `limit` |
| `GET_FEED_BY_URL` | Get feed by canonical URL | `feedUrl` |
| `GET_FEEDS_BY_CATEGORY` | Filter feeds by category | `category`, `cursor`, `limit` |
| `GET_FEEDS_BY_CONTRIBUTOR` | Filter by contributor wallet | `contributor`, `cursor`, `limit` |
| `CHECK_FEED_EXISTS` | Check if feed URL exists | `feedUrl` |

### Archive Queries

| Query | Description | Variables |
|-------|-------------|-----------|
| `GET_ARTICLES` | Get all Article-Archive entries | `cursor`, `limit` |
| `GET_ARTICLES_BY_FEED` | Get articles from a feed | `feedUrl`, `cursor`, `limit` |
| `GET_ARTICLE_BY_URL` | Get article by URL | `articleUrl` |
| `GET_ARTICLE_BY_HASH` | Get article by content hash | `contentHash` |

## Arweave GraphQL Endpoints

- **Primary**: `https://arweave-search.goldsky.com/graphql` (Goldsky - optimized)
- **Fallback**: `https://arweave.net/graphql` (Official gateway)

## Development

```bash
# TypeScript
npm install
npm run build

# Python
pip install -e ".[dev]"
pytest
```

## Package Structure

```
retcon-queries/
├── package.json          # npm package config
├── pyproject.toml        # PyPI package config
├── tsconfig.json
├── src/                  # TypeScript source
│   ├── index.ts
│   ├── registry.ts
│   └── archive.ts
├── python/               # Python source
│   └── retcon_queries/
│       ├── __init__.py
│       ├── registry.py
│       └── archive.py
└── graphql/              # Raw .graphql files (reference)
    ├── registry/
    └── archive/
```