Feature for testing if the Internet is available#

class sage.features.internet.Internet(*args, **kwds)[source]#

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: from sage.features.internet import Internet
sage: Internet()
Feature('internet')
>>> from sage.all import *
>>> from sage.features.internet import Internet
>>> Internet()
Feature('internet')
sage.features.internet.all_features()[source]#