All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.danielTucano.python.PythonConfig.kt Maven / Gradle / Ivy

Go to download

Matplotlib for kotlin: A simple graph plot library for kotlin with powerful python matplotlib

The newest version!
package io.github.danielTucano.python

class PythonConfig private constructor(val pyenv: String?, val virtualenv: String?, val pythonBinPath: String?) {

    companion object {
        @JvmStatic
        fun systemDefaultPythonConfig(): PythonConfig {
            return PythonConfig(null, null, null)
        }

        @JvmStatic
        fun pyenvConfig(pyenv: String?): PythonConfig {
            return PythonConfig(pyenv, null, null)
        }

        @JvmStatic
        fun pyenvVirtualenvConfig(pyenv: String?, virtualenv: String?): PythonConfig {
            return PythonConfig(pyenv, virtualenv, null)
        }

        @JvmStatic
        fun pythonBinPathConfig(pythonBinPath: String?): PythonConfig {
            return PythonConfig(null, null, pythonBinPath)
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy