Skip to content

Commit be452cb

Browse files
committed
Fix import paths and update README examples for consistency
1 parent 6fd3b26 commit be452cb

File tree

10 files changed

+41
-128
lines changed

10 files changed

+41
-128
lines changed

.github/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pip install metaai_api
3636
## Quick Start
3737

3838
```python
39-
from meta_ai_api import MetaAI
39+
from metaai_api import MetaAI
4040

4141
# Initialize
4242
ai = MetaAI()

ARCHITECTURE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ meta-ai-python/
1111
│ │ └── python-publish.yml # PyPI publishing
1212
│ └── README.md # GitHub repository info
1313
14-
├── src/meta_ai_api/
14+
├── src/metaai_api/
1515
│ ├── __init__.py # Package initialization and exports
1616
│ ├── main.py # Core MetaAI class (chat, video, images)
1717
│ ├── video_generation.py # VideoGenerator class

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ First stable release of the Meta AI Python SDK with comprehensive features for M
109109

110110
```python
111111
# New in v2.0
112-
from meta_ai_api import MetaAI
112+
from metaai_api import MetaAI
113113

114114
ai = MetaAI(cookies=cookies)
115115
result = ai.generate_video("Generate a video of a sunset")

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ pip install -e ".[dev]"
6060

6161
```
6262
meta-ai-python/
63-
├── src/meta_ai_api/
63+
├── src/metaai_api/
6464
│ ├── __init__.py
6565
│ ├── main.py # Core MetaAI class
6666
│ ├── video_generation.py # Video generation
@@ -227,7 +227,7 @@ pytest tests/
227227
pytest tests/test_video_generation.py
228228

229229
# Run with coverage
230-
pytest --cov=meta_ai_api tests/
230+
pytest --cov=metaai_api tests/
231231
```
232232

233233
### Writing Tests

QUICK_REFERENCE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
pip install metaai-api
1010

1111
# Or install from source
12-
git clone https://github.com/mir-ashiq/meta-ai-python.git
13-
cd meta-ai-python
12+
git clone https://github.com/mir-ashiq/metaai-api.git
13+
cd metaai-api
1414
pip install -e .
1515
```
1616

@@ -40,7 +40,7 @@ response = ai.prompt("Hello", new_conversation=True)
4040
## 🎬 Video Generation
4141

4242
```python
43-
from meta_ai_api import MetaAI
43+
from metaai_api import MetaAI
4444

