Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/banterboy/pscovid19stats
Extracting data from the NovelCOVID API (github.com/NovelCOVID/API)
https://github.com/banterboy/pscovid19stats
coronavirus covid-19 extracting-data functions module novelcovid novelcovid-api postman powershell
Last synced: about 2 months ago
JSON representation
Extracting data from the NovelCOVID API (github.com/NovelCOVID/API)
- Host: GitHub
- URL: https://github.com/banterboy/pscovid19stats
- Owner: BanterBoy
- License: mit
- Created: 2020-03-27T23:17:27.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-22T13:53:37.000Z (almost 2 years ago)
- Last Synced: 2024-10-24T22:18:13.888Z (3 months ago)
- Topics: coronavirus, covid-19, extracting-data, functions, module, novelcovid, novelcovid-api, postman, powershell
- Language: PowerShell
- Homepage: https://blog.lukeleigh.com
- Size: 85.9 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![PowerShell Gallery Version](https://img.shields.io/powershellgallery/v/PSCovid19Stats?label=PSCovid19Stats&logo=powershell&style=plastic)](https://www.powershellgallery.com/packages/PSCovid19Stats)
[![PowerShell Gallery](https://img.shields.io/powershellgallery/dt/PSCovid19Stats?style=plastic)](https://www.powershellgallery.com/packages/PSCovid19Stats)[![Build Status](https://dev.azure.com/lukeleigh/Module%20Deployment/_apis/build/status/BanterBoy.PSCovid19Stats?branchName=master)](https://dev.azure.com/lukeleigh/Module%20Deployment/_build/latest?definitionId=1&branchName=master)
# PSCovid19Stats
| Name: | README.md |
|-----|--|
| About: | Generic details regarding this project. |![Postman COVID-19 API Resources](https://blog.lukeleigh.com/assets/images/postmanlogo.jpg)
A PowerShell Module that can be used to extract data from the NovelCOVID API (github.com/NovelCOVID/API). The API has been supplied by Postman as part of the ***"Postman COVID-19 API Resource Center"***
Click [here](https://covid-19-apis.postman.com/) to view the Postman Resource Centre
#### Quote
```"During the present novel coronavirus (COVID-19) pandemic, those on the front lines—including health care professionals, researchers, and government experts—need quick, easy access to real-time critical data. This type of information exchange is what APIs do best, and as an API-first company, Postman is committed to providing whatever assistance we can in this area."```
This was inspired by a [blog post](https://www.powershell.co.at/cov-id-19-powershell-prompt/) that popped up in the random click-fest of reading everything about the coronavirus. Perhaps too much time stuck indoors obsessing about what is happening around the world.
## Update
I have updated the module to include Commment Based Help and also Online Help
***Example***
```
PS C:\GitRepos> Get-Help Get-CovidCountryStatsNAME
Get-CovidCountryStatsSYNOPSIS
Command used to extract data (Country Stats) from the NovelCOVID API (github.com/NovelCOVID/API)SYNTAX
Get-CovidCountryStats -Country []DESCRIPTION
Command used to extract data (Country Stats) from the NovelCOVID API (github.com/NovelCOVID/API)
Returns data of a specific country.RELATED LINKS
https://github.com/BanterBoy/PSCovid19Stats/wiki/Get-CovidCountryStatsREMARKS
To see the examples, type: "get-help Get-CovidCountryStats -examples".
For more information, type: "get-help Get-CovidCountryStats -detailed".
For technical information, type: "get-help Get-CovidCountryStats -full".
For online help, type: "get-help Get-CovidCountryStats -online"
```
Also, this module is now using the standard [ISO Country Codes](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) which can now be used in tab completion.![Tab Complete](https://blog.lukeleigh.com/assets/images/PSCiscoMeraki/CountryTabComplete.png)
## Getting Started
In order to make this more accessible and easy to install, I have uploaded the module to the [PowerShell Gallery](https://www.powershellgallery.com). This will also make it much easier for everyone to update, should any changes be made to the Module.
With this in mind, you now have two options when it comes to installation.
### 1) Install Module from Gallery
https://www.powershellgallery.com/packages/PSCovid19Stats
```
Install-Module -Name PSCovid19Stats
or
Install-Module -Name PSCovid19Stats -Scope CurrentUser
```### 2) Download
You can [download](https://github.com/BanterBoy/PSCovid19Stats/archive/master.zip)
this repository.### Import the Module
Once you've downloaded the repo place the PSCovid19Stats folder in any path in your ``$PSModulePath``. I recommend copying it to either ``C:\Program Files\WindowsPowerShell\Modules`` or ``C:\Users\\Documents\WindowsPowerShell\Modules``.
Once it's in one of those paths you can either import it manually by ``Import-Module PSCovid19Stats`` or rely on auto-module loading.
### Once Installed
```
PS C:\GitRepos> Get-Command -Module PSCovid19StatsCommandType Name Version Source
----------- ---- ------- ------
Function Get-CovidCountriesStats 1.0.2 PSCovid19Stats
Function Get-CovidCountryStats 1.0.2 PSCovid19Stats
Function Get-CovidHistoricalData 1.0.2 PSCovid19Stats
Function Get-CovidjhucsseData 1.0.2 PSCovid19Stats
Function Get-CovidStateStats 1.0.2 PSCovid19Stats
Function Get-CovidWorldStats 1.0.2 PSCovid19Stats
Function Show-CountryCodes 1.0.2 PSCovid19Stats
```![COVID-19 Example](https://blog.lukeleigh.com/assets/images/PSCiscoMeraki/pscovidscrnsht.png)
[License](/LICENSE)