polars-darwin-core
Helpers for working with Darwin Core CSV data using polars.
Usage
Reading a single Darwin Core CSV file
from polars_darwin_core import DarwinCoreLazyFrame
lf = DarwinCoreLazyFrame.from_csv("occurrence.csv")
print(lf.collect())
Working with Darwin Core Archives (DwC-A)
import polars as pl
from polars_darwin_core import DarwinCoreLazyFrame
# Path to an unpacked Darwin Core Archive directory (containing meta.xml)
archive_path = "path/to/dwc/archive"
# Load the core file from the archive
lf = DarwinCoreLazyFrame.from_archive(archive_path)
# Work with the data
df = lf.filter(pl.col("kingdom") == "Animalia").collect()
print(df)
Development
# Create a virtualenv however you prefer, then:
pip install -e .[dev]
# Run the test-suite
python -m unittest
The project follows the standard PEP 517 build flow via Hatch:
python -m build # create sdist and wheel in ./dist/
Release files for polars-darwin-core 4.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| polars_darwin_core-4.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / polars_darwin_core-4.1.0-py3-none-any.whl
| Download URL | polars_darwin_core-4.1.0-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0514ca2fb6f95e3c739715ea00e96da012b533c44ea153ce9e4634f33af0ff6e
|
|
BLAKE2b-256 checksum How to use checksums |
3229c53a40fd1605de64705b42ee22ffff89e053850ddc4feb70b645c8ce3618
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|