4545
# Your cookies
4646
cookies = {
@@ -78,7 +78,7 @@ result = ai.generate_video(
7878
## 🎨 Image Generation
7979

8080
```python
81-
from meta_ai_api import MetaAI
81+
from metaai_api import MetaAI
8282

8383
# Requires FB credentials
8484
ai = MetaAI(fb_email="email@example.com", fb_password="password")

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Python Version](https://img.shields.io/badge/python-3.7%2B-blue?style=for-the-badge&logo=python&logoColor=white)](https://www.python.org/downloads/)
66
[![License](https://img.shields.io/badge/license-MIT-green?style=for-the-badge)](LICENSE)
77
[![PyPI](https://img.shields.io/badge/PyPI-v2.0.0-orange?style=for-the-badge&logo=pypi&logoColor=white)](https://pypi.org/project/metaai-api/)
8-
[![GitHub](https://img.shields.io/badge/GitHub-mir--ashiq-black?style=for-the-badge&logo=github)](https://github.com/mir-ashiq/meta-ai-python)
8+
[![GitHub](https://img.shields.io/badge/GitHub-mir--ashiq-black?style=for-the-badge&logo=github)](https://github.com/mir-ashiq/metaai-api)
99

1010
**Unleash the Power of Meta AI with Python** 🚀
1111

@@ -71,8 +71,8 @@ All in one SDK
7171
pip install metaai-api
7272

7373
# Or clone from GitHub
74-
git clone https://github.com/mir-ashiq/meta-ai-python.git
75-
cd meta-ai-python
74+
git clone https://github.com/mir-ashiq/metaai-api.git
75+
cd metaai-api
7676
pip install -e .
7777
```
7878

@@ -107,7 +107,7 @@ with the Celtics winning Game 5 at TD Garden in Boston.
107107
### Example 2: Get Stock Market Info
108108

109109
```python
110-
from meta_ai_api import MetaAI
110+
from metaai_api import MetaAI
111111

112112
ai = MetaAI()
113113
response = ai.prompt("What is the current price of Bitcoin?")
@@ -130,7 +130,7 @@ largest cryptocurrency by market cap.
130130
### Example 3: Solve Math Problems
131131

132132
```python
133-
from meta_ai_api import MetaAI
133+
from metaai_api import MetaAI
134134

135135
ai = MetaAI()
136136

@@ -167,7 +167,7 @@ This calculation uses the compound interest formula: A = P(1 + r/n)^(nt)
167167
Watch responses appear in real-time, like ChatGPT:
168168

169169
```python
170-
from meta_ai_api import MetaAI
170+
from metaai_api import MetaAI
171171

172172
ai = MetaAI()
173173

@@ -194,7 +194,7 @@ cryptography, and complex simulations.
194194
Have natural back-and-forth conversations:
195195

196196
```python
197-
from meta_ai_api import MetaAI
197+
from metaai_api import MetaAI
198198

199199
ai = MetaAI()
200200

@@ -226,7 +226,7 @@ Q3: The capital of France is Paris, located in the...
226226
Route your requests through a proxy:
227227

228228
```python
229-
from meta_ai_api import MetaAI
229+
from metaai_api import MetaAI
230230

231231
# Configure proxy
232232
proxy = {
@@ -256,7 +256,7 @@ Create AI-generated videos from text descriptions!
256256
### Example 1: Generate Your First Video
257257

258258
```python
259-
from meta_ai_api import MetaAI
259+
from metaai_api import MetaAI
260260

261261
# Your browser cookies
262262
cookies = {
@@ -309,7 +309,7 @@ else:
309309
### Example 2: Generate Multiple Videos
310310

311311
```python
312-
from meta_ai_api import MetaAI
312+
from metaai_api import MetaAI
313313
import time
314314

315315
ai = MetaAI(cookies=cookies)
@@ -354,7 +354,7 @@ print(f"\n🎉 Generated {len(videos)} videos successfully!")
354354
### Example 3: Advanced Video Generation
355355

356356
```python
357-
from meta_ai_api import MetaAI
357+
from metaai_api import MetaAI
358358

359359
ai = MetaAI(cookies=cookies)
360360

@@ -384,7 +384,7 @@ if result["success"]:
384384
Generate AI-powered images (requires Facebook authentication):
385385

386386
```python
387-
from meta_ai_api import MetaAI
387+
from metaai_api import MetaAI
388388

389389
# Initialize with Facebook credentials
390390
ai = MetaAI(fb_email="your_email@example.com", fb_password="your_password")
@@ -486,7 +486,7 @@ class MetaAI:
486486
#### VideoGenerator Class
487487

488488
```python
489-
from meta_ai_api import VideoGenerator
489+
from metaai_api import VideoGenerator
490490

491491
# Direct video generation
492492
generator = VideoGenerator(cookies_str="your_cookies_as_string")
@@ -574,7 +574,7 @@ Load in Python:
574574
```python
575575
import os
576576
from dotenv import load_dotenv
577-
from meta_ai_api import MetaAI
577+
from metaai_api import MetaAI
578578

579579
load_dotenv()
580580

@@ -591,7 +591,7 @@ ai = MetaAI(cookies=cookies)
591591
### Error Handling
592592

593593
```python
594-
from meta_ai_api import MetaAI
594+
from metaai_api import MetaAI
595595

596596
ai = MetaAI(cookies=cookies)
597597

@@ -618,7 +618,7 @@ except Exception as e:
618618
```
619619
meta-ai-python/
620620
621-
├── 📁 src/meta_ai_api/ # Core package
621+
├── 📁 src/metaai_api/ # Core package
622622
│ ├── __init__.py # Package initialization
623623
│ ├── main.py # MetaAI class
624624
│ ├── video_generation.py # Video generation

VIDEO_GENERATION_README.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Python](https://img.shields.io/badge/python-3.7+-blue.svg)](https://www.python.org/downloads/)
44
[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
5-
[![Version](https://img.shields.io/badge/version-2.0.0-blue.svg)](https://github.com/mir-ashiq/meta-ai-python)
5+
[![Version](https://img.shields.io/badge/version-2.0.0-blue.svg)](https://github.com/mir-ashiq/metaai-api)
66

77
Complete guide for generating AI videos using Meta AI Python SDK with automatic token management and seamless integration.
88

@@ -59,11 +59,12 @@ That's it! No need to manually fetch tokens or use separate classes. 🎉
5959

6060
```bash
6161
# Install from source
62-
cd metaai_api
62+
git clone https://github.com/mir-ashiq/metaai-api.git
63+
cd metaai-api
6364
pip install -e .
6465

6566
# Or install directly
66-
pip install git+https://github.com/mir-ashiq/meta-ai-python.git
67+
pip install git+https://github.com/mir-ashiq/metaai-api.git
6768
```
6869

6970
---
@@ -109,7 +110,7 @@ cookies = {
109110
### Initialize MetaAI
110111

111112
```python
112-
from meta_ai_api import MetaAI
113+
from metaai_api import MetaAI
113114

114115
# Method 1: With cookies dictionary (recommended)
115116
ai = MetaAI(cookies={
@@ -300,7 +301,7 @@ if result["success"]:
300301
### Example 1: Simple Video Generation
301302

302303
```python
303-
from meta_ai_api import MetaAI
304+
from metaai_api import MetaAI
304305

305306
ai = MetaAI(cookies={"datr": "...", "abra_sess": "..."})
306307
result = ai.generate_video("Generate a video of a cat")
@@ -314,7 +315,7 @@ if result["success"]:
314315
### Example 2: Batch Generation
315316

316317
```python
317-
from meta_ai_api import MetaAI
318+
from metaai_api import MetaAI
318319

319320
ai = MetaAI(cookies=cookies)
320321

@@ -336,7 +337,7 @@ print(f"Generated {len(successful)}/{len(prompts)} videos")
336337
### Example 3: Custom Timeout
337338

338339
```python
339-
from meta_ai_api import MetaAI
340+
from metaai_api import MetaAI
340341

341342
ai = MetaAI(cookies=cookies)
342343

@@ -353,7 +354,7 @@ result = ai.generate_video(
353354
### Example 4: Download Generated Videos
354355

355356
```python
356-
from meta_ai_api import MetaAI
357+
from metaai_api import MetaAI
357358
import requests
358359

359360
ai = MetaAI(cookies=cookies)
@@ -375,7 +376,7 @@ if result["success"]:
375376
### Example 5: Complete Workflow
376377

377378
```python
378-
from meta_ai_api import MetaAI
379+
from metaai_api import MetaAI
379380
import json
380381
from datetime import datetime
381382

@@ -488,7 +489,7 @@ else:
488489
**Before:**
489490

490491
```python
491-
from meta_ai_api import VideoGenerator
492+
from metaai_api import VideoGenerator
492493

493494
video_gen = VideoGenerator(cookies_str="...")
494495
result = video_gen.generate_video(prompt)
@@ -497,7 +498,7 @@ result = video_gen.generate_video(prompt)
497498
**After:**
498499

499500
```python
500-
from meta_ai_api import MetaAI
501+
from metaai_api import MetaAI
501502

502503
ai = MetaAI(cookies={"datr": "...", "abra_sess": "..."})
503504
result = ai.generate_video(prompt)

examples/simple_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
# Your cookies from browser (lsd and fb_dtsg are auto-fetched!)
44
cookies = {
5-
"datr": "XTAgaawpytHjE5u298papd-E",
6-
"abra_sess": "FrKF8dSY%2FfECFkAYDjRPcnBwYkxPNmFkTGlRFqzTgZINAA%3D%3D",
5+
"datr": "-5pnaePoirB_Y94nHinFXSBj",
6+
"abra_sess": "FrKF8dSY%2FfECFloYDm9yLVZKdW5VVVJVak13FqbuvJYNAA%3D%3D",
77
"dpr": "1.25",
88
"wd": "1536x443"
99
}

0 commit comments

Comments
 (0)