semvec/pypi-packages huggingface dataset:
pyenvedit 0.2.0
A CLI tool for editing .env files with an intuitive interface
Requires Python: >=3.8

# pyenvedit

A CLI tool for editing `.env` files with an intuitive interface. Edit environment variables from the command line or through an interactive TUI.

## Installation

Install from PyPI:

```bash
pip install pyenvedit
```

## Usage

### Command Line Interface

#### Display .env file contents
```bash
pyenvedit .env
```

#### Add a new environment variable
```bash
pyenvedit .env --add API_KEY=your_api_key_here
pyenvedit .env --add DATABASE_URL=postgresql://localhost/mydb
```

#### Edit an existing environment variable
```bash
pyenvedit .env --edit API_KEY=new_api_key_value
pyenvedit .env --edit DEBUG=true
```

#### Remove an environment variable
```bash
pyenvedit .env --remove API_KEY
pyenvedit .env --remove UNUSED_VAR
```

### Interactive TUI Mode

Launch the interactive TUI by running `pyenvedit` without any flags on a non-existent file:

```bash
pyenvedit myproject.env
```

The TUI provides:
- **View**: Browse all environment variables in a table
- **Add**: Add new variables through a modal dialog
- **Edit**: Edit existing variables by selecting them and clicking "Edit Selected"
- **Delete**: Remove variables by selecting them and clicking "Delete Selected"
- **Navigation**: Use arrow keys to navigate, Enter to select

### Key Features

- **Safe editing**: Preserves comments and formatting
- **Validation**: Ensures variable names follow proper conventions
- **Error handling**: Clear error messages for invalid operations
- **Cross-platform**: Works on Windows, macOS, and Linux
- **UTF-8 support**: Handles international characters in values

## Examples

### Basic Usage
```bash
# Display current .env file
pyenvedit

# Add a database URL
pyenvedit --add DATABASE_URL=sqlite:///app.db

# Update an API key
pyenvedit --edit API_KEY=sk-new-key-12345

# Remove an old variable
pyenvedit --remove OLD_API_KEY

# Edit a different env file
pyenvedit config/staging.env --add REDIS_URL=redis://localhost:6379
```

### Interactive Mode
```bash
# Launch TUI for current directory's .env
pyenvedit

# Launch TUI for specific file
pyenvedit config/production.env
```

## File Format Support

pyenvedit works with standard `.env` file format:

```bash
# Comments are preserved
API_KEY=your_key_here
DATABASE_URL=postgresql://user:pass@localhost/db
DEBUG=true

# Quoted values are supported
MESSAGE="Hello, World!"
PATH='/usr/local/bin:/usr/bin'
```

## Requirements

- Python 3.8 or higher
- textual >= 0.40.0
- click >= 8.0.0

## Development

To set up for development:

```bash
git clone https://github.com/marcokotrotsos/envedit
cd envedit
pip install -e .
```

## License

MIT License
addmeta-test8 0.post0.dev1
Add meta data to netCDF files.
Requires Python: >=3.9
Keywords: ACCESS-NRI, netcdf, metadata

