Features for testing whether interpreter interfaces to magma, maple, mathematica etc. are functional

class sage.features.interfaces.InterfaceFeature(*args, **kwds)[source]

Bases: Feature

A Feature describing whether an Interface is present and functional.

class sage.features.interfaces.Macaulay2(*args, **kwds)[source]

Bases: InterfaceFeature

A Feature describing whether sage.interfaces.macaulay2.Macaulay2 is present and functional.

EXAMPLES:

sage: from sage.features.interfaces import Macaulay2
sage: Macaulay2().is_present()  # random
FeatureTestResult('macaulay2', False)
>>> from sage.all import *
>>> from sage.features.interfaces import Macaulay2
>>> Macaulay2().is_present()  # random
FeatureTestResult('macaulay2', False)
class sage.features.interfaces.Magma(*args, **kwds)[source]

Bases: InterfaceFeature

A Feature describing whether sage.interfaces.magma.Magma is present and functional.

EXAMPLES:

sage: from sage.features.interfaces import Magma
sage: Magma().is_present()  # random
FeatureTestResult('magma', False)
>>> from sage.all import *
>>> from sage.features.interfaces import Magma
>>> Magma().is_present()  # random
FeatureTestResult('magma', False)
class sage.features.interfaces.Maple(*args, **kwds)[source]

Bases: InterfaceFeature

A Feature describing whether sage.interfaces.maple.Maple is present and functional.

EXAMPLES:

sage: from sage.features.interfaces import Maple
sage: Maple().is_present()  # random
FeatureTestResult('maple', False)
>>> from sage.all import *
>>> from sage.features.interfaces import Maple
>>> Maple().is_present()  # random
FeatureTestResult('maple', False)
class sage.features.interfaces.Mathematica(*args, **kwds)[source]

Bases: InterfaceFeature

A Feature describing whether sage.interfaces.mathematica.Mathematica is present and functional.

EXAMPLES:

sage: from sage.features.interfaces import Mathematica
sage: Mathematica().is_present()  # not tested
FeatureTestResult('mathematica', False)
>>> from sage.all import *
>>> from sage.features.interfaces import Mathematica
>>> Mathematica().is_present()  # not tested
FeatureTestResult('mathematica', False)
class sage.features.interfaces.Mathics(*args, **kwds)[source]

Bases: InterfaceFeature

A Feature describing whether sage.interfaces.mathics.Mathics is present and functional.

EXAMPLES:

sage: from sage.features.interfaces import Mathics
sage: Mathics().is_present()  # not tested
FeatureTestResult('mathics', False)
>>> from sage.all import *
>>> from sage.features.interfaces import Mathics
>>> Mathics().is_present()  # not tested
FeatureTestResult('mathics', False)
class sage.features.interfaces.Matlab(*args, **kwds)[source]

Bases: InterfaceFeature

A Feature describing whether sage.interfaces.matlab.Matlab is present and functional.

EXAMPLES:

sage: from sage.features.interfaces import Matlab
sage: Matlab().is_present()  # random
FeatureTestResult('matlab', False)
>>> from sage.all import *
>>> from sage.features.interfaces import Matlab
>>> Matlab().is_present()  # random
FeatureTestResult('matlab', False)
class sage.features.interfaces.Octave(*args, **kwds)[source]

Bases: InterfaceFeature

A Feature describing whether sage.interfaces.octave.Octave is present and functional.

EXAMPLES:

sage: from sage.features.interfaces import Octave
sage: Octave().is_present()  # random
FeatureTestResult('octave', False)
>>> from sage.all import *
>>> from sage.features.interfaces import Octave
>>> Octave().is_present()  # random
FeatureTestResult('octave', False)
class sage.features.interfaces.Scilab(*args, **kwds)[source]

Bases: InterfaceFeature

A Feature describing whether sage.interfaces.scilab.Scilab is present and functional.

EXAMPLES:

sage: from sage.features.interfaces import Scilab
sage: Scilab().is_present()  # random
FeatureTestResult('scilab', False)
>>> from sage.all import *
>>> from sage.features.interfaces import Scilab
>>> Scilab().is_present()  # random
FeatureTestResult('scilab', False)
sage.features.interfaces.all_features()[source]

Return features corresponding to interpreter interfaces.

EXAMPLES:

sage: from sage.features.interfaces import all_features
sage: list(all_features())
[Feature('magma'),
 Feature('matlab'),
 Feature('mathematica'),
 Feature('mathics'),
 Feature('maple'),
 Feature('macaulay2'),
 Feature('octave'),
 Feature('scilab')]
>>> from sage.all import *
>>> from sage.features.interfaces import all_features
>>> list(all_features())
[Feature('magma'),
 Feature('matlab'),
 Feature('mathematica'),
 Feature('mathics'),
 Feature('maple'),
 Feature('macaulay2'),
 Feature('octave'),
 Feature('scilab')]