
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
A powerful Python library for creating beautiful, customized maps from OpenStreetMap data. Now with simplified CLI, automatic caching, and smart optimization!
Minimal style map of Yalova created with CLI
umap Istanbul
and get your map on desktop!minimal
, blueprint
, and vintage
styles out-of-the-boxumap <city>
and done!umap.__version__
# Install from PyPI
pip install umap-osm
# For developers
git clone https://github.com/U-C4N/Umap.git
cd Umap
pip install -e .
Super simple - just name your location:
# After pip install, use direct commands
umap Istanbul
umap "New York"
umap London
# Or without pip install
python umap Istanbul
python umap Ankara
python umap "Los Angeles"
# With coordinates
umap --coords "40.66,29.28"
# Custom options
umap Istanbul --style vintage --radius 10000
Blueprint style map of Yalova created with CLI
umap --help # See all options
umap Istanbul --style blueprint --radius 8000
umap "New York" --output "/path/to/my/map.png"
umap --coords "40.66,29.28" --style vintage
All maps are automatically saved to your Desktop unless you specify --output
If umap
command is not found after installation:
Windows:
# Use Python module approach
python -m umap Istanbul
# Or add Python Scripts to PATH:
# Add C:\Users\YourUser\AppData\Roaming\Python\Python3xx\Scripts to PATH
macOS/Linux:
# Use Python module approach
python -m umap Istanbul
# Or check PATH includes pip install location
pip show -v umap-osm
import umap
# Create and save a map
plot = umap.plot(
(40.66, 29.28), # Yalova coordinates
radius=5000,
style='vintage' # Use a predefined style name or a custom style dict
)
if plot.fig:
umap.add_frame(plot.ax) # Optional: Add a frame
plot.fig.savefig('yalova_api_vintage.png', dpi=300, bbox_inches='tight')
Vintage style map of Yalova created with Python API
Umap comes with several built-in styles:
minimal
: Clean black & white.blueprint
: Technical drawing look.vintage
: Retro, old-map feel.You can also define your own custom styles. See umap/cli.py
for examples of style dictionaries.
~/.umap_cache
to speed up subsequent runs for the same area.Check the examples/
directory:
yalova_styles.py
: Generates maps of Yalova in all predefined styles.yalova_performance.py
: Benchmarks map generation for different radii.Run them from the project root:
python examples/yalova_styles.py
python examples/yalova_performance.py
Key modules:
umap/core/plot.py
: Core plotting logic.umap/core/fetch.py
: Data fetching from OSM.umap/cli.py
: Command Line Interface.umap/utils/cache.py
: Caching mechanism.umap/utils/optimization.py
: Performance and detail optimization.MIT License
Umap v3.0 - Making beautiful maps easier than ever! πΊοΈ
FAQs
Draw beautiful maps from OpenStreetMap with a simple Python API and CLI.
We found that umap-osm 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socketβs AI scanner detected the supply chain attack and flagged the malware.