Skip to main content

Command-line interface for Megaloader

Project description

[pkg]: megaloader-cli

PyPI version

Command-line interface for the megaloader library. Extract metadata and download files from supported hosting platforms directly in your terminal.

Installation

pip install megaloader-cli

The CLI installs the core megaloader library as a dependency. Both packages can be used independently.

Basic usage

List available files without downloading:

megaloader extract https://pixeldrain.com/l/abc123

Download files to a directory:

megaloader download https://pixeldrain.com/l/abc123 ./downloads

List supported platforms:

megaloader plugins

Commands

The extract command shows file metadata without downloading anything. Add --json for machine-readable output or --verbose for debug logs:

megaloader extract https://pixeldrain.com/l/abc123
megaloader extract https://gofile.io/d/xyz456 --json
megaloader extract https://cyberdrop.me/a/album --verbose

The download command saves files to the specified directory. Defaults to ./downloads when omitted. Files are grouped into collection subfolders by default:

megaloader download https://pixeldrain.com/l/abc123
megaloader download https://cyberdrop.me/a/album ./my-files
megaloader download https://bunkr.si/a/xyz789 ./downloads --verbose

Add --flat to disable subfolders and write all files directly to the output directory. Use --filter to download only files matching a glob pattern:

megaloader download https://pixeldrain.com/l/abc123 ./downloads --flat
megaloader download https://cyberdrop.me/a/album ./videos --filter "*.mp4"
megaloader download https://bunkr.si/a/xyz789 ./images --filter "*.{jpg,png}"

GoFile password-protected content requires the --password argument:

megaloader download https://gofile.io/d/protected ./downloads --password secret123

The plugins command lists all supported platforms and domains.

Common patterns

Preview files before downloading:

megaloader extract https://pixeldrain.com/l/abc123
megaloader download https://pixeldrain.com/l/abc123 ./downloads

Filter by type to download only what you need:

megaloader download https://cyberdrop.me/a/album ./videos --filter "*.mp4"
megaloader download https://bunkr.si/a/xyz ./images --filter "*.jpg"

Control file organization with the --flat flag:

megaloader download https://pixeldrain.com/l/abc ./organized
megaloader download https://pixeldrain.com/l/abc ./flat --flat

Enable verbose logging for troubleshooting:

megaloader download https://example.com/file ./downloads --verbose

Relationship to core library

The CLI wraps the core megaloader library. It handles argument parsing, output formatting, and file downloads. The core library performs URL detection, metadata extraction, and platform-specific logic.

Use the CLI for terminal workflows, quick downloads, and platform exploration. Use the core library for Python integration, custom handling, progress tracking, and batch processing. See the core library documentation for programmatic usage.

Development

The CLI is part of a uv workspace. Install from the repository root:

uv sync
uv run megaloader --help

Install in editable mode for development:

uv pip install -e packages/cli

Run uv run ruff format . and the test suite before committing.

Contributing

Contributions are welcome. See the repository contributing guide for setup and submission details. Report bugs and request features through GitHub Discussions. Include your Python version, error messages, and problematic URLs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

megaloader_cli-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

megaloader_cli-0.1.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file megaloader_cli-0.1.0.tar.gz.

File metadata

  • Download URL: megaloader_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for megaloader_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 81e4974eeae1a270d95ba06398ed0b7c85c5fa0c8f3ebd6e3982654655f6f0ea
MD5 b5de647885d3b7912c48220c51bf67c2
BLAKE2b-256 979cc59648884b7c4585e3b5ae5903df8f2df882108605952270196781d39406

See more details on using hashes here.

Provenance

The following attestation bundles were made for megaloader_cli-0.1.0.tar.gz:

Publisher: release-cli.yml on totallynotdavid/megaloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file megaloader_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: megaloader_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for megaloader_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c9f9c7cd2e2f47767e09d16f9185bed4e55de59129db73d9b1d9805107372353
MD5 68b27ae75d6f4605673ede91483b4b6c
BLAKE2b-256 7d4b8f326a6d68ed58c073df7141b3592356c44ac1154db4aa44c181e13114aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for megaloader_cli-0.1.0-py3-none-any.whl:

Publisher: release-cli.yml on totallynotdavid/megaloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page