A library to manage environment on Google Colab and Kaggle.
Project description
G-Conda
Introduction
G-Conda is a Python library that simplifies Conda environment management on Google Colab and Kaggle. This library supports checking, installing Conda, creating new Python environments, and running commands within Conda environments automatically.
Installation
You can install G-Conda using pip:
pip install gconda
Usage
from gconda import gconda
1. Check Conda and Python availability
from gconda.gconda import check_conda, check_python
print("Conda available:", check_conda())
print("Python available:", check_python())
print("Conda available:", gconda.check_conda())
print("Python available:", gconda.check_python())
2. Install Conda (if not already installed)
from gconda.gconda import install_conda
install_conda()
gconda.install_conda()
3. Create a new environment with a specific Python version
from gconda.gconda import setup_env
setup_env(python_version="3.10", env_name="gconda")
gconda.setup_env(python_version="3.10", env_name="gconda")
4. Run a pip-installed library command within the Conda environment
from gconda.gconda import run_library_command
run_library_command("gdown", "--version")
gconda.run_library_command("gdown", "--version")
License
G-Conda is released under the GNU GPL v3.0 license.
References
G-Conda is built upon and integrates features from several established projects. We acknowledge and appreciate the contributions of the following projects:
- miniconda: A lightweight Conda distribution used for efficient package and environment management.
- condacolab: A library that enables Conda usage on Google Colab.
These projects have played a crucial role in shaping the functionality of G-Conda.
Author
- Hoang-Phat Vu
- Email: phatvucoder@gmail.com
- GitHub: phatvucoder
Contributions
Contributions, bug reports, and improvements are welcome. Please create an issue or submit a pull request on GitHub.
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 gconda-0.1.2.tar.gz.
File metadata
- Download URL: gconda-0.1.2.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36ec3b1e2d46b07bb97e79f28b7b21eb06fa4219eda0b7604286014dfedba97f
|
|
| MD5 |
41aed7f0452ba1d5b82f2e0f9b0173fc
|
|
| BLAKE2b-256 |
2fea97fccf5978472fedcaf30b148a5d9cbe57e8daac89afb865d230328e16b2
|
File details
Details for the file gconda-0.1.2-py3-none-any.whl.
File metadata
- Download URL: gconda-0.1.2-py3-none-any.whl
- Upload date:
- Size: 17.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
958a569f09c4417999eeb8cf668a7fce78fd6b011b9db40c2ca21204a790ecb3
|
|
| MD5 |
0b3985fb1d93bd58e28d062b2d109db5
|
|
| BLAKE2b-256 |
accc844ab930ea8e85e9d6dc48ebfe2ea03427953f5be7ef85a5c659edf058f0
|