Package: lockdowndates
lockdowndatesRetrieve the dates of the restrictions in countries imposed by governments around the world during the covid-19 pandemic.Requirementspython version 3.8Installpip install lockdowndatesconda install -c seanyboi lockdowndatesHow to useImportfromlockdowndates.coreimportLockdownDatesRestrictionsBelow are the restrictions you can add to theLockdownDates()restrictions parameter and their meanings. You must specifiy a restriction when initiating your class and can do so with a list:["stay_at_home",...]or tuple:("masks",...)stay_at_home:NaN - No data available for that date.1.0 - recommend not leaving house.2.0 -  require not leaving house with exceptions for daily exercise, grocery shopping, and 'essential' trips.3.0 - require not leaving house with minimal exceptions (eg allowed to leave once a week, or only one person can leave at a time, etc.masks:0.0 - No policy.1.0 - Recommended.2.0 - Required in some specified shared/public spaces outside the home with other people present, or some situations when social distancing not possible.3.0 - Required in all shared/public spaces outside the home with other people present or all situations when social distancing not possible.4.0 - Required outside the home at all times regardless of location or presence of other people.Single Countryld=LockdownDates("Aruba","2022-01-01","2022-01-08",("stay_at_home","masks"))lockdown_dates=ld.dates()lockdown_datesFetching lockdown dates...
Fetched lockdown dates for: Arubaaruba_country_codearuba_masksaruba_stay_at_hometimestamp2022-01-01ABW2.02.02022-01-02ABW2.02.02022-01-03ABW2.02.02022-01-04ABW2.02.02022-01-05ABW2.02.02022-01-06ABW2.02.02022-01-07ABW2.02.02022-01-08ABW2.02.0Multiple Countriesld2=LockdownDates(["Canada","Denmark"],"2022-01-01","2022-01-08",("stay_at_home","masks"))lockdown_dates=ld2.dates()lockdown_datesFetching lockdown dates...
Fetched lockdown dates for: Canada, Denmarkcanada_country_codedenmark_country_codecanada_masksdenmark_maskscanada_stay_at_homedenmark_stay_at_hometimestamp2022-01-01CANDNK3.02.01.00.02022-01-02CANDNK3.02.01.00.02022-01-03CANDNK3.02.01.00.02022-01-04CANDNK3.02.01.00.02022-01-05CANDNK3.02.01.00.02022-01-06CANDNK3.02.01.00.02022-01-07CANDNK3.02.01.00.02022-01-08CANDNK3.02.01.00.0Available CountriesCountryAfghanistanAlbaniaAlgeriaAndorraAngolaArgentinaArubaAustraliaAustriaAzerbaijanBahamasBahrainBangladeshBarbadosBelarusBelgiumBelizeBeninBermudaBhutanBoliviaBosnia and HerzegovinaBotswanaBrazilBruneiBulgariaBurkina FasoBurundiCambodiaCameroonCanadaCape VerdeCentral African RepublicChadChileChinaColombiaComorosCongoCosta RicaCote d'IvoireCroatiaCubaCyprusCzech RepublicDemocratic Republic of CongoDenmarkDjiboutiDominicaDominican RepublicEcuadorEgyptEl SalvadorEritreaEstoniaEswatiniEthiopiaFaeroe IslandsFijiFinlandFranceGabonGambiaGeorgiaGermanyGhanaGreeceGreenlandGuamGuatemalaGuineaGuyanaHaitiHondurasHong KongHungaryIcelandIndiaIndonesiaIranIraqIrelandIsraelItalyJamaicaJapanJordanKazakhstanKenyaKiribatiKosovoKuwaitKyrgyz RepublicLaosLatviaLebanonLesothoLiberiaLibyaLiechtensteinLithuaniaLuxembourgMacaoMadagascarMalawiMalaysiaMaliMaltaMauritaniaMauritiusMexicoMoldovaMonacoMongoliaMoroccoMozambiqueMyanmarNamibiaNepalNetherlandsNew ZealandNicaraguaNigerNigeriaNorwayOmanPakistanPalestinePanamaPapua New GuineaParaguayPeruPhilippinesPolandPortugalPuerto RicoQatarRomaniaRussiaRwandaSan MarinoSaudi ArabiaSenegalSerbiaSeychellesSierra LeoneSingaporeSlovak RepublicSloveniaSolomon IslandsSomaliaSouth AfricaSouth KoreaSouth SudanSpainSri LankaSudanSurinameSwedenSwitzerlandSyriaTaiwanTajikistanTanzaniaThailandTimor-LesteTogoTongaTrinidad and TobagoTunisiaTurkeyTurkmenistanUgandaUkraineUnited Arab EmiratesUnited KingdomUnited StatesUnited States Virgin IslandsUruguayUzbekistanVanuatuVenezuelaVietnamYemenZambiaZimbabweRoadmapMore restrictionsContributionsIf there are any restrictions or policies you wish to be added to the package please let me know!Issues and pull requests are always welcome.AcknowledgementsA huge massive thanks to Oxford University for open sourcing their data that they've been collecting since the pandemic began. Without them this package wouldn't be possible so please go check them out!Repo -https://github.com/OxCGRT/covid-policy-trackerCOVID-19 Government Response Tracker -www.bsg.ox.ac.uk/covidtracker