
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
openweather_report
Advanced tools
Get weather using OpenWeather API and save to a database.
To install, you can use pipx
:
$ pipx install openweather_report
or use uv
:
$ uv tool install openweather_report
If using pip
I would suggest installing into a virtual environment.
Note that libpq
is required for psycopg2
.
Below is how to install using a Debian based distro like Ubuntu:
$ sudo apt install install libpq-dev libpq5
Then you can install openweather_report
.
Then to get help, do:
$ openweather_report --help
Usage: openweather_report [OPTIONS] {one_call}
LATITUDE LONGITUDE API_KEY
Take user inputs and save to either file or database.
Options:
--weather_date [%Y-%m-%d %H:%M]
Put in the date to get the weather for a
particular day.
--save [json|postgresql|sqlite]
--save_path TEXT
--db_string TEXT Connection string to save to database.
--version Show the version and exit.
--help Show this message and exit.
To save data to a json file:
$ openweather_report one_call 30.00 -30.00 your-api-key --save json --save_path
my_city.json
Currently PostgreSQL and Sqlite are supported. The table structure will need to be generated before attempting to save any data.
Below is the structure for raw_json_data
:
create schema if not exists weather;
create table if not exists weather.raw_json_data (
(
id bigserial not null
,entry_date timestamp with time zone not null
,api_call text not null
,raw_data jsonb null
,software_version null
,primary key (id)
);
The structure is similar to PostgreSQL but does not have a schema:
create table if not exists raw_json_data
(
id integer primary key
,entry_date text not null
,api_call text not null
,raw_data text null
,software_version text null
);
The structure is similar to PostgreSQL but does not have a schema:
create table is not exists raw_json_data
(
id integer primary key
,entry_date timestamp with time zone not null
,api_call text not null
,raw_data jsonb null
,software_version null
,primaty key (id)
);
Go to https://openweathermap.org/api though this program currently only supports the One Call API. The program will eventually support other APIs.
The recommended way is to use uv
:
$ git clone git@github.com:cetyler/openweather_report.git
$ uv venv --python 3.13
Using Python 3.13
Creating virtualenv at: .venv
Activate with: source .venv/bin/activate
$ source .venv/bin/activate
$ uv sync --dev
FAQs
Unknown package
We found that openweather_report demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.