semvec/pypi-packages huggingface dataset:
smartenvx 0.1.0
Smart .env loader with validation, fallback values, and secure masking.
License: MIT
Requires Python: >=3.6

# smartenv

**Smart .env loader with validation, fallback values, and secure variable handling.**  
Simplify your environment variable management across any Python project with smart defaults, type conversion, required flags, and secure masking.

---

## 🚀 Features

- 📦 Load variables from a `.env` file
- 🔐 Secure environment variables (masked in logs)
- ✅ Required variable enforcement
- 🧠 Smart default values with type conversion
- 📜 Simple API for any Python project (CLI, backend, scripts, etc.)

---

## 📦 Installation

```bash
pip install smartenv
```
---

## ⚡ Quick Usage
```python
from smartenv import load_env, get_env, require_env, secure_env

load_env()  # Loads from .env

DEBUG = get_env("DEBUG", default=False, type=bool)
PORT = get_env("PORT", default=8000, type=int)
API_KEY = require_env("API_KEY")
DB_PASS = secure_env("DB_PASS")

print("DEBUG:", DEBUG)
print("DB_PASS (safe):", DB_PASS)
```
---
### 📄 .env Example
```ini
DEBUG=true
PORT=5000
API_KEY=supersecretkey
DB_PASS=sensitivepassword
```
---
### 📛 Exceptions
| Exception             | Raised When                                   |
| --------------------- | --------------------------------------------- |
| `MissingEnvError`     | A required or secure variable is not found    |
| `InvalidEnvTypeError` | Type conversion fails (e.g., `"abc"` → `int`) |
---
### 🔧 Supported Types
- str (default)

- int

- float

- bool (true, 1, yes, etc.)
---
### 🛡 Secure Variables
```python
password = secure_env("SECRET")
print(password)      # prints: ******
str(password)        # prints: ******
actual = password == "SECRET"  # ✅ True
```
---
### 📚 License
MIT License © 2025 Ayomide Adediran
https://github.com/Ay-developerweb/smartenv

---
color-selector 0.1.0
Streamlit component for color selection with support for solid colors and gradients
License: MIT
Requires Python: >=3.7
Keywords: color, component, gradient, selector, streamlit, visualization

# Color Selector

Um componente Streamlit para seleção de cores com suporte a cores sólidas e gradientes lineares.

## Instalação

```sh
pip install color-selector
```

## Como usar

```python
import streamlit as st
from color_selector import color_selector

# Lista de cores disponíveis (cores sólidas e gradientes)
colors = [
    {"name": "Vermelho", "color": "#FF0000"},
    {"name": "Azul", "color": "#0000FF"},
    {"name": "Verde", "color": "#00FF00"},
    {"name": "Gradiente Azul-Verde", "color": ["#0000FF", "#00FF00"]},
    {"name": "Gradiente Vermelho-Amarelo", "color": ["#FF0000", "#FFFF00"]},
    {"name": "Gradiente Arco-íris", "color": ["#FF0000", "#00FF00", "#0000FF"]}
]

# Usar o componente
selected_color = color_selector(colors=colors, key="color_picker")
st.write(f"Cor selecionada: {selected_color}")
```

## Funcionalidades

- Seleção visual de cores com bolinhas coloridas
- Suporte a cores sólidas (hex, rgb, hsl)
- Suporte a gradientes lineares (lista de cores)
- Layout responsivo e minimalista
- Interface limpa sem títulos ou informações extras
- Integração perfeita com Streamlit

## Formato das Cores

### Cores Sólidas
```python
{"name": "Nome da Cor", "color": "#FF0000"}
```

### Gradientes Lineares
```python
{"name": "Nome do Gradiente", "color": ["#FF0000", "#00FF00"]}
```

## Desenvolvimento

Para executar em modo de desenvolvimento:

```sh
cd template_copy/color_selector/frontend
npm install
npm run start
```

Em outro terminal:
```sh
streamlit run template_copy/example.py
```

## Exemplo Completo

```python
import streamlit as st
from color_selector import color_selector

st.title("Seletor de Cores")

# Exemplos de cores
colors = [
    {"name": "Vermelho", "color": "#FF0000"},
    {"name": "Azul", "color": "#0000FF"},
    {"name": "Verde", "color": "#00FF00"},
    {"name": "Amarelo", "color": "#FFFF00"},
    {"name": "Roxo", "color": "#800080"},
    {"name": "Laranja", "color": "#FFA500"},
    {"name": "Gradiente Azul-Verde", "color": ["#0000FF", "#00FF00"]},
    {"name": "Gradiente Vermelho-Amarelo", "color": ["#FF0000", "#FFFF00"]},
    {"name": "Gradiente Arco-íris", "color": ["#FF0000", "#00FF00", "#0000FF"]}
]

# Usar o componente
selected_color = color_selector(colors=colors, key="color_picker")

if selected_color:
    st.write(f"**Cor selecionada:** {selected_color['name']}")
    st.write(f"**Valor:** {selected_color['color']}")
```
BO4E-CLI 0.0.3
CLI for developers. It contains many useful features when working on using BO4E in your own projects.
License: MIT
Requires Python: >=3.11
Keywords: bo4e, cli, development, tools

# BO4E-CLI

![Unittests status badge](https://github.com/bo4e/BO4E-CLI/actions/workflows/unittests.yml/badge.svg?branch=main)
![Coverage status badge](https://github.com/bo4e/BO4E-CLI/actions/workflows/coverage.yml/badge.svg?branch=main)
![Linting status badge](https://github.com/bo4e/BO4E-CLI/actions/workflows/pythonlint.yml/badge.svg?branch=main)
![Black status badge](https://github.com/bo4e/BO4E-CLI/actions/workflows/formatting.yml/badge.svg?branch=main)

This is a command line interface (CLI) for developers working or wanting to work with BO4E models.
It contains several features which can make your life easier when working with BO4E.

> It uses the [JSON-Schemas](https://github.com/bo4e/BO4E-Schemas) of the BO4E standard as source of truth.

## Features

- Pull JSON schemas of specific version conveniently from GitHub and replace the online references with relative paths.
- Edit JSON schemas using a static config file to customize the BO4E models to your usecase.
- Generate the models in one of the supported languages: Python (pydantic v1, pydantic v2, sql-model).
- Compare BO4E schemas of different versions. Creates machine-readable output.
  - Create a difference matrix comparing multiple versions consecutively.
  - Decide if a Diff between two versions is functional or technical.

## How to use this Repository on Your Machine

Follow the instructions in our [Python template repository](https://github.com/Hochfrequenz/python_template_repository#how-to-use-this-repository-on-your-machine).

## Contribute

You are very welcome to contribute to this repository by opening a pull request against the main branch.