
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
A free and open source Python library for retrieving weather data from the National Meteorological Service of Argentina (SMN).
This package offers two ways to obtain the requested data, the first is through the API of SMN and the second is by the public data offered by the official SMN website. I recommend you use the second option since it is more accurate and is updated every day.
From PyPI
pip install py-smn
From source code clone it
git clone https://github.com/manucabral/py-smn.git
cd py-smn
python -m pip install -r requirements.txt
Using static (recommended method)
import asyncio
import smn
async def main():
async with smn.Client() as client:
forecast_now = await client.get_static()
province, lat, lon = await client.get_location()
nearest_forecast = forecast_now.nearest(lat, lon)
print(nearest_forecast.weather['temp'])
if __name__ == '__main__':
asyncio.run(main())
Using API
import asyncio
import smn
async def main():
async with smn.Client() as client:
forecast_now = await client.get(forecast='now')
weather_stations = forecast_now.filter(province='Buenos Aires', name='La Plata')
for weather_station in weather_stations:
print(weather_station.name, weather_station.weather['temp'])
if __name__ == '__main__':
asyncio.run(main())
All constributions, bug reports or fixes and ideas are welcome.
FAQs
A Python wrapper for the SMN API Argentina
We found that py-smn 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.