Feature for testing if the Internet is available - Packages and Features

Skip to content
Back to top
View this page
Edit this page

# Feature for testing if the Internet is available

class sage.features.internet.Internet(*args, **kwds)

  Bases: `Feature`

  A `Feature` describing if Internet is available.

  Failure of connecting to the site “https://www.sagemath.org” within a second is regarded as internet being not available.

  EXAMPLES:

  Sage

      sage: from sage.features.internet import Internet
      sage: Internet()
      Feature('internet')

  Python

      >>> from sage.all import *
      >>> from sage.features.internet import Internet
      >>> Internet()
      Feature('internet')

sage.features.internet.all_features()