semvec/pypi-packages huggingface dataset:
cameracommander 0.1.1
Add your description here
Requires Python: >=3.11

# CameraComander

A CLI application for creating time-lapse videos using a gphoto2 compatiable camera. So far only tested with a Canon EOS 6D2 and EOS R50 tethered (USB).
The application allows you to configure camera settings utilizing a file which makes it easier to reproduce captures.
Main function is to capture snapshots and start time lapse recordings, by continuously capturing images at a given interval. The images are saved to a folder and can be used to create a time-lapse videos, e.g. using ffmpeg.

## Example `settings.yaml`

```yaml
script_settings:
  interval: 10
  frames: 100

camera_settings:
  iso: 100
  aperture: 2.8
  shutter_speed: 1/60
  white_balance: auto
```

## Example Workflow (timelapse)
1. Connect Camera via USB
2. Run `cameracommander auto_adjust --save-settings` to detect camera settings and save them to `settings.yaml`
3. Modify `settings.yaml` to your needs
4. Run `cameracommander timelapse --settings-file path/to/settings.yaml` to start a timelapse
5. Use ffmpeg to create a video from the images

Here is one example result of a timelapse created with this tool without any post processing:

![Example](docs/nothernlights.gif)


## Commands

The CLI provides several commands to interact with the camera. Below are some examples of how to use these commands.

### Check Settings
Check the validity of a given `settings.yaml` file by applying it to the camera.
```sh
$ cameracommander check_settings --settings-file path/to/settings.yaml
```
### List Settings
Show all possible camera settings and their keys.
```sh
$ cameracommander list_settings
```

### List Available Values
Show all possible setting values for camera settings in the given `settings.yaml`.
```sh
$ cameracommander list_available_values --settings-file path/to/settings.yaml
```

### Snapshot
Create a snapshot using the camera settings in a given `settings.yaml`.
```sh
$ cameracommander snapshot --settings-file path/to/settings.yaml
```
### Timelapse
Start a timelapse using settings in `settings.yaml`.
```sh
$ cameracommander timelapse --settings-file path/to/settings.yaml
```

### Auto Adjust

Take a snapshot with all auto settings and print the used camera settings. Optionally, save the detected settings to `settings.yaml`.

```sh
$ cameracommander auto_adjust [--save-settings] 
```

## How to install
### From Source, in a venv
This project uses uv as a package manager. So install it first -> https://docs.astral.sh/uv/getting-started/installation/)

Then:
```sh
$ git clone https://github.com/fwarmuth/CameraCommander.git
$ cd CameraCommander
$ uv run cameracommander --help
```

### From PyPi
```sh
$ pip install cameracommander
$ cameracommander --help
```
givecolor 0.1.6
Un paquete para imprimir texto de colores en la terminal de Windows
Requires Python: >=3.6

```
░██████╗░██╗██╗░░░██╗███████╗░█████╗░░█████╗░██╗░░░░░░█████╗░██████╗░
██╔════╝░██║██║░░░██║██╔════╝██╔══██╗██╔══██╗██║░░░░░██╔══██╗██╔══██╗
██║░░██╗░██║╚██╗░██╔╝█████╗░░██║░░╚═╝██║░░██║██║░░░░░██║░░██║██████╔╝
██║░░╚██╗██║░╚████╔╝░██╔══╝░░██║░░██╗██║░░██║██║░░░░░██║░░██║██╔══██╗
╚██████╔╝██║░░╚██╔╝░░███████╗╚█████╔╝╚█████╔╝███████╗╚█████╔╝██║░░██║
░╚═════╝░╚═╝░░░╚═╝░░░╚══════╝░╚════╝░░╚════╝░╚══════╝░╚════╝░╚═╝░░╚═╝
```

@author: 𓂀 𝒥-𝒳𝒶𝓃𝒹𝑒𝓇 𓂀<br>
@version: 0.1.6<br>
@since: 2024/09/27
@date: 2024/10/7

Imprime texto de colores y con estilos en la terminal

# Funcionalidad
Sobreescribe la funcion interna print y añade nuevos parametro:
- __`fore`__: Recibe un identificador ansi para establecer el color del texto
- __`back`__: Recibe un identificador ansi para establecer un color de fondo el texto.
- __`style`__: Recibe un identificador ansi para establece un stylo en el texto.
> Nota: Puede recibir tanto como un numero como una cadena o la secuencia de escape directa.

__EJEMPLO DE USO__
```py
    import givecolor

    print('Texto en rojo y fondo blanco', fore='red', back='white')
    print('Texto en rojo y fondo blanco', fore=31, back=47)
```
__Podemos importar algunas clases *Enum* perteneciente a la libreria para poder optener una lista de todos los colores y stylos disponibles__
- `Fore`: Enumera los colores de texto disponibles.
- `Back`: Enumera los colores de fondo disponibles.
- `Style`: Enumero los stylos disponibles que podemos darle al texto.
> Nota: Hay varios estilos que no estan añadidos ya que no soportados por ciertas terminales.

__EJEMPLO DE USO__  
```py
    from givecolor import Fore, Back, Style

    print('Texto en verde y tachado con fondo azul',
            fore=Fore.GREEN,
            back=Back.BLUE,
            style=Style.CROSSED)
```