contentflow 0.3.1__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.
@@ -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
+ [![PyPI version](https://badge.fury.io/py/contentflow.svg)](https://pypi.org/project/contentflow/)
31
+ [![CI](https://github.com/teyfikoz/contentflow/actions/workflows/ci.yml/badge.svg)](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
+ [![PyPI version](https://badge.fury.io/py/contentflow.svg)](https://pypi.org/project/contentflow/)
6
+ [![CI](https://github.com/teyfikoz/contentflow/actions/workflows/ci.yml/badge.svg)](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
@@ -2,6 +2,6 @@
2
2
  ContentFlow - AI Marketing Content Generator
3
3
  """
4
4
 
5
- __version__ = "0.3.1"
5
+ __version__ = "0.4.0"
6
6
 
7
7
  from .generator import ContentGenerator
@@ -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
+ [![PyPI version](https://badge.fury.io/py/contentflow.svg)](https://pypi.org/project/contentflow/)
31
+ [![CI](https://github.com/teyfikoz/contentflow/actions/workflows/ci.yml/badge.svg)](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,5 @@
1
+ requests>=2.31.0
2
+
3
+ [dev]
4
+ pytest>=7.0
5
+ ruff>=0.1.0
@@ -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
@@ -1,128 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: contentflow
3
- Version: 0.3.1
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 Content Generation for Travel & Marketing
15
-
16
- [![PyPI version](https://img.shields.io/pypi/v/contentflow.svg)](https://pypi.org/project/contentflow/)
17
- [![License: MIT](https://img.shields.io/badge/License-MIT-teal.svg)](https://opensource.org/licenses/MIT)
18
-
19
- **ContentFlow** is an AI-powered content orchestration library designed to automate the generation of high-quality marketing copy, travel guides, and operational quotes. It bridges the gap between raw city data and compelling human-readable content.
20
-
21
- ---
22
-
23
- ## 🌟 Vision
24
- To provide personal and commercial travel platforms with an "Instant Editor" capability, where data points are transformed into persuasive storytelling with a single API call.
25
-
26
- ## 🚀 Key Features
27
-
28
- - **📢 Smart Ad Copy**: Automatically generate platform-specific (Instagram, LinkedIn, X) ad copy for any destination.
29
- - **📜 Automated Quotes**: Generate realistic travel and insurance quotes based on destination profiles.
30
- - **🌍 Multi-Lingual Support**: (Beta) Content generation logic tailored for global audiences.
31
- - **✨ Tone Customization**: Switch between "Professional," "Adventurous," or "Luxury" tones effortlessly.
32
- - **🔗 Context-Aware**: Content is informed by real-world city intelligence (using GeoDataSim integration patterns).
33
-
34
- ---
35
-
36
- ## 📦 Installation
37
-
38
- ```bash
39
- pip install contentflow
40
- ```
41
-
42
- ---
43
-
44
- ## 🛠️ Premium Usage
45
-
46
- ### 1. Generating Marketing Content
47
- Create high-conversion ad copy tailored for specific social media platforms.
48
-
49
- ```python
50
- from contentflow import ContentGenerator
51
-
52
- # Initialize the generator
53
- cg = ContentGenerator()
54
-
55
- # 1. Generate an Instagram ad for Paris
56
- ad = cg.generate_ad_copy(
57
- destination="Paris",
58
- platform="instagram",
59
- tone="luxury"
60
- )
61
-
62
- print(f"[{ad.platform}] {ad.content}")
63
- print(f"Hashtags: {ad.hashtags}")
64
-
65
- # 2. Generate a travel quote for a customer
66
- quote = cg.get_travel_quote(
67
- destination="Istanbul",
68
- duration_days=5
69
- )
70
-
71
- print(f"\nTravel Quote: {quote.reference_id}")
72
- print(f"Total Estimate: ${quote.total_amount}")
73
- ```
74
-
75
- #### ✅ Verified Output
76
- ```text
77
- [instagram] ✨ Experience the timeless elegance of Paris. From the golden lights of the Eiffel Tower to the hidden gems of Le Marais, your luxury escape awaits. 🇫🇷 #LuxuryTravel #ParisVibes
78
-
79
- Hashtags: ['#Paris', '#LuxuryTravel', '#Wanderlust']
80
-
81
- Travel Quote: QUO-IST-99283
82
- Total Estimate: $1250.00
83
- ```
84
-
85
- ### 2. Batch Content Creation
86
- Generate descriptions for a list of featured destinations.
87
-
88
- ```python
89
- from contentflow import ContentGenerator
90
-
91
- cg = ContentGenerator()
92
-
93
- destinations = ["Tokyo", "New York", "Dubai"]
94
- for city in destinations:
95
- copy = cg.generate_ad_copy(city, platform="twitter", tone="adventurous")
96
- print(f"--- {city} ---")
97
- print(copy.content)
98
- ```
99
-
100
- #### ✅ Verified Output
101
- ```text
102
- --- Tokyo ---
103
- 🍣 From neon streets to ancient shrines, Tokyo is a pulse you have to feel. Ready for the ultimate adventure? 🇯🇵 #TokyoAdventures #ExploreJapan
104
- ```
105
-
106
- ---
107
-
108
- ## 📊 API Reference
109
-
110
- ### `ContentGenerator`
111
- - `generate_ad_copy(destination, platform, tone) -> AdCopy`: The core marketing engine.
112
- - `get_travel_quote(destination, duration_days) -> Quote`: Generate operational price quotes.
113
- - `format_blog_post(topic, points) -> str`: (Beta) Structured content formatter.
114
-
115
- ### Core Modules
116
- - `CopyEngine`: NLP templates and platform-specific formatting.
117
- - `QuoteEngine`: Logic for generating realistic pricing and references.
118
- - `ToneController`: Heuristics for adjusting content sentiment.
119
-
120
- ---
121
-
122
- ## 🎨 Design Philosophy
123
- ContentFlow follows the **"Augmented Creativity"** approach. We don't aim to replace the writer, but to provide a robust starting point that is factually grounded in geographic data.
124
-
125
- ---
126
-
127
- ## 📄 License
128
- This project is licensed under the MIT License - see the LICENSE file for details.
@@ -1,115 +0,0 @@
1
- # ✍️ ContentFlow: AI Content Generation for Travel & Marketing
2
-
3
- [![PyPI version](https://img.shields.io/pypi/v/contentflow.svg)](https://pypi.org/project/contentflow/)
4
- [![License: MIT](https://img.shields.io/badge/License-MIT-teal.svg)](https://opensource.org/licenses/MIT)
5
-
6
- **ContentFlow** is an AI-powered content orchestration library designed to automate the generation of high-quality marketing copy, travel guides, and operational quotes. It bridges the gap between raw city data and compelling human-readable content.
7
-
8
- ---
9
-
10
- ## 🌟 Vision
11
- To provide personal and commercial travel platforms with an "Instant Editor" capability, where data points are transformed into persuasive storytelling with a single API call.
12
-
13
- ## 🚀 Key Features
14
-
15
- - **📢 Smart Ad Copy**: Automatically generate platform-specific (Instagram, LinkedIn, X) ad copy for any destination.
16
- - **📜 Automated Quotes**: Generate realistic travel and insurance quotes based on destination profiles.
17
- - **🌍 Multi-Lingual Support**: (Beta) Content generation logic tailored for global audiences.
18
- - **✨ Tone Customization**: Switch between "Professional," "Adventurous," or "Luxury" tones effortlessly.
19
- - **🔗 Context-Aware**: Content is informed by real-world city intelligence (using GeoDataSim integration patterns).
20
-
21
- ---
22
-
23
- ## 📦 Installation
24
-
25
- ```bash
26
- pip install contentflow
27
- ```
28
-
29
- ---
30
-
31
- ## 🛠️ Premium Usage
32
-
33
- ### 1. Generating Marketing Content
34
- Create high-conversion ad copy tailored for specific social media platforms.
35
-
36
- ```python
37
- from contentflow import ContentGenerator
38
-
39
- # Initialize the generator
40
- cg = ContentGenerator()
41
-
42
- # 1. Generate an Instagram ad for Paris
43
- ad = cg.generate_ad_copy(
44
- destination="Paris",
45
- platform="instagram",
46
- tone="luxury"
47
- )
48
-
49
- print(f"[{ad.platform}] {ad.content}")
50
- print(f"Hashtags: {ad.hashtags}")
51
-
52
- # 2. Generate a travel quote for a customer
53
- quote = cg.get_travel_quote(
54
- destination="Istanbul",
55
- duration_days=5
56
- )
57
-
58
- print(f"\nTravel Quote: {quote.reference_id}")
59
- print(f"Total Estimate: ${quote.total_amount}")
60
- ```
61
-
62
- #### ✅ Verified Output
63
- ```text
64
- [instagram] ✨ Experience the timeless elegance of Paris. From the golden lights of the Eiffel Tower to the hidden gems of Le Marais, your luxury escape awaits. 🇫🇷 #LuxuryTravel #ParisVibes
65
-
66
- Hashtags: ['#Paris', '#LuxuryTravel', '#Wanderlust']
67
-
68
- Travel Quote: QUO-IST-99283
69
- Total Estimate: $1250.00
70
- ```
71
-
72
- ### 2. Batch Content Creation
73
- Generate descriptions for a list of featured destinations.
74
-
75
- ```python
76
- from contentflow import ContentGenerator
77
-
78
- cg = ContentGenerator()
79
-
80
- destinations = ["Tokyo", "New York", "Dubai"]
81
- for city in destinations:
82
- copy = cg.generate_ad_copy(city, platform="twitter", tone="adventurous")
83
- print(f"--- {city} ---")
84
- print(copy.content)
85
- ```
86
-
87
- #### ✅ Verified Output
88
- ```text
89
- --- Tokyo ---
90
- 🍣 From neon streets to ancient shrines, Tokyo is a pulse you have to feel. Ready for the ultimate adventure? 🇯🇵 #TokyoAdventures #ExploreJapan
91
- ```
92
-
93
- ---
94
-
95
- ## 📊 API Reference
96
-
97
- ### `ContentGenerator`
98
- - `generate_ad_copy(destination, platform, tone) -> AdCopy`: The core marketing engine.
99
- - `get_travel_quote(destination, duration_days) -> Quote`: Generate operational price quotes.
100
- - `format_blog_post(topic, points) -> str`: (Beta) Structured content formatter.
101
-
102
- ### Core Modules
103
- - `CopyEngine`: NLP templates and platform-specific formatting.
104
- - `QuoteEngine`: Logic for generating realistic pricing and references.
105
- - `ToneController`: Heuristics for adjusting content sentiment.
106
-
107
- ---
108
-
109
- ## 🎨 Design Philosophy
110
- ContentFlow follows the **"Augmented Creativity"** approach. We don't aim to replace the writer, but to provide a robust starting point that is factually grounded in geographic data.
111
-
112
- ---
113
-
114
- ## 📄 License
115
- This project is licensed under the MIT License - see the LICENSE file for details.
@@ -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.1",
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,128 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: contentflow
3
- Version: 0.3.1
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 Content Generation for Travel & Marketing
15
-
16
- [![PyPI version](https://img.shields.io/pypi/v/contentflow.svg)](https://pypi.org/project/contentflow/)
17
- [![License: MIT](https://img.shields.io/badge/License-MIT-teal.svg)](https://opensource.org/licenses/MIT)
18
-
19
- **ContentFlow** is an AI-powered content orchestration library designed to automate the generation of high-quality marketing copy, travel guides, and operational quotes. It bridges the gap between raw city data and compelling human-readable content.
20
-
21
- ---
22
-
23
- ## 🌟 Vision
24
- To provide personal and commercial travel platforms with an "Instant Editor" capability, where data points are transformed into persuasive storytelling with a single API call.
25
-
26
- ## 🚀 Key Features
27
-
28
- - **📢 Smart Ad Copy**: Automatically generate platform-specific (Instagram, LinkedIn, X) ad copy for any destination.
29
- - **📜 Automated Quotes**: Generate realistic travel and insurance quotes based on destination profiles.
30
- - **🌍 Multi-Lingual Support**: (Beta) Content generation logic tailored for global audiences.
31
- - **✨ Tone Customization**: Switch between "Professional," "Adventurous," or "Luxury" tones effortlessly.
32
- - **🔗 Context-Aware**: Content is informed by real-world city intelligence (using GeoDataSim integration patterns).
33
-
34
- ---
35
-
36
- ## 📦 Installation
37
-
38
- ```bash
39
- pip install contentflow
40
- ```
41
-
42
- ---
43
-
44
- ## 🛠️ Premium Usage
45
-
46
- ### 1. Generating Marketing Content
47
- Create high-conversion ad copy tailored for specific social media platforms.
48
-
49
- ```python
50
- from contentflow import ContentGenerator
51
-
52
- # Initialize the generator
53
- cg = ContentGenerator()
54
-
55
- # 1. Generate an Instagram ad for Paris
56
- ad = cg.generate_ad_copy(
57
- destination="Paris",
58
- platform="instagram",
59
- tone="luxury"
60
- )
61
-
62
- print(f"[{ad.platform}] {ad.content}")
63
- print(f"Hashtags: {ad.hashtags}")
64
-
65
- # 2. Generate a travel quote for a customer
66
- quote = cg.get_travel_quote(
67
- destination="Istanbul",
68
- duration_days=5
69
- )
70
-
71
- print(f"\nTravel Quote: {quote.reference_id}")
72
- print(f"Total Estimate: ${quote.total_amount}")
73
- ```
74
-
75
- #### ✅ Verified Output
76
- ```text
77
- [instagram] ✨ Experience the timeless elegance of Paris. From the golden lights of the Eiffel Tower to the hidden gems of Le Marais, your luxury escape awaits. 🇫🇷 #LuxuryTravel #ParisVibes
78
-
79
- Hashtags: ['#Paris', '#LuxuryTravel', '#Wanderlust']
80
-
81
- Travel Quote: QUO-IST-99283
82
- Total Estimate: $1250.00
83
- ```
84
-
85
- ### 2. Batch Content Creation
86
- Generate descriptions for a list of featured destinations.
87
-
88
- ```python
89
- from contentflow import ContentGenerator
90
-
91
- cg = ContentGenerator()
92
-
93
- destinations = ["Tokyo", "New York", "Dubai"]
94
- for city in destinations:
95
- copy = cg.generate_ad_copy(city, platform="twitter", tone="adventurous")
96
- print(f"--- {city} ---")
97
- print(copy.content)
98
- ```
99
-
100
- #### ✅ Verified Output
101
- ```text
102
- --- Tokyo ---
103
- 🍣 From neon streets to ancient shrines, Tokyo is a pulse you have to feel. Ready for the ultimate adventure? 🇯🇵 #TokyoAdventures #ExploreJapan
104
- ```
105
-
106
- ---
107
-
108
- ## 📊 API Reference
109
-
110
- ### `ContentGenerator`
111
- - `generate_ad_copy(destination, platform, tone) -> AdCopy`: The core marketing engine.
112
- - `get_travel_quote(destination, duration_days) -> Quote`: Generate operational price quotes.
113
- - `format_blog_post(topic, points) -> str`: (Beta) Structured content formatter.
114
-
115
- ### Core Modules
116
- - `CopyEngine`: NLP templates and platform-specific formatting.
117
- - `QuoteEngine`: Logic for generating realistic pricing and references.
118
- - `ToneController`: Heuristics for adjusting content sentiment.
119
-
120
- ---
121
-
122
- ## 🎨 Design Philosophy
123
- ContentFlow follows the **"Augmented Creativity"** approach. We don't aim to replace the writer, but to provide a robust starting point that is factually grounded in geographic data.
124
-
125
- ---
126
-
127
- ## 📄 License
128
- This project is licensed under the MIT License - see the LICENSE file for details.
@@ -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