feat(apm): add Aira Package Manager with rotating spinner & youtube module v1.4.6

This commit is contained in:
Adam Eehan committed 2026-09-27 02:47:58 +05:30
1 parent 960a8fc91f
commit cea8982b0f
4 files changed
+280 -3

No files matched your search

+1
View File
@@ -34,6 +34,7 @@ import "<module_name>";
| 14 | [`sqlite`](./sqlite.md) | Database | Lightweight embedded SQL relational database | `open()`, `query()`, `execute()`, `close()` |
| 15 | [`net`](./net.md) | Networking | Host pings, TCP port checks, and IP discovery | `ping()`, `port_open()`, `local_ip()`, `fetch()` |
| 16 | [`thread`](./thread.md) | Concurrency | Thread spawning, worker pools, and parallel execution | `spawn()`, `join()`, `pool()`, `sleep()` |
| 17 | [`youtube`](./youtube.md) / `yt` | Media & Video | YouTube video/audio download engine via APM with progressive stream resolution | `get()`, `stream()`, `download()`, `title`, `duration` |
---
*Maintained by the AiraLang Core Engineering Team. Created by Adam Eehan.*
+46
View File
@@ -0,0 +1,46 @@
# 🎬 AiraLang `youtube` Module
> **YouTube Video and Audio Downloader Engine (via APM)**
## Installation
```bash
aira install youtube
# or
airalang install youtube
```
## Import
```aira
import "youtube";
// or alias:
import "yt";
```
## Methods & Properties
- `youtube.get(url)`: Fetches video metadata and returns a `video` object.
- `video.title`: Video title string.
- `video.duration`: Duration in seconds.
- `video.author`: Channel / uploader name.
- `video.views`: Video view count.
- `video.stream(format)`: Returns a `stream` object (format can be `"mp4"` or `"mp3"`).
- `stream.download([save_path])`: Downloads the stream to specified file or default title.
- `os.save(filename)`: Configures and creates the destination file path.
## Example
```aira
import "youtube";
import "os";
let url = input("Enter Your URL Here : ");
let video = youtube.get(url);
say "Video Title : " + video.title;
let stream = video.stream("mp4");
let save = os.save("video.mp4");
say "Starting Download...";
stream.download(save);
say "Download Finished Successfully!";
```