Features for testing the presence of various databases

class sage.features.databases.DatabaseCremona(*args, **kwds)[source]

Bases: StaticFile

A Feature which describes the presence of John Cremona’s database of elliptic curves.

INPUT:

  • name – either 'cremona' (the default) for the full large database or 'cremona_mini' for the small database

EXAMPLES:

sage: from sage.features.databases import DatabaseCremona
sage: DatabaseCremona('cremona_mini', type='standard').is_present()
FeatureTestResult('database_cremona_mini_ellcurve', True)
sage: DatabaseCremona().is_present()                                    # optional - database_cremona_ellcurve
FeatureTestResult('database_cremona_ellcurve', True)
>>> from sage.all import *
>>> from sage.features.databases import DatabaseCremona
>>> DatabaseCremona('cremona_mini', type='standard').is_present()
FeatureTestResult('database_cremona_mini_ellcurve', True)
>>> DatabaseCremona().is_present()                                    # optional - database_cremona_ellcurve
FeatureTestResult('database_cremona_ellcurve', True)
class sage.features.databases.DatabaseCubicHecke(*args, **kwds)[source]

Bases: PythonModule

A Feature which describes the presence of the Cubic Hecke algebra database package.

The home of this database is the web-page Cubic Hecke algebra on 4 strands of Ivan Marin.

EXAMPLES:

sage: from sage.features.databases import DatabaseCubicHecke
sage: DatabaseCubicHecke().is_present()  # optional - database_cubic_hecke
FeatureTestResult('database_cubic_hecke', True)
>>> from sage.all import *
>>> from sage.features.databases import DatabaseCubicHecke
>>> DatabaseCubicHecke().is_present()  # optional - database_cubic_hecke
FeatureTestResult('database_cubic_hecke', True)
class sage.features.databases.DatabaseEllcurves(*args, **kwds)[source]

Bases: StaticFile

A Feature which describes the presence of William Stein’s database of interesting curves.

EXAMPLES:

sage: from sage.features.databases import DatabaseEllcurves
sage: bool(DatabaseEllcurves().is_present())  # optional - database_ellcurves
True
>>> from sage.all import *
>>> from sage.features.databases import DatabaseEllcurves
>>> bool(DatabaseEllcurves().is_present())  # optional - database_ellcurves
True
class sage.features.databases.DatabaseGraphs(*args, **kwds)[source]

Bases: StaticFile

A Feature which describes the presence of the graphs database.

EXAMPLES:

sage: from sage.features.databases import DatabaseGraphs
sage: bool(DatabaseGraphs().is_present())  # optional - database_graphs
True
>>> from sage.all import *
>>> from sage.features.databases import DatabaseGraphs
>>> bool(DatabaseGraphs().is_present())  # optional - database_graphs
True
class sage.features.databases.DatabaseJones(*args, **kwds)[source]

Bases: StaticFile

A Feature which describes the presence of John Jones’s tables of number fields.

EXAMPLES:

sage: from sage.features.databases import DatabaseJones
sage: bool(DatabaseJones().is_present())  # optional - database_jones_numfield
True
>>> from sage.all import *
>>> from sage.features.databases import DatabaseJones
>>> bool(DatabaseJones().is_present())  # optional - database_jones_numfield
True
class sage.features.databases.DatabaseKnotInfo(*args, **kwds)[source]

Bases: PythonModule

A Feature which describes the presence of the package providing the KnotInfo and LinkInfo databases.

The homes of these databases are the web-pages KnotInfo and LinkInfo.

EXAMPLES:

sage: from sage.features.databases import DatabaseKnotInfo
sage: DatabaseKnotInfo().is_present()  # optional - database_knotinfo
FeatureTestResult('database_knotinfo', True)
>>> from sage.all import *
>>> from sage.features.databases import DatabaseKnotInfo
>>> DatabaseKnotInfo().is_present()  # optional - database_knotinfo
FeatureTestResult('database_knotinfo', True)
class sage.features.databases.DatabaseMatroids(*args, **kwds)[source]

Bases: PythonModule

A Feature which describes the presence of Yoshitake Matsumoto’s Database of Matroids.

EXAMPLES:

sage: from sage.features.databases import DatabaseMatroids
sage: DatabaseMatroids().is_present()                                           # optional - matroid_database
FeatureTestResult('matroid_database', True)
>>> from sage.all import *
>>> from sage.features.databases import DatabaseMatroids
>>> DatabaseMatroids().is_present()                                           # optional - matroid_database
FeatureTestResult('matroid_database', True)

REFERENCES:

[Mat2012]

class sage.features.databases.DatabaseReflexivePolytopes(*args, **kwds)[source]

Bases: StaticFile

A Feature which describes the presence of the PALP databases of reflexive three-dimensional and four-dimensional lattice polytopes.

EXAMPLES:

sage: from sage.features.databases import DatabaseReflexivePolytopes
sage: bool(DatabaseReflexivePolytopes().is_present())                   # optional - polytopes_db
True
sage: bool(DatabaseReflexivePolytopes('polytopes_db_4d').is_present())  # optional - polytopes_db_4d
True
>>> from sage.all import *
>>> from sage.features.databases import DatabaseReflexivePolytopes
>>> bool(DatabaseReflexivePolytopes().is_present())                   # optional - polytopes_db
True
>>> bool(DatabaseReflexivePolytopes('polytopes_db_4d').is_present())  # optional - polytopes_db_4d
True
sage.features.databases.all_features()[source]
sage.features.databases.sage_data_path(data_name)[source]

Search path for database \(data_name\).

EXAMPLES:

sage: from sage.features.databases import sage_data_path
sage: sage_data_path("cremona")
['.../cremona']
>>> from sage.all import *
>>> from sage.features.databases import sage_data_path
>>> sage_data_path("cremona")
['.../cremona']