Skip to main content

Add your description here

Project description

Reiners ETL - RETL

CLI tool to get raw data from different remotes and store them locally in your project folder. The remotes and files which shall be downloaded, are read from a .retl.yaml configuration file, which must be present in your project folder.

Usage

Note: Requires rclone to be installed on your system.

Here are some options to use the tool:

  • with uv run: uv tool run reiners-etl
  • with pipx run: pipx run reiners-etl

Usage with as python script is not recommended as you would have to install it using pip, which installs dependencies you might not want in your system or project python.

This downloads all related files to your system. You might need to log in to a cloud provider first, this happens automatically.

Configuration

The configuration file in which remotes and files are defined must be stored as .retl.yaml in your project folder. A name defines each remote, and each remote holds information for rclone access point as well as file sources and targets, which are project-dependent. You can run rclone config (you can add --config <path-to-local-config-file> to store configuration locally) to define a new remote. After configuration, you must translate rclone configuration format (.conf) into YAML format used by retl. Additionally, you must define files which shall be downloaded from remote by defining a list of files with related sources and targets. To list possible files to download from remote, you can run rclone tree <name-of-remote>: (note: ":" is crucial here).

Example configuration file:

sharepoint:
  type: onedrive
  client_id:
  client_secret:
  drive_id: b!J5kKSe-f_E6loyOdRZSpoFA76THG7klMiQjFV3H8CDreOkX_58VVRI8LsCw0U5sg
  drive_type: documentLibrary
  files:
    - name: slider
      source: "400_General/02 Arbeitspakete/03 AP Simulation und StEmp-Tool/2025-04-28_Daten.xlsx"
      target: "data/"
    - name: scenarios
      source: "400_General/02 Arbeitspakete/03 AP Simulation und StEmp-Tool/Scenarios.xlsx"
      target: "data/"

Implementation

Config without tokens is stored in the project folder. At first usage, the config file is copied to the temp folder (including the project name in the path) and rclone is started pointing to temp config. This assures that the login token is stored in the temp config file and not in project config, which could lead to accidental pushing of secrets. Afterwards, remote authentification is done if necessary. Finally, files from all remotes are downloaded.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reiners_etl-0.2.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reiners_etl-0.2.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file reiners_etl-0.2.1.tar.gz.

File metadata

  • Download URL: reiners_etl-0.2.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.2

File hashes

Hashes for reiners_etl-0.2.1.tar.gz
Algorithm Hash digest
SHA256 6d357d54adae178e14427e6d27455ed20b59c04947709b40b896104605964f23
MD5 34c61af39737daf6cf02b37aca33b8ab
BLAKE2b-256 d6a46f3f87be10bbc09084bcf84c8f5cc2ae10bc6f5952d9d67d4475fe701aca

See more details on using hashes here.

File details

Details for the file reiners_etl-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for reiners_etl-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 66f06cc055737c3647c941c97dbbf799991ddbedbb41d61c0648e4b811d4e344
MD5 7e9ce9145eb3dd4aa5c6052beb2d3838
BLAKE2b-256 b23d45148f63e44a569834b54cccdf4ef264a34189c03ded1d72b672f07e5afe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page