
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
openaq-quality-checker
Advanced tools
OpenAQ Quality Checks is a command line interface for flagging potentially invalid air quality measurements.
Have an OpenAQ data quality concern or experience you would like to share? Please add it to the OpenAQ Community: What is your OpenAQ data quality experience? issue!
nvm use
yarn install
yarn test
openaq-quality-checks expects a list of items, either in json or csv.
A set of default flags are configured in config.yml
. The default flags are:
E
flags the value -999N
flags negative valuesR
flags repeating values, grouped by coordinates and ordered by date.This configuration can be overriden using the --config <file.yml>
argument, which should point to a yml file which has the following structure:
keyOne: # Arbitrary identifier for the flag, e.g. 'errors'. Useful for merging with the default configuration.
flag: Any string, e.g. E
type: One of exact|set|range|repeats
# Depending on the type, other values may be included. See lib/flagger.js for what can be configured.
keyTwo:
# ...
This configuration is merged with the default configuration, overriding fields that exist and adding fields that do not exist.
Note: Commands below require jq, but jq is just for pretty printing json. If you don't have jq installed, remove the trailing | jq .
cat examples/addis-ababa-20180202.json | quality-check | jq .
# or
quality-check --infile examples/addis-ababa-20180202.json | jq .
cat examples/addis-ababa-20180202.csv | quality-check --input-format csv --output-format csv
# or
quality-check --infile examples/addis-ababa-20180202.csv --input-format csv --output-format csv
quality-check --infile examples/addis-ababa-20180202.json --config tests/test-config.yml | jq .
quality-check --infile examples/addis-ababa-20180202.json --skip N R | jq .
quality-check --infile examples/addis-ababa-20180202.json --remove E | jq .
quality-check --infile examples/addis-ababa-20180202.json --remove-all | jq .
curl 'https://api.openaq.org/v1/measurements?location=US%20Diplomatic%20Post:%20Addis%20Ababa%20School&date_from=2018-02-02&date_to=2018-02-06&limit=10' | jq '.results' | quality-check | jq .
FAQs
CLI for adding flags to OpenAQ data
We found that openaq-quality-checker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.