semvec/pypi-packages huggingface dataset:
atprun 0.1.13
Run commands, scripts and import environmental variables
Requires Python: >=3.11

# ATP-Run

`atprun` is a command-line tool that allows you to define and run scripts using a simple YAML configuration file. It is designed to be easy to use and flexible, making it a great choice for **managing** and **executing** scripts in your projects. It supports defining **environment variables**, **multi-line** scripts.
In the project directory, create a file named `atprun.yml` and define your scripts in it.

You can then use the `atprun script <script_name>` to run your scripts.

## 1. Installation

### 1.1. Pipx

You can install ATP-Run using Pipx, which is a tool to install and run Python applications in isolated environments.

```bash
pipx install atprun
```

### 1.2. uv tool

You can also install ATP-Run using the `uv tool`, which is a tool to install and run Python applications in isolated environments.

```bash
uv tool install atprun
```

### 1.3. pip

You can also install ATP-Run using pip:

```bash
pip install atprun
```

### 1.4. Pipenv

You can also install ATP-Run using Pipenv:

```bash
pipenv install atprun
```

## 2. Usage

Define your scripts in a YAML configuration file (e.g., `atprun.yml`) and use the `atprun script <script_name>` command to run them.

Example: `atprun script my_script`

### 2.1. Examples `atprun.yml`

#### Simple script

```yaml
scripts:
  my_script:
    run: "echo Hello, World!"
```

#### Multiple line script

```yaml
scripts:
  my_script:
    run: |
      echo "First Line"
      echo "Second line"
```

#### Set environment variables

```yaml
scripts:
  my_script:
    environment:
      ENV_VAR_TEST: "Hello world 1"
    run: echo "$ENV_VAR_TEST"
```

#### Load environment variables from .env file

```yaml
scripts:
  my_script:
    env_file:
      - ".env"
      - ".env.development"
    run: |
      echo "$DOTENV_TEST_1"
      echo "$DOTENV_DEV_TEST_1"
```

## 3. Settings

### 3.1 Configuration File

Default: `atprun.yml` (current directory)

You can change the path to the configuration file using the `--config-path` option.

Example:

```bash
atprun --config-path path/to/your_config.yml script my_script
```

or by setting environment variable `ATPRUN_CONFIG_PATH`

Example:

```bash
export ATPRUN_CONFIG_PATH=path/to/your_config.yml
```
lpsds 0.21.0
Helper functions for data science projects.
Requires Python: >=3.6

# fast-ds

## Helper functions for data science projects

Common tools for data science projects.

You must set the following environment variables:

## LPSDS_HANDLER

This variable defines which file handler to use. It can have 2 values:

* LocalFileHandler: for files located in your local machine.
* S3FileHandler: for files located in an S3 bucket. You must have your AWS access tokens properly set for that.

## LPSDS_BUCKET

A base directory (if using LocalFileHandler) or the S3 bucket (if using S3FileHandler) that will be used as base point for input and output operations. The value should not have "S3://" in case it is a S3 bucket. Just the bucket name will do.