Archive: Comprehensive compression and archiving library for Ring

26 views
Skip to first unread message

Youssef Saeed

unread,
Jan 16, 2026, 11:27:26 AMJan 16
to The Ring Programming Language
Hello everyone,

I'm thrilled to share the release of Archive—a comprehensive compression and archiving library for Ring!

Powered by the battle-tested `libarchive`, Archive gives you a robust solution for managing compressed files. Whether you need simple file extraction or complex, encrypted backups, this library handles it all seamlessly across Windows, Linux, macOS and FreeBSD.

Key Features:
  • Universal Formats: Read/Write TAR, ZIP, 7-Zip, CPIO, ISO9660, and more.
  • Compression Power: Full support for GZIP, BZIP2, XZ, ZSTD, and LZ4.
  • Strong Encryption: Create secure archives using AES-256 encryption.
  • Dual API: Use simple helpers like `archive_extract()` or the full OOP interface for granular control.
Code Example:

load "archive.ring"

# 1. Simple Creation & Extraction
archive_create("backup.tar.gz", ["docs/", "image.png"],
ARCHIVE_FORMAT_TAR, ARCHIVE_COMPRESSION_GZIP)

archive_extract("backup.tar.gz", "output_folder/")

# 2. Reading Secure/Encrypted ZIPs (OOP)
reader = new ArchiveReader(NULL)
reader.addPassphrase("secret123")
reader.open("secure_data.zip")

while reader.nextEntry()
? "Found encrypted file: " + reader.entryPath()
end

Installation (RingPM):

ringpm install archive from ysdragon

Learn More:
If you find the library useful, please leave a star on GitHub! ⭐

Contributions and feedback are always welcome!

Best regards,
Youssef

Mansour Ayouni

unread,
Jan 16, 2026, 2:22:08 PMJan 16
to Youssef Saeed, The Ring Programming Language
Hello Youssef,

I tested the 22 samples and they all work!
I starred in your repo and you deserve it.

All the best,
Mansour

--

---
You received this message because you are subscribed to the Google Groups "The Ring Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ring-lang+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ring-lang/4f032d57-e60f-416c-8d18-bf3ad6416d1fn%40googlegroups.com.

Youssef Saeed

unread,
Jan 16, 2026, 2:37:05 PMJan 16
to The Ring Programming Language
Hello Mansour,

That’s great news! Thank you for the feedback and for starring the repository. I'm glad the samples are working well for you.

Best regards,
Youssef

Mansour Ayouni

unread,
Jan 16, 2026, 3:13:46 PMJan 16
to Youssef Saeed, The Ring Programming Language
Hello Youssef,

Yet another useful contribution you make.
We are all happy you are among the team.

All the best,
Mansour

Youssef Saeed

unread,
Jan 16, 2026, 3:44:48 PMJan 16
to The Ring Programming Language
Hello Mansour,

Thank you for your kind words!

Best regards,
Youssef
Reply all
Reply to author
Forward
0 new messages