Metadata-Version: 2.4
Name: pysdmx
Version: 1.7.0
Summary: Your opinionated Python SDMX library
License: Apache-2.0
License-File: LICENSE
Keywords: sdmx,data discovery,data retrieval,metadata,fmr
Author: Xavier Sosnovsky
Author-email: <xavier.sosnovsky@bis.org>
Requires-Python: >=3.9
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Typing :: Typed
Provides-Extra: all
Provides-Extra: data
Provides-Extra: dc
Provides-Extra: vtl
Provides-Extra: xml
Requires-Dist: httpx[http2] (>=0)
Requires-Dist: lxml (>=5.2) ; extra == "all"
Requires-Dist: lxml (>=5.2) ; extra == "xml"
Requires-Dist: msgspec (>=0)
Requires-Dist: pandas (>=2.1.4) ; extra == "all"
Requires-Dist: pandas (>=2.1.4) ; extra == "data"
Requires-Dist: parsy (>=2.1)
Requires-Dist: python-dateutil (>=2.8.2) ; extra == "all"
Requires-Dist: python-dateutil (>=2.8.2) ; extra == "dc"
Requires-Dist: sdmxschemas (>=1.0.0) ; extra == "all"
Requires-Dist: sdmxschemas (>=1.0.0) ; extra == "xml"
Requires-Dist: vtlengine (>=1.1,<2.0) ; extra == "all"
Requires-Dist: vtlengine (>=1.1,<2.0) ; extra == "vtl"
Requires-Dist: xmltodict (>=0.13) ; extra == "all"
Requires-Dist: xmltodict (>=0.13) ; extra == "xml"
Project-URL: Bug Tracker, https://bis-med-it.github.io/pysdmx/issues
Project-URL: Documentation, https://bis-med-it.github.io/pysdmx
Project-URL: Homepage, https://sdmx.io/tools/pysdmx
Project-URL: Repository, https://github.com/bis-med-it/pysdmx
Description-Content-Type: text/x-rst

.. |pypi badge| image:: https://img.shields.io/pypi/v/pysdmx.svg
   :target: https://pypi.org/project/pysdmx/

.. |awesome badge| image:: https://awesome.re/mentioned-badge.svg
   :target: http://www.awesomeofficialstatistics.org

|pypi badge| |awesome badge|

``pysdmx`` in a nutshell
************************

What is pysdmx?
===============

``pysdmx`` is a **pragmatic** and **opinionated** SDMX library written in
**Python**. It focuses on **simplicity**, providing a subset of SDMX functionalities
without requiring advanced knowledge of SDMX. ``pysdmx`` is developed as part of
the `sdmx.io <http://sdmx.io/>`_ project under the **BIS Open Tech initiative**.

What does it do?
================

``pysdmx`` aspires to be a versatile SDMX toolbox for Python, covering various
use cases. Here are some highlights:

SDMX information model in Python
--------------------------------

``pysdmx`` offers Python classes representing a **simplified subset of the SDMX
information model**, enabling a domain-driven development of SDMX processes in
Python. The model classes support serialization in formats like JSON, YAML, or
MessagePack. This functionality relies on the 
`msgspec library <https://jcristharif.com/msgspec/>`_.

Metadata in action
------------------

SDMX metadata are very useful for documenting statistical processes. For example,
they can define the structure we expect for a data collection process and share
it with the organizations providing data so that they know what to send.

However, metadata can do so much more than that, i.e., they can be “active” and
**drive various types of statistical processes**, such as generating the filesystem
layout, creating the physical data model, validating data, mapping data, and
configuring processes. To drive such processes, ``pysdmx`` supports retrieving
metadata from an SDMX Registry or any service compliant with the SDMX-REST 2.0.0 (or
above) API. Use these metadata to power your own statistical processes!

Reading and writing SDMX files
------------------------------

``pysdmx`` supports reading and writing SDMX data and structure messages, in various
formats, such as SDMX-CSV, SDMX-JSON, and SDMX-ML.

Data discovery and data retrieval
---------------------------------

This functionality is under development. Once ready, ``pysdmx`` will allow:
 
- **Listing public SDMX services**.
- **Discovering data** available in these services.
- **Retrieving data** from these services.
 
This functionality is based on the **SDMX Global Discovery Service initiative**.

Integration with the ecosystem
------------------------------

``pysdmx`` integrates nicely with other standards, like the `Validation and
Transformation Language (VTL) <https://sdmx.org/about-sdmx/about-vtl/>`_,
and major Python libraries like `Pandas <https://pandas.pydata.org/>`_.
Take a look at the ``pysdmx`` toolkit module to learn more.

``pysdmx`` is available on `PyPI <https://pypi.org/>`_ and can be
installed using options such as pip, pipx, poetry, etc.

For more details, check the `project documentation 
<https://py.sdmx.io>`_.

