Mininet Packager (mnp) is a wrapper script to help simplify the commands to download/upload packages from/to Mininet repository.
- Downloading:
- Download one package:
- mnp download <package>
- Download multiple packages:
- mnp download <package1> <package2> <package3>
- Download from custom repository:
- mnp download <package> -r <repo_name>
- mnp download <package> -i <repo_url>
- Download one package, forcing upgrade if package already installed:
- mnp download --upgrade <package>
- Download one package:
- Uploading:
- Upload package:
- mnp upload
- Upload to custom repository:
- mnp upload -r <repo_name>
- Upload package:
- Listing available packages:
- mnp list
- mnp list -r <repo_name>
- Searching:
- mnp search <query>
- mnp search <query> -r <repo_name>
- Print package README:
- mnp docs <package_name>
- mnp docs <package_name> -r <repo_name>
- Print package information:
- Print information of latest version of a package:
- mnp info <package_name>
- mnp info <package_name> -r <repo_name>
- Print information of specific version of a package:
- mnp info <package_name> <package_version>
- mnp info <package_name> <package_version> -r <repo_name>
- Print information of latest version of a package:
<repo_name> and <repo_url> will be read from your ~/.pypirc file, so make sure the file is setup properly.
- Default values:
- <repo_name>: mininet
- <repo_url>: http://localhost:8000/simple/
TODO: Update the default value of <repo_url> once finalized.
- Run unit tests:
- python -m unittest discover