viadot2


Nameviadot2 JSON
Version 2.2.10 PyPI version JSON
download
home_pageNone
SummaryA simple data ingestion library to guide data flows from some places to other places.
upload_time2025-07-22 10:20:29
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Viadot

[![Rye](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/rye/main/artwork/badge.json)](https://rye.astral.sh)
[![formatting](https://img.shields.io/badge/style-ruff-41B5BE?style=flat)](https://img.shields.io/badge/style-ruff-41B5BE?style=flat)

---

**Documentation**: <a href="https://dyvenia.github.io/viadot/" target="_blank">https://viadot.docs.dyvenia.com</a>

**Source Code**: <a href="https://github.com/dyvenia/viadot/tree/main" target="_blank">https://github.com/dyvenia/viadot/tree/main</a>

---

A simple data ingestion library to guide data flows from some places to other places.

## Getting Data from a Source

Viadot supports several API and RDBMS sources, private and public. Currently, we support the UK Carbon Intensity public API and base the examples on it.

```python
from viadot.sources.uk_carbon_intensity import UKCarbonIntensity

ukci = UKCarbonIntensity()
ukci.query("/intensity")
df = ukci.to_df()

print(df)
```

**Output:**
| | from | to | forecast | actual | index |
| ---: | :---------------- | :---------------- | -------: | -----: | :------- |
| 0 | 2021-08-10T11:00Z | 2021-08-10T11:30Z | 211 | 216 | moderate |

The above `df` is a pandas `DataFrame` object. It contains data downloaded by `viadot` from the Carbon Intensity UK API.

## Loading data to a destination

Depending on the destination, `viadot` provides different methods of uploading data. For instance, for databases, this would be bulk inserts. For data lakes, it would be file uploads.

For example:

```python hl_lines="2 8-9"
from viadot.sources import UKCarbonIntensity
from viadot.sources import AzureDataLake

ukci = UKCarbonIntensity()
ukci.query("/intensity")
df = ukci.to_df()

adls = AzureDataLake(config_key="my_adls_creds")
adls.from_df(df, "my_folder/my_file.parquet")
```

## Getting started

### Prerequisites

We use [Rye](https://rye-up.com/). You can install it like so:

```console
curl -sSf https://rye.astral.sh/get | bash
```

### Installation

```console
pip install viadot2
```

### Configuration

In order to start using sources, you must configure them with required credentials. Credentials can be specified either in the viadot config file (by default, `$HOME/.config/viadot/config.yaml`), or passed directly to each source's `credentials` parameter.

You can find specific information about each source's credentials in [the documentation](https://viadot.docs.dyvenia.com/references/sources/sql_sources).

### Next steps

Check out the [documentation](https://viadot.docs.dyvenia.com) for more information on how to use `viadot`.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "viadot2",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "acivitillo <acivitillo@dyvenia.com>, trymzet <mzawadzki@dyvenia.com>",
    "download_url": "https://files.pythonhosted.org/packages/03/fa/a8a490ab46b2ce9986f9a4f47a9f857b299376b9bc445fe2aaf257d2652f/viadot2-2.2.10.tar.gz",
    "platform": null,
    "description": "# Viadot\n\n[![Rye](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/rye/main/artwork/badge.json)](https://rye.astral.sh)\n[![formatting](https://img.shields.io/badge/style-ruff-41B5BE?style=flat)](https://img.shields.io/badge/style-ruff-41B5BE?style=flat)\n\n---\n\n**Documentation**: <a href=\"https://dyvenia.github.io/viadot/\" target=\"_blank\">https://viadot.docs.dyvenia.com</a>\n\n**Source Code**: <a href=\"https://github.com/dyvenia/viadot/tree/main\" target=\"_blank\">https://github.com/dyvenia/viadot/tree/main</a>\n\n---\n\nA simple data ingestion library to guide data flows from some places to other places.\n\n## Getting Data from a Source\n\nViadot supports several API and RDBMS sources, private and public. Currently, we support the UK Carbon Intensity public API and base the examples on it.\n\n```python\nfrom viadot.sources.uk_carbon_intensity import UKCarbonIntensity\n\nukci = UKCarbonIntensity()\nukci.query(\"/intensity\")\ndf = ukci.to_df()\n\nprint(df)\n```\n\n**Output:**\n| | from | to | forecast | actual | index |\n| ---: | :---------------- | :---------------- | -------: | -----: | :------- |\n| 0 | 2021-08-10T11:00Z | 2021-08-10T11:30Z | 211 | 216 | moderate |\n\nThe above `df` is a pandas `DataFrame` object. It contains data downloaded by `viadot` from the Carbon Intensity UK API.\n\n## Loading data to a destination\n\nDepending on the destination, `viadot` provides different methods of uploading data. For instance, for databases, this would be bulk inserts. For data lakes, it would be file uploads.\n\nFor example:\n\n```python hl_lines=\"2 8-9\"\nfrom viadot.sources import UKCarbonIntensity\nfrom viadot.sources import AzureDataLake\n\nukci = UKCarbonIntensity()\nukci.query(\"/intensity\")\ndf = ukci.to_df()\n\nadls = AzureDataLake(config_key=\"my_adls_creds\")\nadls.from_df(df, \"my_folder/my_file.parquet\")\n```\n\n## Getting started\n\n### Prerequisites\n\nWe use [Rye](https://rye-up.com/). You can install it like so:\n\n```console\ncurl -sSf https://rye.astral.sh/get | bash\n```\n\n### Installation\n\n```console\npip install viadot2\n```\n\n### Configuration\n\nIn order to start using sources, you must configure them with required credentials. Credentials can be specified either in the viadot config file (by default, `$HOME/.config/viadot/config.yaml`), or passed directly to each source's `credentials` parameter.\n\nYou can find specific information about each source's credentials in [the documentation](https://viadot.docs.dyvenia.com/references/sources/sql_sources).\n\n### Next steps\n\nCheck out the [documentation](https://viadot.docs.dyvenia.com) for more information on how to use `viadot`.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A simple data ingestion library to guide data flows from some places to other places.",
    "version": "2.2.10",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "99fd0a07e17758cdfdd3f069e1dfbbbdd6d4480897188f9b3ac83e9ce476c512",
                "md5": "de887aba46a31bda55e0867392c743cd",
                "sha256": "57c8ba8b9c98f7eac51828d415c3cb8fbd21efe0889736cafd92d93c76e0fe33"
            },
            "downloads": -1,
            "filename": "viadot2-2.2.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "de887aba46a31bda55e0867392c743cd",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 234860,
            "upload_time": "2025-07-22T10:20:28",
            "upload_time_iso_8601": "2025-07-22T10:20:28.206667Z",
            "url": "https://files.pythonhosted.org/packages/99/fd/0a07e17758cdfdd3f069e1dfbbbdd6d4480897188f9b3ac83e9ce476c512/viadot2-2.2.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "03faa8a490ab46b2ce9986f9a4f47a9f857b299376b9bc445fe2aaf257d2652f",
                "md5": "61268b69900e8a5a92343948051ae899",
                "sha256": "009ae8ad79986a339c1e17ea36fba590106d2369e751db24ad3ec2b31cf9bd1a"
            },
            "downloads": -1,
            "filename": "viadot2-2.2.10.tar.gz",
            "has_sig": false,
            "md5_digest": "61268b69900e8a5a92343948051ae899",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 369215,
            "upload_time": "2025-07-22T10:20:29",
            "upload_time_iso_8601": "2025-07-22T10:20:29.711578Z",
            "url": "https://files.pythonhosted.org/packages/03/fa/a8a490ab46b2ce9986f9a4f47a9f857b299376b9bc445fe2aaf257d2652f/viadot2-2.2.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-22 10:20:29",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "viadot2"
}
        
Elapsed time: 0.87241s