Skip to main content

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

1. Check Conda and Python availability

from gconda import check_conda, check_python

print("Conda available:", check_conda())
print("Python available:", check_python())

2. Install Conda (if not already installed)

from gconda import install_conda
install_conda()

3. Create a new environment with a specific Python version

from gconda import setup_env
setup_env(python_version="3.10", env_name="gconda")

4. Run a pip-installed library command within the Conda environment

from gconda import run_library_command
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

Contributions

Contributions, bug reports, and improvements are welcome. Please create an issue or submit a pull request on GitHub.

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

gconda-0.1.0.tar.gz (17.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gconda-0.1.0-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gconda-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4b3dbffd730a2881f24d9eac6cce975877a12af0b3fa159e68d284ed03f800c6
MD5 16cf804c31a6fe55aaccebb60a5d0542
BLAKE2b-256 445107ced7f2aa08e25330c09b5ee9238d6111dccd6a0e19631150b21480dfcf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gconda-0.1.0-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

Hashes for gconda-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b2e19c5786d1b27b04e0d91f4f2de85291dade33cec2a7d6cf9f8b7984bc940
MD5 091dd0d93d103add14e61a15acd0422b
BLAKE2b-256 e39decb2a5e9aeb3f3ef1a1945ba362a2eaa8a568cf9ad276929c26a1911901e

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