Metadata-Version: 2.1
Name: all-package-resolver
Version: 0.0.5
Summary: This package is for those who need to download a package, with ALL of its dependencies. Not install, download only.
License: MIT
Author: benjkr
Author-email: 69110197+benjkr@users.noreply.github.com
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: docker (>=6.1.3,<7.0.0)
Requires-Dist: human-readable (>=1.3.4,<2.0.0)
Requires-Dist: pathlib2 (>=2.3.7.post1,<3.0.0)
Requires-Dist: rich (>=13.5.2,<14.0.0)
Requires-Dist: typer (>=0.9.0,<0.10.0)
Project-URL: homepage, https://pypi.org/project/all-package-resolver/
Project-URL: repository, https://github.com/benjkr/package-resolver
Description-Content-Type: text/markdown

# package-resolver

This package is for those who need to download a package, with ALL of its dependencies. Not install, download only.

The idea is to be able to get all versions, of any package, on all platforms. This includes:

- Linux distros packages (deb, rpm, apk...)
- Programming languages packages (Python, Node...)

## OS Distributions

At the moment only Ubuntu, Centos and alpine are implemented, all at their latest versions.
In the future you will be able to get packages based on the distro version.

## Programming languages packages

At the moment only python and node are implemented, But in the future you will be able to download packages based on the language version, and os distro.

## Requirements

The problem is that you can't download rpm files with yum if you are on ubuntu. Right? Wrong. This is possible thanks to docker containers.
You can build any environment imaginable with containers, and thats what this package does.
If you want to download vim for ubuntu, no matter what os you are running, the package will run a container of ubuntu, download the .deb files and zip it to one single file.

**To use this package you will need to run docker on your system: [Install Docker](https://docs.docker.com/get-docker/)**

## Installation

```bash
$ python -m pip install all-package-resolver
```

## Usage

```
$ download-package [OPTIONS] COMMAND [ARGS]...
```

```
  Options:

    -l, --show-logs                   Show logs
    -o, --output-dir <output-dir>     Output directory
    -h, --help                        output usage information
```

```
    Commands:

        os <distro> <package>  Download a package for a specific os distro
        language <language> <lang-version> <package>  Download a package for a specific language
```

```bash
    Examples:

        $ download-package os ubuntu vim
        $ download-package --show-logs language python 3.10 boto3
        $ download-package --output-dir="/some/folder" language python 3.6 boto3
        $ download-package --help
```

