importjsonfromformula1pyimportF1# no argsf1=F1()
# http[s]f1=F1(secure=True)
# the api supports an offset and a limitf1=F1(secure=False, offset=20, limit=20)
# defaults to text/xmlf1.current_schedule().jsonf1.all_drivers().jsonf1.all_circuits().xml# adding season to some endpointsf1.season_schedule(season=2004).jsonf1.race_standings(season=2020).jsonf1.constructor_standings(season=2013).xml# just the urlf1.driver_season(season=2020).url# also supports randomprint(json.dumps(f1.random(season=2020).json, indent=2)
The Tidelift Subscription provides access to a continuously curated stream of human-researched and maintainer-verified data on open source packages and their licenses, releases, vulnerabilities, and development practices.