Skip to main content

simple_module_datasets

Geospatial + tabular dataset upload module for simple_module apps. Users upload CSV/GeoJSON/Shapefile; the module parses, slugs a canonical name, and stores geometry using shapely.

Install

pip install simple_module_datasets

Also needs simple_module_file_storage + simple_module_background_tasks (declared as deps).

What it provides

  • POST /api/datasets — multipart upload; the file is staged via simple_module_file_storage, then a Celery job parses it in the background.
  • Dataset SQLModel record with name, slug (via python-slugify), geometry_type, row_count, bbox.
  • Shapely-backed parsers for GeoJSON, CSV with lat/lon columns, and zipped Shapefiles.
  • Admin UI for browsing + deleting datasets.

Usage

Upload from a form:

curl -X POST -F "file=@cities.geojson" http://localhost:8000/api/datasets

Query parsed datasets:

from datasets.service import DatasetService   # type: ignore[import-not-found]

async def list_by_bbox(svc: DatasetService = Depends(DatasetService), ...):
    return await svc.intersects(bbox=(-74.1, 40.6, -73.8, 40.9))

Depends on

  • simple_module_core, simple_module_db, simple_module_hosting
  • simple_module_file_storage, simple_module_background_tasks
  • shapely>=2.0, python-slugify>=8.0, celery>=5.4

License

MIT — see LICENSE.

Metadata

Release files for simple-module-datasets 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simple-module-datasets 0.0.3
File Size Uploaded Provenance
simple_module_datasets-0.0.3.tar.gz 30.0 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for simple-module-datasets 0.0.3
File Interpreter ABI Platform
simple_module_datasets-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 64.4 kB

Release files / simple_module_datasets-0.0.3.tar.gz

Download URL simple_module_datasets-0.0.3.tar.gz
Size 30.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b87c13cd8f81cc12d2dc6522fa35cf44b2f97e0899467706fc483857c85f75a7
BLAKE2b-256 checksum
How to use checksums
f46fa2880c36f04ad4dd1a2fe20d3aecf5feaf6a34f6b73e4a4197ada974a25e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 29, 2026.

Transparency log

Release files / simple_module_datasets-0.0.3-py3-none-any.whl

Download URL simple_module_datasets-0.0.3-py3-none-any.whl
Size 34.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e267539c4b559061eff9ef0ffa9bca4b48786e7889f109a84628e9b187e46140
BLAKE2b-256 checksum
How to use checksums
abafd8c1c176e7a69a46d0d3f081a008d39c4eab897a52a4a1063bfc893ac06b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 29, 2026.

Transparency log

Security for simple-module-datasets 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for simple_module_datasets-0.0.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page