Skip to main content

A wrapper for conda commands with automatic Miniconda installation

Project description

🐍 Konda - Conda Installer/Wrapper for Google Colab 🚀

PyPI version Python Versions CI License: MIT

🔍 Why Konda?

Installing conda/miniconda and creating virtual environments on Google Colab is a common need, but it can be quite a hassle. Konda solves this problem by helping you do everything with a single command. Essentially, Konda makes conda installation and usage in Colab straightforward and painless.

There's no learning curve since Konda commands are simply wrappers around conda commands you already know.

✨ Features

  • 🔄 One-command Miniconda Installation: Installs Miniconda with just one line of code
  • 🌐 Built for Google Colab: Optimized for the Colab environment where conda integration is typically tricky
  • 🛠️ Simple Command Wrapper: Run conda commands without worrying about environment setup
  • 🚀 Seamless Environment Activation: Automatically handles the special activation requirements in Colab
  • 🧹 Easy Cleanup: Remove the Miniconda installation when you're done

📦 Installation

pip install konda

🚀 Quick Start

1️⃣ Install Miniconda

import konda
konda.install()

2️⃣ Use conda commands with konda

Konda is a simple wrapper around conda.

# Create a new environment
konda create -n my_env python=3.8 -y

# Activate the environment
konda activate my_env

# Run a command in the environment
konda run "conda install anaconda::tensorflow-gpu=2.4.1 -y"
konda run "pip install requests"

# Deactivate the environment
konda deactivate

Example

To see how konda works in action, check out the example.

🗑️ Uninstallation

To remove the Miniconda installation created by konda:

konda uninstall

To uninstall the konda package itself:

pip uninstall konda

🔍 How It Works

Konda simplifies conda management in Google Colab by:

  1. 📥 Downloading and installing Miniconda in the Colab environment
  2. 🔧 Setting up the necessary environment paths and variables
  3. 🔄 Handling the source /usr/local/etc/profile.d/conda.sh requirement under the hood
  4. 🚀 Providing a consistent interface for all conda commands

🤝 Contributing

Contributions are welcome! Here's how you can help:

  1. 🍴 Fork the repository
  2. 🔧 Create a feature branch
  3. 💻 Commit your changes
  4. 📤 Push to the branch
  5. 🔄 Open a Pull Request

📝 License

This project is licensed under the MIT License.


Made with ❤️ to simplify your Colab experience

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

konda-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.

konda-0.1.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for konda-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dd29cb84736513d227596d3bb972c85d34727ccb0e7ffe422746664ec568f24e
MD5 d6722487f3545864c0d1142820985ff2
BLAKE2b-256 94f0f0ec6c650fbbaf2a6dfd13784053274defb28e05f0454381061818edfa0a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: konda-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for konda-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 30beab78adc490786934b327edf99d28c643dd503304147f0c9f816240dc715d
MD5 7f8181640ba9a29237c26f30f89a6cf8
BLAKE2b-256 cc6e0a4c6936b311ee703fb295f98db2c7f72c4793e57398c4fb0dfa76eb43fe

See more details on using hashes here.

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