NSF Awards API Simple CLI
Project description
nsfsearch: NSF Awards API Simple CLI
This is an application of the google home API Blueprint reported here. While a lot of the end points maybe of interest to quite a few people, I used the ones I use most and I thought would be most useful and created a command line tool for you to search for a Google home mini device and then use this tool to interact with it and perform actions as needed.
Table of contents
Installation
This assumes that you have native python & pip installed in your system, you can test this by going to the terminal (or windows command prompt) and trying
python
and then pip list
To install nsfsearch: Simple CLI for Google Home & Mini you can install using two methods.
pip install nsfsearch
or you can also try
git clone https://github.com/samapriya/nsfsearch.git
cd nsfsearch
python setup.py install
For Linux use sudo or try pip install nsfsearch --user
.
Installation is an optional step; the application can also be run directly by executing nsfsearch.py script. The advantage of having it installed is that nsfsearch can be executed as any command line tool. I recommend installation within a virtual environment. If you don't want to install, browse into the nsfsearch folder and try python nsfsearch.py
to get to the same result.
Getting started
As usual, to print help:
NSF Awards API Simple CLI
positional arguments:
{keysearch,export,idsearch,result}
keysearch Searches for all projects with keywords
export Searches for all projects with keywords & export
idsearch Search using project ID
result Project outcome based on ID
optional arguments:
-h, --help show this help message and exit
To obtain help for specific functionality, simply call it with help switch, e.g.: nsfsearch result -h
. If you didn't install nsfsearch, then you can run it just by going to nsfsearch directory and running python nsfsearch.py [arguments go here]
nsfsearch NSF Awards API Simple CLI
The tool is based on curret NSF award search API and is subject to change in the future.
keysearch
This allows you to get all awards based on a keyword search, you can pass keywords as comman seperated value and it iterates through the list and prints the result to console. Usage is simply
usage: nsfsearch keysearch [-h] [--wordlist WORDLIST [WORDLIST ...]]
optional arguments:
-h, --help show this help message and exit
--wordlist WORDLIST [WORDLIST ...]
Send comma seperated keywords
export
This tool exports the keysearch results to a csv file, instead of printing it out on the console.
usage: nsfsearch export [-h] [--wordlist WORDLIST [WORDLIST ...]]
[--file FILE]
optional arguments:
-h, --help show this help message and exit
--wordlist WORDLIST [WORDLIST ...]
Send comma seperated keywords
--file FILE Outfile CSV file with results
idsearch
Looks at specific NSF project using project id.
usage: nsfsearch idsearch [-h] [--ids IDS]
optional arguments:
-h, --help show this help message and exit
--ids IDS Project ID
result
Get any project outcome results as reported by NSF using project id.
usage: nsfsearch result [-h] [--ids IDS]
optional arguments:
-h, --help show this help message and exit
--ids IDS Project ID
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file nsfsearch-0.0.1.tar.gz
.
File metadata
- Download URL: nsfsearch-0.0.1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 926612fce51802ad0c9019c7082de9f3b062924cc330a437bb643d5bf5a13466 |
|
MD5 | ba201fc459685508e1787dea575155e7 |
|
BLAKE2b-256 | fbac1365a7349970c5c922a49bb3ed0d01af6e7edb06522d8606582414104962 |