peasy-compress
Async Rust client for the Peasy Compress API — ZIP, TAR, gzip, and brotli compression and extraction. Built with reqwest, serde, and tokio.
Built from Peasy Tools, a free online toolkit with compression tools for creating and extracting ZIP, TAR, gzip, and brotli archives.
Try the interactive tools at peasytools.com — Compression Tools, Glossary, Guides
Install
[]
= "0.2.0"
= { = "1", = ["full"] }
Or via cargo:
Quick Start
use Client;
async
API Client
The client wraps the Peasy Tools REST API with strongly-typed Rust structs using serde deserialization.
use Client;
async
Available Methods
| Method | Description |
|---|---|
list_tools(&opts) |
List tools (paginated, filterable) |
get_tool(slug) |
Get tool by slug |
list_categories(&opts) |
List tool categories |
list_formats(&opts) |
List file formats |
get_format(slug) |
Get format by slug |
list_conversions(&opts) |
List format conversions |
list_glossary(&opts) |
List glossary terms |
get_glossary_term(slug) |
Get glossary term |
list_guides(&opts) |
List guides |
get_guide(slug) |
Get guide by slug |
list_use_cases(&opts) |
List use cases |
search(query, limit) |
Search across all content |
list_sites() |
List Peasy sites |
openapi_spec() |
Get OpenAPI specification |
Full API documentation at peasytools.com/developers/. OpenAPI 3.1.0 spec: peasytools.com/api/openapi.json.
Learn More
- Tools: ZIP Compress · TAR Archive · All Tools
- Guides: How to Compress Files · All Guides
- Glossary: What is Gzip? · All Terms
- Formats: ZIP · All Formats
- API: REST API Docs · OpenAPI Spec
Also Available
| Language | Package | Install |
|---|---|---|
| Python | peasy-compress | pip install "peasy-compress[all]" |
| TypeScript | peasy-compress | npm install peasy-compress |
| Go | peasy-compress-go | go get github.com/peasytools/peasy-compress-go |
| Ruby | peasy-compress | gem install peasy-compress |
Peasy Developer Tools
Part of the Peasy Tools open-source developer ecosystem.
| Package | PyPI | npm | crates.io | Description |
|---|---|---|---|---|
| peasy-pdf | PyPI | npm | crate | PDF merge, split, rotate, compress — peasypdf.com |
| peasy-image | PyPI | npm | crate | Image resize, crop, convert, compress — peasyimage.com |
| peasy-audio | PyPI | npm | crate | Audio trim, merge, convert, normalize — peasyaudio.com |
| peasy-video | PyPI | npm | crate | Video trim, resize, thumbnails, GIF — peasyvideo.com |
| peasy-css | PyPI | npm | crate | CSS minify, format, analyze — peasycss.com |
| peasy-compress | PyPI | npm | crate | ZIP, TAR, gzip compression — peasytools.com |
| peasy-document | PyPI | npm | crate | Markdown, HTML, CSV, JSON conversion — peasyformats.com |
| peasytext | PyPI | npm | crate | Text case conversion, slugify, word count — peasytext.com |
License
MIT