Shapely
Manipulation and analysis of geometric objects for spatial computing.
ML and data science PyPI BSD-3-Clause Maps and geodata
How Shapely is used
Shapely is a dependency in 11 of the 6,208 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 276 projects, and what it is used with below comes from all of them. The most used alternative in our scan is NetworkX (62 projects). Projects that use it most often also use NumPy (93.8%), Requests (81.9%), PyYAML (79.3%).
Shapely popularity over time
Gid Score 66: downloads 90, use in agent projects 66, GitHub stars 37, downloads trend 58 (each 0-100). How it is calculated.
Often used with Shapely
| NumPy | 93.8% of Shapely projects · 16.1× more than average |
|---|---|
| Requests | 81.9% of Shapely projects · 12.0× more than average |
| PyYAML | 79.3% of Shapely projects · 13.3× more than average |
| python-dateutil | 79.0% of Shapely projects · 48.1× more than average |
| pandas | 76.4% of Shapely projects · 17.8× more than average |
| Click | 75.7% of Shapely projects · 30.3× more than average |
| packaging | 73.2% of Shapely projects · 49.9× more than average |
From all 276 projects in our scan that use Shapely, including the dependency samples.
By coding agent
| Claude Code | 0.2% of projects set up for it |
|---|---|
| GitHub Copilot | 0.2% of projects set up for it |
Share of public repos configured for each agent that list Shapely as a dependency.
Install
| Package | pip install shapely |
|---|---|
| Main stacks | Python (276) |
| Example projects | zstar1003/ragflow-plus, opengeos/geospatial, YvanYin/GoalFlow, sethkarten/continual-harness, Luffy03/Large-Scale-Medical |
Alternatives to Shapely
Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside Shapely are not listed here; they are in "Often used with".
| Tool | Gid Score | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|---|
| NetworkX pypi Python package for creating, analyzing and manipulating complex networks and graphs. |
79 | 62 (3.8%) | 54.5M | 17.3K | BSD-3-Clause |
More in ML and data science: NumPy pandas scikit-learn SciPy PyTorch Sentence Transformers Hugging Face Transformers Chroma (Python)