A wrapper for conda commands with automatic Miniconda installation
Project description
🐍 Konda - Conda Installer/Wrapper for Google Colab 🚀
🔍 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:
- 📥 Downloading and installing Miniconda in the Colab environment
- 🔧 Setting up the necessary environment paths and variables
- 🔄 Handling the
source /usr/local/etc/profile.d/conda.shrequirement under the hood - 🚀 Providing a consistent interface for all conda commands
🤝 Contributing
Contributions are welcome! Here's how you can help:
- 🍴 Fork the repository
- 🔧 Create a feature branch
- 💻 Commit your changes
- 📤 Push to the branch
- 🔄 Open a Pull Request
📝 License
This project is licensed under the MIT License.
Made with ❤️ to simplify your Colab experience
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd29cb84736513d227596d3bb972c85d34727ccb0e7ffe422746664ec568f24e
|
|
| MD5 |
d6722487f3545864c0d1142820985ff2
|
|
| BLAKE2b-256 |
94f0f0ec6c650fbbaf2a6dfd13784053274defb28e05f0454381061818edfa0a
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30beab78adc490786934b327edf99d28c643dd503304147f0c9f816240dc715d
|
|
| MD5 |
7f8181640ba9a29237c26f30f89a6cf8
|
|
| BLAKE2b-256 |
cc6e0a4c6936b311ee703fb295f98db2c7f72c4793e57398c4fb0dfa76eb43fe
|