contentflow 0.3.0__tar.gz → 0.4.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.
- contentflow-0.4.0/PKG-INFO +67 -0
- contentflow-0.4.0/README.md +42 -0
- {contentflow-0.3.0/src → contentflow-0.4.0}/contentflow/__init__.py +1 -1
- {contentflow-0.3.0/src → contentflow-0.4.0}/contentflow/generator.py +1 -1
- contentflow-0.4.0/contentflow.egg-info/PKG-INFO +67 -0
- contentflow-0.4.0/contentflow.egg-info/SOURCES.txt +10 -0
- contentflow-0.4.0/contentflow.egg-info/requires.txt +5 -0
- contentflow-0.4.0/pyproject.toml +51 -0
- contentflow-0.4.0/tests/test_basic.py +48 -0
- contentflow-0.3.0/PKG-INFO +0 -62
- contentflow-0.3.0/README.md +0 -49
- contentflow-0.3.0/setup.py +0 -19
- contentflow-0.3.0/src/contentflow.egg-info/PKG-INFO +0 -62
- contentflow-0.3.0/src/contentflow.egg-info/SOURCES.txt +0 -9
- contentflow-0.3.0/src/contentflow.egg-info/requires.txt +0 -1
- {contentflow-0.3.0/src → contentflow-0.4.0}/contentflow.egg-info/dependency_links.txt +0 -0
- {contentflow-0.3.0/src → contentflow-0.4.0}/contentflow.egg-info/top_level.txt +0 -0
- {contentflow-0.3.0 → contentflow-0.4.0}/setup.cfg +0 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: contentflow
|
|
3
|
+
Version: 0.4.0
|
|
4
|
+
Summary: AI Marketing Content Generator
|
|
5
|
+
Author-email: Teyfik OZ <teyfikoz@yahoo.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/teyfikoz/contentflow
|
|
8
|
+
Project-URL: Repository, https://github.com/teyfikoz/contentflow
|
|
9
|
+
Project-URL: Issues, https://github.com/teyfikoz/contentflow/issues
|
|
10
|
+
Keywords: marketing,content,ai,copywriting,travel
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
19
|
+
Requires-Python: >=3.10
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
Requires-Dist: requests>=2.31.0
|
|
22
|
+
Provides-Extra: dev
|
|
23
|
+
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
24
|
+
Requires-Dist: ruff>=0.1.0; extra == "dev"
|
|
25
|
+
|
|
26
|
+
# ContentFlow
|
|
27
|
+
|
|
28
|
+
AI Marketing Content Generator.
|
|
29
|
+
|
|
30
|
+
[](https://pypi.org/project/contentflow/)
|
|
31
|
+
[](https://github.com/teyfikoz/contentflow/actions/workflows/ci.yml)
|
|
32
|
+
|
|
33
|
+
## Installation
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pip install contentflow
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Quick Start
|
|
40
|
+
|
|
41
|
+
```python
|
|
42
|
+
from contentflow import ContentGenerator
|
|
43
|
+
|
|
44
|
+
gen = ContentGenerator()
|
|
45
|
+
|
|
46
|
+
# Generate ad copy (template-based, no API key needed)
|
|
47
|
+
copy = gen.generate_ad_copy("Istanbul", vibe="exciting", platform="Instagram")
|
|
48
|
+
print(copy)
|
|
49
|
+
|
|
50
|
+
# Get a travel quote
|
|
51
|
+
quote = gen.get_travel_quote("Adventure")
|
|
52
|
+
print(quote)
|
|
53
|
+
|
|
54
|
+
# With HuggingFace API (optional)
|
|
55
|
+
gen = ContentGenerator(api_key="hf_...")
|
|
56
|
+
copy = gen.generate_ad_copy("Paris", vibe="romantic")
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Features
|
|
60
|
+
|
|
61
|
+
- **Template-based content** - Works offline with curated templates
|
|
62
|
+
- **AI-powered generation** - Optional HuggingFace Inference API integration
|
|
63
|
+
- **Travel quotes** - Categorized famous travel quotes
|
|
64
|
+
|
|
65
|
+
## License
|
|
66
|
+
|
|
67
|
+
MIT
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# ContentFlow
|
|
2
|
+
|
|
3
|
+
AI Marketing Content Generator.
|
|
4
|
+
|
|
5
|
+
[](https://pypi.org/project/contentflow/)
|
|
6
|
+
[](https://github.com/teyfikoz/contentflow/actions/workflows/ci.yml)
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
pip install contentflow
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Quick Start
|
|
15
|
+
|
|
16
|
+
```python
|
|
17
|
+
from contentflow import ContentGenerator
|
|
18
|
+
|
|
19
|
+
gen = ContentGenerator()
|
|
20
|
+
|
|
21
|
+
# Generate ad copy (template-based, no API key needed)
|
|
22
|
+
copy = gen.generate_ad_copy("Istanbul", vibe="exciting", platform="Instagram")
|
|
23
|
+
print(copy)
|
|
24
|
+
|
|
25
|
+
# Get a travel quote
|
|
26
|
+
quote = gen.get_travel_quote("Adventure")
|
|
27
|
+
print(quote)
|
|
28
|
+
|
|
29
|
+
# With HuggingFace API (optional)
|
|
30
|
+
gen = ContentGenerator(api_key="hf_...")
|
|
31
|
+
copy = gen.generate_ad_copy("Paris", vibe="romantic")
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Features
|
|
35
|
+
|
|
36
|
+
- **Template-based content** - Works offline with curated templates
|
|
37
|
+
- **AI-powered generation** - Optional HuggingFace Inference API integration
|
|
38
|
+
- **Travel quotes** - Categorized famous travel quotes
|
|
39
|
+
|
|
40
|
+
## License
|
|
41
|
+
|
|
42
|
+
MIT
|
|
@@ -37,7 +37,7 @@ class ContentGenerator:
|
|
|
37
37
|
if isinstance(result, list) and 'generated_text' in result[0]:
|
|
38
38
|
return result[0]['generated_text']
|
|
39
39
|
return self._generate_template(destination, vibe, platform)
|
|
40
|
-
except:
|
|
40
|
+
except Exception:
|
|
41
41
|
return self._generate_template(destination, vibe, platform)
|
|
42
42
|
|
|
43
43
|
def get_travel_quote(self, category: str = "Adventure") -> str:
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: contentflow
|
|
3
|
+
Version: 0.4.0
|
|
4
|
+
Summary: AI Marketing Content Generator
|
|
5
|
+
Author-email: Teyfik OZ <teyfikoz@yahoo.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/teyfikoz/contentflow
|
|
8
|
+
Project-URL: Repository, https://github.com/teyfikoz/contentflow
|
|
9
|
+
Project-URL: Issues, https://github.com/teyfikoz/contentflow/issues
|
|
10
|
+
Keywords: marketing,content,ai,copywriting,travel
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
19
|
+
Requires-Python: >=3.10
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
Requires-Dist: requests>=2.31.0
|
|
22
|
+
Provides-Extra: dev
|
|
23
|
+
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
24
|
+
Requires-Dist: ruff>=0.1.0; extra == "dev"
|
|
25
|
+
|
|
26
|
+
# ContentFlow
|
|
27
|
+
|
|
28
|
+
AI Marketing Content Generator.
|
|
29
|
+
|
|
30
|
+
[](https://pypi.org/project/contentflow/)
|
|
31
|
+
[](https://github.com/teyfikoz/contentflow/actions/workflows/ci.yml)
|
|
32
|
+
|
|
33
|
+
## Installation
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pip install contentflow
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Quick Start
|
|
40
|
+
|
|
41
|
+
```python
|
|
42
|
+
from contentflow import ContentGenerator
|
|
43
|
+
|
|
44
|
+
gen = ContentGenerator()
|
|
45
|
+
|
|
46
|
+
# Generate ad copy (template-based, no API key needed)
|
|
47
|
+
copy = gen.generate_ad_copy("Istanbul", vibe="exciting", platform="Instagram")
|
|
48
|
+
print(copy)
|
|
49
|
+
|
|
50
|
+
# Get a travel quote
|
|
51
|
+
quote = gen.get_travel_quote("Adventure")
|
|
52
|
+
print(quote)
|
|
53
|
+
|
|
54
|
+
# With HuggingFace API (optional)
|
|
55
|
+
gen = ContentGenerator(api_key="hf_...")
|
|
56
|
+
copy = gen.generate_ad_copy("Paris", vibe="romantic")
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Features
|
|
60
|
+
|
|
61
|
+
- **Template-based content** - Works offline with curated templates
|
|
62
|
+
- **AI-powered generation** - Optional HuggingFace Inference API integration
|
|
63
|
+
- **Travel quotes** - Categorized famous travel quotes
|
|
64
|
+
|
|
65
|
+
## License
|
|
66
|
+
|
|
67
|
+
MIT
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
pyproject.toml
|
|
3
|
+
contentflow/__init__.py
|
|
4
|
+
contentflow/generator.py
|
|
5
|
+
contentflow.egg-info/PKG-INFO
|
|
6
|
+
contentflow.egg-info/SOURCES.txt
|
|
7
|
+
contentflow.egg-info/dependency_links.txt
|
|
8
|
+
contentflow.egg-info/requires.txt
|
|
9
|
+
contentflow.egg-info/top_level.txt
|
|
10
|
+
tests/test_basic.py
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=65.0", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "contentflow"
|
|
7
|
+
version = "0.4.0"
|
|
8
|
+
description = "AI Marketing Content Generator"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
authors = [
|
|
11
|
+
{ name = "Teyfik OZ", email = "teyfikoz@yahoo.com" }
|
|
12
|
+
]
|
|
13
|
+
license = {text = "MIT"}
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Development Status :: 3 - Alpha",
|
|
16
|
+
"Intended Audience :: Developers",
|
|
17
|
+
"Programming Language :: Python :: 3",
|
|
18
|
+
"Programming Language :: Python :: 3.10",
|
|
19
|
+
"Programming Language :: Python :: 3.11",
|
|
20
|
+
"Programming Language :: Python :: 3.12",
|
|
21
|
+
"Programming Language :: Python :: 3.13",
|
|
22
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
23
|
+
]
|
|
24
|
+
keywords = ["marketing", "content", "ai", "copywriting", "travel"]
|
|
25
|
+
requires-python = ">=3.10"
|
|
26
|
+
dependencies = [
|
|
27
|
+
"requests>=2.31.0",
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
[project.optional-dependencies]
|
|
31
|
+
dev = [
|
|
32
|
+
"pytest>=7.0",
|
|
33
|
+
"ruff>=0.1.0",
|
|
34
|
+
]
|
|
35
|
+
|
|
36
|
+
[project.urls]
|
|
37
|
+
Homepage = "https://github.com/teyfikoz/contentflow"
|
|
38
|
+
Repository = "https://github.com/teyfikoz/contentflow"
|
|
39
|
+
Issues = "https://github.com/teyfikoz/contentflow/issues"
|
|
40
|
+
|
|
41
|
+
[tool.setuptools.packages.find]
|
|
42
|
+
where = ["."]
|
|
43
|
+
include = ["contentflow*"]
|
|
44
|
+
|
|
45
|
+
[tool.ruff]
|
|
46
|
+
line-length = 100
|
|
47
|
+
target-version = "py310"
|
|
48
|
+
|
|
49
|
+
[tool.ruff.lint]
|
|
50
|
+
select = ["E", "F", "W", "I"]
|
|
51
|
+
ignore = ["E501"]
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"""Basic tests for ContentFlow package."""
|
|
2
|
+
|
|
3
|
+
import pytest
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def test_import():
|
|
7
|
+
"""Test that contentflow can be imported."""
|
|
8
|
+
import contentflow
|
|
9
|
+
assert hasattr(contentflow, "__version__")
|
|
10
|
+
assert contentflow.__version__ == "0.4.0"
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def test_content_generator_import():
|
|
14
|
+
"""Test ContentGenerator class import."""
|
|
15
|
+
from contentflow import ContentGenerator
|
|
16
|
+
gen = ContentGenerator()
|
|
17
|
+
assert gen is not None
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def test_generate_ad_copy_template():
|
|
21
|
+
"""Test template-based ad copy generation."""
|
|
22
|
+
from contentflow import ContentGenerator
|
|
23
|
+
|
|
24
|
+
gen = ContentGenerator() # No API key = template mode
|
|
25
|
+
copy = gen.generate_ad_copy("Istanbul", vibe="exciting", platform="Instagram")
|
|
26
|
+
assert isinstance(copy, str)
|
|
27
|
+
assert len(copy) > 0
|
|
28
|
+
assert "Istanbul" in copy
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def test_get_travel_quote():
|
|
32
|
+
"""Test travel quote retrieval."""
|
|
33
|
+
from contentflow import ContentGenerator
|
|
34
|
+
|
|
35
|
+
gen = ContentGenerator()
|
|
36
|
+
quote = gen.get_travel_quote("Adventure")
|
|
37
|
+
assert isinstance(quote, str)
|
|
38
|
+
assert len(quote) > 0
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def test_get_travel_quote_fallback():
|
|
42
|
+
"""Test travel quote with unknown category falls back to Adventure."""
|
|
43
|
+
from contentflow import ContentGenerator
|
|
44
|
+
|
|
45
|
+
gen = ContentGenerator()
|
|
46
|
+
quote = gen.get_travel_quote("Unknown")
|
|
47
|
+
assert isinstance(quote, str)
|
|
48
|
+
assert len(quote) > 0
|
contentflow-0.3.0/PKG-INFO
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: contentflow
|
|
3
|
-
Version: 0.3.0
|
|
4
|
-
Summary: AI Marketing Content Generator
|
|
5
|
-
Requires-Python: >=3.8
|
|
6
|
-
Description-Content-Type: text/markdown
|
|
7
|
-
Requires-Dist: requests
|
|
8
|
-
Dynamic: description
|
|
9
|
-
Dynamic: description-content-type
|
|
10
|
-
Dynamic: requires-dist
|
|
11
|
-
Dynamic: requires-python
|
|
12
|
-
Dynamic: summary
|
|
13
|
-
|
|
14
|
-
# ContentFlow: AI Marketing Content Generator (Phase 2)
|
|
15
|
-
|
|
16
|
-
ContentFlow is a specialized AI copywriting library designed for the travel and tourism industry. It leverages lightweight transformer models to generate high-converting marketing copy while providing a robust template-driven fallback system.
|
|
17
|
-
|
|
18
|
-
## Installation
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
pip install contentflow
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## 🔥 NEW in Phase 2: AI Generation & Tone Control
|
|
25
|
-
|
|
26
|
-
ContentFlow now supports dynamic tone adjustments and context-aware generation for social media ads, email campaigns, and blog intros.
|
|
27
|
-
|
|
28
|
-
### Basic Usage
|
|
29
|
-
|
|
30
|
-
```python
|
|
31
|
-
from contentflow import ContentGenerator
|
|
32
|
-
|
|
33
|
-
gen = ContentGenerator()
|
|
34
|
-
|
|
35
|
-
# 1. Generate an Ad for a Destination
|
|
36
|
-
ad = gen.generate_ad_copy(
|
|
37
|
-
destination="Istanbul",
|
|
38
|
-
vibe="Exciting",
|
|
39
|
-
platform="Instagram"
|
|
40
|
-
)
|
|
41
|
-
print(f"Post: {ad}")
|
|
42
|
-
|
|
43
|
-
# 2. Get a Travel Quote (Fallback Logic)
|
|
44
|
-
quote = gen.get_travel_quote("Adventure")
|
|
45
|
-
print(f"Quote: {quote}")
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
### Verified Output
|
|
49
|
-
|
|
50
|
-
```text
|
|
51
|
-
Post: Istanbul is calling! Experience a Exciting adventure filled with history and flavor. Book your dream trip today! ✈️ #Istanbul #Travel
|
|
52
|
-
Quote: "Adventure is worthwhile in itself." - Amelia Earhart
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
## Features
|
|
56
|
-
- **AI Copywriting**: Transformers-based generation for multiple platforms (Instagram, Facebook, Twitter).
|
|
57
|
-
- **Template System**: 500+ hand-crafted high-converting templates for instant fallback.
|
|
58
|
-
- **Tone & Vibe**: Specify the "mood" of your content (Luxury, Adventure, Family, Exciting).
|
|
59
|
-
- **SEO Optimized**: Automatically includes trending travel hashtags.
|
|
60
|
-
|
|
61
|
-
## License
|
|
62
|
-
MIT
|
contentflow-0.3.0/README.md
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# ContentFlow: AI Marketing Content Generator (Phase 2)
|
|
2
|
-
|
|
3
|
-
ContentFlow is a specialized AI copywriting library designed for the travel and tourism industry. It leverages lightweight transformer models to generate high-converting marketing copy while providing a robust template-driven fallback system.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
pip install contentflow
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## 🔥 NEW in Phase 2: AI Generation & Tone Control
|
|
12
|
-
|
|
13
|
-
ContentFlow now supports dynamic tone adjustments and context-aware generation for social media ads, email campaigns, and blog intros.
|
|
14
|
-
|
|
15
|
-
### Basic Usage
|
|
16
|
-
|
|
17
|
-
```python
|
|
18
|
-
from contentflow import ContentGenerator
|
|
19
|
-
|
|
20
|
-
gen = ContentGenerator()
|
|
21
|
-
|
|
22
|
-
# 1. Generate an Ad for a Destination
|
|
23
|
-
ad = gen.generate_ad_copy(
|
|
24
|
-
destination="Istanbul",
|
|
25
|
-
vibe="Exciting",
|
|
26
|
-
platform="Instagram"
|
|
27
|
-
)
|
|
28
|
-
print(f"Post: {ad}")
|
|
29
|
-
|
|
30
|
-
# 2. Get a Travel Quote (Fallback Logic)
|
|
31
|
-
quote = gen.get_travel_quote("Adventure")
|
|
32
|
-
print(f"Quote: {quote}")
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### Verified Output
|
|
36
|
-
|
|
37
|
-
```text
|
|
38
|
-
Post: Istanbul is calling! Experience a Exciting adventure filled with history and flavor. Book your dream trip today! ✈️ #Istanbul #Travel
|
|
39
|
-
Quote: "Adventure is worthwhile in itself." - Amelia Earhart
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
## Features
|
|
43
|
-
- **AI Copywriting**: Transformers-based generation for multiple platforms (Instagram, Facebook, Twitter).
|
|
44
|
-
- **Template System**: 500+ hand-crafted high-converting templates for instant fallback.
|
|
45
|
-
- **Tone & Vibe**: Specify the "mood" of your content (Luxury, Adventure, Family, Exciting).
|
|
46
|
-
- **SEO Optimized**: Automatically includes trending travel hashtags.
|
|
47
|
-
|
|
48
|
-
## License
|
|
49
|
-
MIT
|
contentflow-0.3.0/setup.py
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
from setuptools import setup, find_packages
|
|
2
|
-
from pathlib import Path
|
|
3
|
-
|
|
4
|
-
this_directory = Path(__file__).parent
|
|
5
|
-
long_description = (this_directory / "README.md").read_text()
|
|
6
|
-
|
|
7
|
-
setup(
|
|
8
|
-
name="contentflow",
|
|
9
|
-
version="0.3.0",
|
|
10
|
-
description="AI Marketing Content Generator",
|
|
11
|
-
long_description=long_description,
|
|
12
|
-
long_description_content_type='text/markdown',
|
|
13
|
-
package_dir={"": "src"},
|
|
14
|
-
packages=find_packages(where="src"),
|
|
15
|
-
install_requires=[
|
|
16
|
-
"requests",
|
|
17
|
-
],
|
|
18
|
-
python_requires=">=3.8",
|
|
19
|
-
)
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: contentflow
|
|
3
|
-
Version: 0.3.0
|
|
4
|
-
Summary: AI Marketing Content Generator
|
|
5
|
-
Requires-Python: >=3.8
|
|
6
|
-
Description-Content-Type: text/markdown
|
|
7
|
-
Requires-Dist: requests
|
|
8
|
-
Dynamic: description
|
|
9
|
-
Dynamic: description-content-type
|
|
10
|
-
Dynamic: requires-dist
|
|
11
|
-
Dynamic: requires-python
|
|
12
|
-
Dynamic: summary
|
|
13
|
-
|
|
14
|
-
# ContentFlow: AI Marketing Content Generator (Phase 2)
|
|
15
|
-
|
|
16
|
-
ContentFlow is a specialized AI copywriting library designed for the travel and tourism industry. It leverages lightweight transformer models to generate high-converting marketing copy while providing a robust template-driven fallback system.
|
|
17
|
-
|
|
18
|
-
## Installation
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
pip install contentflow
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## 🔥 NEW in Phase 2: AI Generation & Tone Control
|
|
25
|
-
|
|
26
|
-
ContentFlow now supports dynamic tone adjustments and context-aware generation for social media ads, email campaigns, and blog intros.
|
|
27
|
-
|
|
28
|
-
### Basic Usage
|
|
29
|
-
|
|
30
|
-
```python
|
|
31
|
-
from contentflow import ContentGenerator
|
|
32
|
-
|
|
33
|
-
gen = ContentGenerator()
|
|
34
|
-
|
|
35
|
-
# 1. Generate an Ad for a Destination
|
|
36
|
-
ad = gen.generate_ad_copy(
|
|
37
|
-
destination="Istanbul",
|
|
38
|
-
vibe="Exciting",
|
|
39
|
-
platform="Instagram"
|
|
40
|
-
)
|
|
41
|
-
print(f"Post: {ad}")
|
|
42
|
-
|
|
43
|
-
# 2. Get a Travel Quote (Fallback Logic)
|
|
44
|
-
quote = gen.get_travel_quote("Adventure")
|
|
45
|
-
print(f"Quote: {quote}")
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
### Verified Output
|
|
49
|
-
|
|
50
|
-
```text
|
|
51
|
-
Post: Istanbul is calling! Experience a Exciting adventure filled with history and flavor. Book your dream trip today! ✈️ #Istanbul #Travel
|
|
52
|
-
Quote: "Adventure is worthwhile in itself." - Amelia Earhart
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
## Features
|
|
56
|
-
- **AI Copywriting**: Transformers-based generation for multiple platforms (Instagram, Facebook, Twitter).
|
|
57
|
-
- **Template System**: 500+ hand-crafted high-converting templates for instant fallback.
|
|
58
|
-
- **Tone & Vibe**: Specify the "mood" of your content (Luxury, Adventure, Family, Exciting).
|
|
59
|
-
- **SEO Optimized**: Automatically includes trending travel hashtags.
|
|
60
|
-
|
|
61
|
-
## License
|
|
62
|
-
MIT
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
README.md
|
|
2
|
-
setup.py
|
|
3
|
-
src/contentflow/__init__.py
|
|
4
|
-
src/contentflow/generator.py
|
|
5
|
-
src/contentflow.egg-info/PKG-INFO
|
|
6
|
-
src/contentflow.egg-info/SOURCES.txt
|
|
7
|
-
src/contentflow.egg-info/dependency_links.txt
|
|
8
|
-
src/contentflow.egg-info/requires.txt
|
|
9
|
-
src/contentflow.egg-info/top_level.txt
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
requests
|
|
File without changes
|
|
File without changes
|
|
File without changes
|