microsaas-agent-api 3.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,51 @@
1
+ Metadata-Version: 2.4
2
+ Name: microsaas-agent-api
3
+ Version: 3.0.0
4
+ Summary: Official Python SDK for the Micro-SaaS AI Agent Suite (8 Serverless AI APIs).
5
+ Author-email: Meanus Arcanus <meanusarcanus@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/meanusarcanus/microsaas_agent_api
8
+ Project-URL: Bug Tracker, https://github.com/meanusarcanus/microsaas_agent_api/issues
9
+ Requires-Python: >=3.8
10
+ Description-Content-Type: text/markdown
11
+ Requires-Dist: requests>=2.25.0
12
+
13
+ # 🐍 microsaas-agent-api (Python SDK)
14
+
15
+ Official Python SDK for the **Micro-SaaS AI Agent Suite**.
16
+
17
+ Access 8 high-speed serverless AI APIs with 1 line of Python:
18
+ - **Review Sentiment & Feature Extractor** (`analyze_review`)
19
+ - **AI E-Commerce Copy & SEO Generator** (`generate_product_copy`)
20
+ - **Fake Review & Spam Detector** (`detect_fake_review`)
21
+ - **Support Ticket Auto-Triage Agent** (`classify_ticket`)
22
+ - **Product Specs Comparison Matrix** (`compare_specs`)
23
+ - **SmartScrape AI Web Scraping Extractor** (`scrape_and_extract`)
24
+ - **VeriMail Email & Disposable Check** (`verify_email`)
25
+ - **DocuParse Receipt & Invoice OCR** (`parse_document`)
26
+
27
+ ---
28
+
29
+ ## ⚡ Quickstart
30
+
31
+ ```bash
32
+ pip install microsaas-agent-api
33
+ ```
34
+
35
+ ```python
36
+ from microsaas_agent_api import MicroSaaSClient
37
+
38
+ client = MicroSaaSClient(api_key="YOUR_RAPIDAPI_KEY")
39
+
40
+ # 1. Verify Email
41
+ res_email = client.verify_email("user@tempmail.org")
42
+ print("Disposable Email Detected:", res_email["is_disposable"])
43
+
44
+ # 2. Generate Product Copy
45
+ res_copy = client.generate_product_copy(
46
+ product_name="UltraComfort Headphones",
47
+ key_features=["Active Noise Cancellation", "40hr Battery Life"],
48
+ target_tone="Luxury"
49
+ )
50
+ print("SEO Title:", res_copy["seo_title"])
51
+ ```
@@ -0,0 +1,39 @@
1
+ # 🐍 microsaas-agent-api (Python SDK)
2
+
3
+ Official Python SDK for the **Micro-SaaS AI Agent Suite**.
4
+
5
+ Access 8 high-speed serverless AI APIs with 1 line of Python:
6
+ - **Review Sentiment & Feature Extractor** (`analyze_review`)
7
+ - **AI E-Commerce Copy & SEO Generator** (`generate_product_copy`)
8
+ - **Fake Review & Spam Detector** (`detect_fake_review`)
9
+ - **Support Ticket Auto-Triage Agent** (`classify_ticket`)
10
+ - **Product Specs Comparison Matrix** (`compare_specs`)
11
+ - **SmartScrape AI Web Scraping Extractor** (`scrape_and_extract`)
12
+ - **VeriMail Email & Disposable Check** (`verify_email`)
13
+ - **DocuParse Receipt & Invoice OCR** (`parse_document`)
14
+
15
+ ---
16
+
17
+ ## ⚡ Quickstart
18
+
19
+ ```bash
20
+ pip install microsaas-agent-api
21
+ ```
22
+
23
+ ```python
24
+ from microsaas_agent_api import MicroSaaSClient
25
+
26
+ client = MicroSaaSClient(api_key="YOUR_RAPIDAPI_KEY")
27
+
28
+ # 1. Verify Email
29
+ res_email = client.verify_email("user@tempmail.org")
30
+ print("Disposable Email Detected:", res_email["is_disposable"])
31
+
32
+ # 2. Generate Product Copy
33
+ res_copy = client.generate_product_copy(
34
+ product_name="UltraComfort Headphones",
35
+ key_features=["Active Noise Cancellation", "40hr Battery Life"],
36
+ target_tone="Luxury"
37
+ )
38
+ print("SEO Title:", res_copy["seo_title"])
39
+ ```
@@ -0,0 +1,64 @@
1
+ """
2
+ Micro-SaaS Agent API Python SDK Client
3
+ Allows 1-line integration of all 8 serverless AI APIs in Python applications.
4
+ """
5
+
6
+ import requests
7
+ from typing import List, Optional, Dict, Any
8
+
9
+ class MicroSaaSClient:
10
+ """
11
+ Python SDK Client for Micro-SaaS AI Agent Suite.
12
+ """
13
+ def __init__(self, api_key: str, base_url: str = "https://microsaas-agent-api.vercel.app"):
14
+ self.api_key = api_key
15
+ self.base_url = base_url.rstrip("/")
16
+ self.headers = {
17
+ "X-RapidAPI-Key": self.api_key,
18
+ "Content-Type": "application/json"
19
+ }
20
+
21
+ def _post(self, endpoint: str, data: dict) -> dict:
22
+ url = f"{self.base_url}{endpoint}"
23
+ response = requests.post(url, json=data, headers=self.headers, timeout=15)
24
+ response.raise_for_status()
25
+ return response.json()
26
+
27
+ def analyze_review(self, review_text: str) -> dict:
28
+ """API #1: Analyze sentiment & feature extraction."""
29
+ return self._post("/analyze", {"review_text": review_text})
30
+
31
+ def generate_product_copy(self, product_name: str, key_features: Optional[List[str]] = None, target_tone: str = "Professional") -> dict:
32
+ """API #2: Generate SEO product title, description, bullets & keywords."""
33
+ return self._post("/generate-copy", {
34
+ "product_name": product_name,
35
+ "key_features": key_features or [],
36
+ "target_tone": target_tone
37
+ })
38
+
39
+ def detect_fake_review(self, review_text: str, rating: int = 5) -> dict:
40
+ """API #3: Score review authenticity & detect bot spam."""
41
+ return self._post("/detect-authenticity", {"review_text": review_text, "rating": rating})
42
+
43
+ def classify_ticket(self, ticket_text: str, customer_email: Optional[str] = None) -> dict:
44
+ """API #4: Triage support tickets & generate AI draft reply."""
45
+ return self._post("/classify-ticket", {"ticket_text": ticket_text, "customer_email": customer_email})
46
+
47
+ def compare_specs(self, product_a_name: str, product_a_specs: str, product_b_name: str, product_b_specs: str) -> dict:
48
+ """API #5: Side-by-side product spec benchmark matrix."""
49
+ return self._post("/compare-specs", {
50
+ "product_a_name": product_a_name, "product_a_specs": product_a_specs,
51
+ "product_b_name": product_b_name, "product_b_specs": product_b_specs
52
+ })
53
+
54
+ def scrape_and_extract(self, url: str, extraction_targets: Optional[List[str]] = None) -> dict:
55
+ """API #6: SmartScrape web page to structured JSON."""
56
+ return self._post("/scrape-and-extract", {"url": url, "extraction_targets": extraction_targets or ["title", "price"]})
57
+
58
+ def verify_email(self, email: str) -> dict:
59
+ """API #7: VeriMail real-time email deliverability & disposable check."""
60
+ return self._post("/verify-email", {"email": email})
61
+
62
+ def parse_document(self, document_url: str, document_type: str = "receipt") -> dict:
63
+ """API #8: DocuParse OCR receipt & invoice parser."""
64
+ return self._post("/parse-document", {"document_url": document_url, "document_type": document_type})
@@ -0,0 +1,51 @@
1
+ Metadata-Version: 2.4
2
+ Name: microsaas-agent-api
3
+ Version: 3.0.0
4
+ Summary: Official Python SDK for the Micro-SaaS AI Agent Suite (8 Serverless AI APIs).
5
+ Author-email: Meanus Arcanus <meanusarcanus@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/meanusarcanus/microsaas_agent_api
8
+ Project-URL: Bug Tracker, https://github.com/meanusarcanus/microsaas_agent_api/issues
9
+ Requires-Python: >=3.8
10
+ Description-Content-Type: text/markdown
11
+ Requires-Dist: requests>=2.25.0
12
+
13
+ # 🐍 microsaas-agent-api (Python SDK)
14
+
15
+ Official Python SDK for the **Micro-SaaS AI Agent Suite**.
16
+
17
+ Access 8 high-speed serverless AI APIs with 1 line of Python:
18
+ - **Review Sentiment & Feature Extractor** (`analyze_review`)
19
+ - **AI E-Commerce Copy & SEO Generator** (`generate_product_copy`)
20
+ - **Fake Review & Spam Detector** (`detect_fake_review`)
21
+ - **Support Ticket Auto-Triage Agent** (`classify_ticket`)
22
+ - **Product Specs Comparison Matrix** (`compare_specs`)
23
+ - **SmartScrape AI Web Scraping Extractor** (`scrape_and_extract`)
24
+ - **VeriMail Email & Disposable Check** (`verify_email`)
25
+ - **DocuParse Receipt & Invoice OCR** (`parse_document`)
26
+
27
+ ---
28
+
29
+ ## ⚡ Quickstart
30
+
31
+ ```bash
32
+ pip install microsaas-agent-api
33
+ ```
34
+
35
+ ```python
36
+ from microsaas_agent_api import MicroSaaSClient
37
+
38
+ client = MicroSaaSClient(api_key="YOUR_RAPIDAPI_KEY")
39
+
40
+ # 1. Verify Email
41
+ res_email = client.verify_email("user@tempmail.org")
42
+ print("Disposable Email Detected:", res_email["is_disposable"])
43
+
44
+ # 2. Generate Product Copy
45
+ res_copy = client.generate_product_copy(
46
+ product_name="UltraComfort Headphones",
47
+ key_features=["Active Noise Cancellation", "40hr Battery Life"],
48
+ target_tone="Luxury"
49
+ )
50
+ print("SEO Title:", res_copy["seo_title"])
51
+ ```
@@ -0,0 +1,8 @@
1
+ README.md
2
+ pyproject.toml
3
+ microsaas_agent_api/client.py
4
+ microsaas_agent_api.egg-info/PKG-INFO
5
+ microsaas_agent_api.egg-info/SOURCES.txt
6
+ microsaas_agent_api.egg-info/dependency_links.txt
7
+ microsaas_agent_api.egg-info/requires.txt
8
+ microsaas_agent_api.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ requests>=2.25.0
@@ -0,0 +1 @@
1
+ microsaas_agent_api
@@ -0,0 +1,21 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "microsaas-agent-api"
7
+ version = "3.0.0"
8
+ authors = [
9
+ { name="Meanus Arcanus", email="meanusarcanus@gmail.com" },
10
+ ]
11
+ description = "Official Python SDK for the Micro-SaaS AI Agent Suite (8 Serverless AI APIs)."
12
+ readme = "README.md"
13
+ requires-python = ">=3.8"
14
+ license = { text = "MIT" }
15
+ dependencies = [
16
+ "requests>=2.25.0",
17
+ ]
18
+
19
+ [project.urls]
20
+ "Homepage" = "https://github.com/meanusarcanus/microsaas_agent_api"
21
+ "Bug Tracker" = "https://github.com/meanusarcanus/microsaas_agent_api/issues"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+