This project provides a modular Go/Python and Powershell based framework for a very efficient package manager, where the user can filter, exclude, download and upload necessary packages within a given artifactory.
- Downloader: Downloads files from specified URLs, manages extraction, and processes packages.
- Package Manager: Processes JSON package lists, checks availability in Chocolatey repositories, and logs missing packages.
Clone this repository and navigate to the project directory:
git clone https://github.com/your-username/your-project.git
cd your-projectInitialize Go modules:
go mod tidyCreate a .env file at the root with necessary environment variables:
LINKS=https://example.com/download?token=12345
REPOSITORIES=https://repo.example.com
EXCLUDED_PACKAGES=package1,package2
EXTENSIONS=.zip,.exe,.nupkgTo execute the downloader tool:
go run cmd/downloader/main.goTo execute the package manager:
go run cmd/packagemanager/main.goThis Python script downloads and extracts package files from given URLs and processes them in a modular way.
Ensure you have the .env file with LINKS variable set, and the input file data/final_list.txt ready.
Run the script with:
python main.py- Python 3.x
requestspython-dotenv
Install dependencies with:
pip install requests python-dotenvResults will be stored in the output directory. Ensure it exists or will be created automatically by the scripts.
- godotenv for loading
.envvariables
Install dependencies using:
go get github.com/joho/godotenv