Skip to main content

xbatcher: Batch Generation from Xarray Datasets

github actions build status code coverage docs pypi conda-forge license

Xbatcher is a small library for iterating Xarray DataArrays and Datasets in batches. The goal is to make it easy to feed Xarray objects to machine learning libraries such as PyTorch or TensorFlow. View the docs for more info.

Installation

Xbatcher can be installed from PyPI as:

python -m pip install xbatcher

Or via Conda as:

conda install -c conda-forge xbatcher

Or from source as:

python -m pip install git+https://github.com/xarray-contrib/xbatcher.git

Documentation

Documentation is hosted on ReadTheDocs: https://xbatcher.readthedocs.org

License

Apache License 2.0, see LICENSE file.

Acknowledgements

This work was funded in part by:

NASA ACCESS19-0049: Pangeo ML: Open Source Tools and Pipelines for Scalable Machine Learning Using NASA Earth Observation Data

This work was motivated by many conversations in the Pangeo community and Pangeo ML working group

Metadata

Release files for xbatcher 0.4.0

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

Source distribution (sdist)

Source distribution for xbatcher 0.4.0
File Size Uploaded
xbatcher-0.4.0.tar.gz 50.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xbatcher 0.4.0
File Interpreter ABI Platform
xbatcher-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 74.9 kB

Release files / xbatcher-0.4.0.tar.gz

Download URL xbatcher-0.4.0.tar.gz
Size 50.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6744005c76699659586a92d35a497e327749b37aa441e941c07a696ec99b6a8f
BLAKE2b-256 checksum
How to use checksums
9fbf28661c7535fa29cac2236a3854ea976668ab2e9dcc2d893f3fa2260a6161
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / xbatcher-0.4.0-py3-none-any.whl

Download URL xbatcher-0.4.0-py3-none-any.whl
Size 24.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a52dfa4e772c83f7a1937261c9a51cba656edefd09f5ffd780f62da2ad0dbea2
BLAKE2b-256 checksum
How to use checksums
85f09a67b054cd767e3beddb439969c30d885b59b617d743dda5e01efb693ee4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

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