[![Build Status](https://travis-ci.org/coecms/addmeta.svg?branch=master)](https://travis-ci.org/coecms/addmeta)
[![codecov.io](https://codecov.io/github/coecms/addmeta/coverage.svg?branch=master)](https://codecov.io/github/coecms/addmeta?branch=master)

# addmeta

Add meta data to netCDF files.

## Metadata

The metadata is stored in attribute files in [YAML](https://yaml.org) format. 
The metadata is in key-value pairs and is a global attribute if defined in a 
`global` section, or applied to a specific named variable in the `variables` 
section. 

If an attribute is listed with a missing value that attribute is deleted from the file.

For example the following is an example of an attribute file:
```yaml
global:
    # Mandatory since it gives a key to all the other attributes
    Conventions: "CF-1.7, ACDD-1.3"
    # The url of the license applied to the data
    license: "http://creativecommons.org/licenses/by-nc-sa/4.0/"
variables:
    yt_ocean:
        _FillValue:
        long_name: "latitude in rotated pole grid"
        units: "degrees"
    geolat_t:
        long_name: "latitude coordinate"
        units: "degrees_north"
        standard_name: "latitude"
```
It will create (or replace) two global attributes: `Conventions` and `license`.
It will also create (or replace) attributes for two variables, `yt_ocean` and
`geolat_t`, and delete the `_FillValue` attribute of `yt_ocean`.

The information is read into a `python` dict. Multiple attribute files can be
specified. If the same attribute is defined more than once, the last attribute
file specified takes precedence. Like cascading style sheets this means default
values can be given and overridden when necessary. 


## Invocation

`addmeta` is a command line program. Invoking with the `-h` flag prints
a summay of how to invoke the program correctly.

    $ addmeta -h
    usage: addmeta [-h] [-m METAFILES] [-l METALIST] [-v] files [files ...]

    Add meta data to one or more netCDF files

    positional arguments:
    files                 netCDF files

    optional arguments:
    -h, --help            show this help message and exit
    -m METAFILES, --metafiles METAFILES
                            One or more meta-data files in YAML format
    -l METALIST, --metalist METALIST
                            File containing a list of meta-data files
    -v, --verbose         Verbose output

Multiple attribute files can be specified by passing more than one file with
the `-m` option. For a large number of files this can be tedious. In that case
use the `-l` option and pass it a text file with the names of attribute files,
one per line.

Multiple meta list files and meta files can be specified on one command line.
WaveMonitor 0.4.0
A simple GUI for monitoring waveforms.
Requires Python: >=3.9

# Wave Monitor

![snapshot](https://qiujv.github.io/WaveMonitor/assets/snapshot.png)

A simple GUI for monitoring waveforms. It plots waveforms with PyQtGraph in a separate process.

The `WaveMonitor` class is the primary Python API.

In the GUI, right click to show the menu. Keyboard shortcuts are also supported.

Also see the [docs](https://qiujv.github.io/WaveMonitor/)

## Installation

```bash
pip install WaveMonitor
```

## Usage

```python
from wave_monitor import WaveMonitor
import numpy as np

monitor = WaveMonitor()
monitor.autoscale()
monitor.clear()

t = np.linspace(0, 1, 1_000_001)  # 1m pts ~= 1ms for 1GSa/s.
n = 20
i_waves = [np.cos(2 * np.pi * f * t) for f in range(1, n + 1)]
q_waves = [np.sin(2 * np.pi * f * t) for f in range(1, n + 1)]

for i, (i_wave, q_wave) in enumerate(zip(i_waves, q_waves)):
    monitor.add_wfm(f"wave_{i}", t, [i_wave, q_wave])
monitor.autoscale()

monitor.add_wfm("wave_1", t, [i_waves[-1], q_waves[-1]])  # Replaces previous wfm.
monitor.add_note("wave_1", "re-writen")

monitor.remove_wfm("wave_10")
```

## Acknowledge

This project is derived from [WaveViewer](https://github.com/kahojyun/wave-viewer).

The application icon was generated using OpenAI's DALL·E model and is released into the public domain (CC0).
addmeta-test7 0.post0.dev1
Add meta data to netCDF files.
Requires Python: >=3.9
Keywords: ACCESS-NRI, netcdf, metadata

[![Build Status](https://travis-ci.org/coecms/addmeta.svg?branch=master)](https://travis-ci.org/coecms/addmeta)
[![codecov.io](https://codecov.io/github/coecms/addmeta/coverage.svg?branch=master)](https://codecov.io/github/coecms/addmeta?branch=master)

# addmeta

Add meta data to netCDF files.

## Metadata

The metadata is stored in attribute files in [YAML](https://yaml.org) format. 
The metadata is in key-value pairs and is a global attribute if defined in a 
`global` section, or applied to a specific named variable in the `variables` 
section. 

If an attribute is listed with a missing value that attribute is deleted from the file.

For example the following is an example of an attribute file:
```yaml
global:
    # Mandatory since it gives a key to all the other attributes
    Conventions: "CF-1.7, ACDD-1.3"
    # The url of the license applied to the data
    license: "http://creativecommons.org/licenses/by-nc-sa/4.0/"
variables:
    yt_ocean:
        _FillValue:
        long_name: "latitude in rotated pole grid"
        units: "degrees"
    geolat_t:
        long_name: "latitude coordinate"
        units: "degrees_north"
        standard_name: "latitude"
```
It will create (or replace) two global attributes: `Conventions` and `license`.
It will also create (or replace) attributes for two variables, `yt_ocean` and
`geolat_t`, and delete the `_FillValue` attribute of `yt_ocean`.

The information is read into a `python` dict. Multiple attribute files can be
specified. If the same attribute is defined more than once, the last attribute
file specified takes precedence. Like cascading style sheets this means default
values can be given and overridden when necessary. 


## Invocation

`addmeta` is a command line program. Invoking with the `-h` flag prints
a summay of how to invoke the program correctly.

    $ addmeta -h
    usage: addmeta [-h] [-m METAFILES] [-l METALIST] [-v] files [files ...]

    Add meta data to one or more netCDF files

    positional arguments:
    files                 netCDF files

    optional arguments:
    -h, --help            show this help message and exit
    -m METAFILES, --metafiles METAFILES
                            One or more meta-data files in YAML format
    -l METALIST, --metalist METALIST
                            File containing a list of meta-data files
    -v, --verbose         Verbose output

Multiple attribute files can be specified by passing more than one file with
the `-m` option. For a large number of files this can be tedious. In that case
use the `-l` option and pass it a text file with the names of attribute files,
one per line.

Multiple meta list files and meta files can be specified on one command line.
addmeta-test6 0.post0.dev1
Add meta data to netCDF files.
Requires Python: >=3.9
Keywords: ACCESS-NRI, netcdf, metadata

[![Build Status](https://travis-ci.org/coecms/addmeta.svg?branch=master)](https://travis-ci.org/coecms/addmeta)
[![codecov.io](https://codecov.io/github/coecms/addmeta/coverage.svg?branch=master)](https://codecov.io/github/coecms/addmeta?branch=master)

# addmeta

Add meta data to netCDF files.

## Metadata

The metadata is stored in attribute files in [YAML](https://yaml.org) format. 
The metadata is in key-value pairs and is a global attribute if defined in a 
`global` section, or applied to a specific named variable in the `variables` 
section. 

If an attribute is listed with a missing value that attribute is deleted from the file.

For example the following is an example of an attribute file:
```yaml
global:
    # Mandatory since it gives a key to all the other attributes
    Conventions: "CF-1.7, ACDD-1.3"
    # The url of the license applied to the data
    license: "http://creativecommons.org/licenses/by-nc-sa/4.0/"
variables:
    yt_ocean:
        _FillValue:
        long_name: "latitude in rotated pole grid"
        units: "degrees"
    geolat_t:
        long_name: "latitude coordinate"
        units: "degrees_north"
        standard_name: "latitude"
```
It will create (or replace) two global attributes: `Conventions` and `license`.
It will also create (or replace) attributes for two variables, `yt_ocean` and
`geolat_t`, and delete the `_FillValue` attribute of `yt_ocean`.

The information is read into a `python` dict. Multiple attribute files can be
specified. If the same attribute is defined more than once, the last attribute
file specified takes precedence. Like cascading style sheets this means default
values can be given and overridden when necessary. 


## Invocation

`addmeta` is a command line program. Invoking with the `-h` flag prints
a summay of how to invoke the program correctly.

    $ addmeta -h
    usage: addmeta [-h] [-m METAFILES] [-l METALIST] [-v] files [files ...]

    Add meta data to one or more netCDF files

    positional arguments:
    files                 netCDF files

    optional arguments:
    -h, --help            show this help message and exit
    -m METAFILES, --metafiles METAFILES
                            One or more meta-data files in YAML format
    -l METALIST, --metalist METALIST
                            File containing a list of meta-data files
    -v, --verbose         Verbose output

Multiple attribute files can be specified by passing more than one file with
the `-m` option. For a large number of files this can be tedious. In that case
use the `-l` option and pass it a text file with the names of attribute files,
one per line.

Multiple meta list files and meta files can be specified on one command line.
finance-ml-amoniz 0.3.0
Projet d'exercice ML en finance
Requires Python: >=3.9

# 📈 finance-ml

Un mini-projet d'apprentissage automatique en Python, construit avec [Poetry](https://python-poetry.org/) et testé automatiquement avec [pytest](https://docs.pytest.org/) et [GitHub Actions](https://docs.github.com/en/actions).

## 🚀 Objectifs du projet
- Mettre en place une structure de projet Python propre.
- Implémenter pas à pas des algorithmes de machine learning appliqués à la finance.
- Apprendre à écrire des tests unitaires avec **pytest**.
- Automatiser l’intégration continue (CI) avec **GitHub Actions**.

## 📂 Structure du projet
finance-ml/
├── .github/workflows/ # Workflows GitHub Actions (tests automatiques)
├── src/my_package/ # Code source du package
│ ├── init.py
│ └── linear_models.py
├── tests/ # Tests unitaires
│ ├── init.py
│ └── test_linear_models.py
├── pyproject.toml # Configuration du projet (Poetry)
├── poetry.lock # Verrouillage des dépendances
└── README.md # Documentation du projet

## ⚙️ Installation

Cloner le projet :
```bash
git clone https://github.com/Antoine-Moniz/finance-ml.git
cd finance-ml

Installer les dépendances avec Poetry :
poetry install

Activer l’environnement virtuel :
poetry shell

Fonctionnalités
Implémentées

Régression linéaire (LinearRegression) :

Avec ou sans intercept

Méthode des moindres carrés

Prédictions sur de nouvelles données

Tests

Lancer les tests unitaires avec :

poetry run pytest

🔄 Intégration Continue (CI)

Chaque push ou pull request déclenche automatiquement les tests via GitHub Actions.
Voir l’onglet Actions
 pour consulter l’historique des exécutions.