Skip to main content

Python replacement for homebrew

Project description

KELP

KELP

A simple python replacement for homebrew for installing binary packages on MacOS

Why?

I built Kelp to scratch my own itch while using Homebrew. For example if you use homebrew to install terraform, it is cumberson to switch between different terraform versions. Here is why I built Kelp:

  • No waiting for a formula to become available on homebrew
  • Switch between different versions of a package easily
  • Keep all your computers up to date with a single installation manifest
  • Install multiple packages at one time.

How To Install

curl https://github.com/crhuber/kelp/releases/download/v0.2.2/kelp -o ~/kelp
chmod +x ~/kelp

How Does it Work?

It downloads all the packages in a ~/.kelp/.kelp.json file to ~/.kelp/bin. It can download any binary file on github releases.

How Do I Use It?

  1. Download the latest kelp release from github releases

  2. Initliaze Kelp

    kelp init

  3. Add kelp to your PATH

    export PATH=~/.kelp/bin/:$PATH

  4. Add a new package

    kelp add wercker/stern:latest

  5. Install

    kelp install

How do I install multiple packages at one time?

  1. Edit ~/.kelp/.kelp.json and add all your favorite packages there. For example mine looks ike
{
    "sharkdp/fd": "latest",
    "sharkdp/bat": "latest",
    "ubnt-intrepid/dot": "latest",
    "tsenart/vegeta": "latest",
    "junegunn/fzf-bin": "latest",
    "termit/flycut": "latest",
    "rxhanson/rectangle": "latest",
    "lwouis/alt-tab-macos": "latest",
    "versent/saml2aws": "latest",
    "watchexec/watchexec": "latest",
    "wercker/stern": "latest",
    "hashicorp/terraform": "https://releases.hashicorp.com/terraform/0.11.14/terraform_0.11.14_darwin_amd64.zip",
    "ogham/exa": "latest",
    "Marginal/QLVideo": "latest",
    "JohnCoates/Aerial": "latest",
    "istio/istio": "latest",
    "aws/aws-iam-authenticator": "https://amazon-eks.s3-us-west-2.amazonaws.com/1.14.6/2019-08-22/bin/darwin/amd64/aws-iam-authenticator",
    "helm/helm": "v2.16.0"
}
  1. Run kelp

    kelp install

What if the package I want is not on github releases?

Easy. Just add the http(s) link to the binary like so to your .kelp.json file

kelp add hashicorp/terraform https://releases.hashicorp.com/terraform/0.11.13/terraform_0.11.13_darwin_amd64.zip

Troubleshooting

Why wasnt my package installed ?

Kelp looks for binaries made for MacOS, if it finds a binary for linux or windows it will skip downloading it.

Why is kelp so slow?

I used PyInstaller to freeze this Python applications into stand-alone executable which means its a little slow when executing

Does it work for Linux?

Not yet

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

klp-0.0.0.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

klp-0.0.0-py2.py3-none-any.whl (10.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file klp-0.0.0.tar.gz.

File metadata

  • Download URL: klp-0.0.0.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for klp-0.0.0.tar.gz
Algorithm Hash digest
SHA256 7d4a6e4eea94429e7a7b8f7b6c1f344a0f5a788e4eb8eb8cacc214bb05467dbd
MD5 b807e2f00a7aee0329d1348f552a7251
BLAKE2b-256 d8b8c6de8da8ec815da210d8e3c6b909c4c93cfe351392f380979ac0399a01e2

See more details on using hashes here.

File details

Details for the file klp-0.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: klp-0.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for klp-0.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b1c0c61f4b14267ab7712525547ea4dd46ed07d92c58aa3ad72f46fe6d891b9c
MD5 30d1e6ba891f9e5ae1a45c348fb327c2
BLAKE2b-256 25416935b724d33723f260f2a2d4a3fcd9fa66ceed36f8d160d26ed05b9aea15

See more details on using hashes here.

Supported by

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