semvec/pypi-packages huggingface dataset:
ua-parser-builtins 202602
Precompiled rules for User Agent Parser
License: Apache 2.0
Requires Python: >=3.10

# Precompiled ruleset for [ua-parser]

This project does not do anything on its own, nor does it have any
actual API: it contains the dataset of [uap-core] pre-compiled for use
by [ua-parser] to decrease
initialisation times.

The precompiled ruleset is released monthly based on whatever
[uap-core]'s default branch is at that moment. The [uap-core] commit
used for creating the compiled ruleset is stored in the `REVISION`
file at the root of the wheel.

[ua-parser]: https://pypi.org/project/ua-parser/
[uap-core]: https://github.com/ua-parser/uap-core
eodag-cube 0.7.0b1
Data access for EODAG
License: Apache 2.0
Requires Python: >=3.9

.. image:: https://badge.fury.io/py/eodag-cube.svg
    :target: https://badge.fury.io/py/eodag-cube

.. image:: https://img.shields.io/pypi/l/eodag-cube.svg
    :target: https://pypi.org/project/eodag-cube/

.. image:: https://img.shields.io/pypi/pyversions/eodag-cube.svg
    :target: https://pypi.org/project/eodag-cube/

.. image:: https://mybinder.org/badge_logo.svg
    :target: https://mybinder.org/v2/git/https%3A%2F%2Fgithub.com%2FCS-SI%2Feodag-cube.git/package-data?filepath=docs%2Fnotebooks%2Fclip-reproject.ipynb

EODAG-cube
==========

This project is the data-access part of `EODAG <https://github.com/CS-SI/eodag>`_

.. image:: https://eodag.readthedocs.io/en/latest/_static/eodag_bycs.png
    :target: https://github.com/CS-SI/eodag

|


Installation
============

EODAG-cube is on `PyPI <https://pypi.org/project/eodag-cube/>`_::

    python -m pip install eodag-cube

Documentation
=============

Documentation is available through `EODAG API User Guide / Data access with eodag-cube <https://eodag.readthedocs.io/en/latest/notebooks/api_user_guide/9_post_process.html#Data-access-with-eodag-cube>`_.

See also:

* `Python API Reference / EOProduct - pixel access <https://eodag.readthedocs.io/en/latest/api_reference/eoproduct.html#pixel-access>`_
* `Python API Reference / Assets - pixel access <https://eodag.readthedocs.io/en/latest/api_reference/assets.html#pixel-access>`_
* `Python API Reference / utils - xarray <https://eodag.readthedocs.io/en/latest/api_reference/utils.html#xarray>`_

Usage - Python API
==================

Example usage for interacting with the api in your Python code:

.. code-block:: python

    from eodag import EODataAccessGateway
    from rasterio.crs import CRS

    dag = EODataAccessGateway()
    search_criteria = dict(
        provider='earth_search',
        collection='S2_MSI_L1C',
        geom=[1, 43.5, 2, 44],
        start='2020-06-04',
        end='2020-06-05',
    )
    search_results = dag.search(**search_criteria)
    product = search_results[0]
    product

.. image:: docs/_static/eoproduct.png?raw=true
   :alt: EOProduct

Whole product as ``XarrayDict``:

.. code-block:: python

    product.to_xarray()

.. image:: docs/_static/xarray_dict.png?raw=true
   :alt: XarrayDict

Single asset as ``xarray.Dataset``:

.. code-block:: python

    product.assets["blue"].to_xarray()

.. image:: docs/_static/dataset.png?raw=true
   :alt: Dataset

``fsspec.core.OpenFile`` file object:

.. code-block:: python

    product.assets["blue"].get_file_obj()

``<File-like object S3FileSystem, sentinel-s2-l1c/tiles/31/T/DJ/2020/6/4/0/B02.jp2>``

Contribute
==========

If you intend to contribute to eodag-cube source code::

    git clone https://github.com/CS-SI/eodag-cube.git
    cd eodag-cube
    python -m pip install -e .[dev]
    tox

LICENSE
=======

EODAG is licensed under Apache License v2.0.
See LICENSE file for details.


AUTHORS
=======

EODAG is developed by `CS GROUP - France <https://www.c-s.fr>`_.