semvec/pypi-packages huggingface dataset:
flespi-sdk 0.2.2
Add your description here
Requires Python: >=3.11

# Install

```
pip install flespi-sdk

```

# Usage

```python
from flespi_sdk.account import Account

# log into account
account = Account()
await account.set_token("<flespi-token>")
# or
# await account.realm_login("<realm-public-id>", "<realm-username>", "<realm-password>")

# use account

print("Metadata", await account.metadata.get())
print("Direct subaccount IDs", [subaccount.id for subaccount in await account.subaccounts.list()])
print("Flespi API counters", await account.mqtt.list("flespi/state/platform/customer/counters/api/#"))

```

# Examples

### Read emails from MQTT for all subaccounts (master token required)

```python
from flespi_sdk.cli import get_account


async def main():
    account = None
    try:
        account = await get_account()
        subaccounts = await account.subaccounts.list()
        for subaccount in subaccounts:
            name = await subaccount.metadata.get_value("sys_user_config.title")
            mqtt_msg = await subaccount.mqtt.get("flespi/state/platform/customer/email")
            email = mqtt_msg["payload"]
            print(f"Subaccount ID: {subaccount.id}, Name: {name}, Email: {email}")
    except Exception as e:
        print("Error:", e)
    finally:
        if account:
            await account.stop()


if __name__ == "__main__":
    import asyncio

    asyncio.run(main())

```

### Manipulate realms and users

```python
acc = Account()
await acc.set_token(acc_token)

realms = await acc.realms.list(selector="all")
for realm in realms:
    print(realm.id, await realm.get_name(), await realm.metadata.get())
    users = await realm.users.list()
    for user in users:
        print(user.id, await user.get_name(), await user.metadata.get())

realm = await acc.realms.get(22644)
user = await realm.users.get(90287)
await user.metadata.set_value("test-metadata-key", "123")
print(await user.metadata.get())
await user.metadata.delete_value("test-metadata-key")
print(await user.metadata.get())
await user.update_password("newpassword123456789")
```
gas-station-spain-api 1.3.0
Obtiene el precio actual del combustible en las distintas gasolineras de España
Requires Python: >3.9

# Python Gas Station Spain

### Descripción

Esta es una biblioteca para obtener el precio actual del combustible en las distintas gasolineras españolas.

### Fuente de datos

Los datos son extraídos de de la API oficial del estado: [Geoportal Gasolineras](https://geoportalgasolineras.es/geoportal-instalaciones/Inicio).

Desgraciadamente, el servicio no es muy estable y es posible que ocurran errores de conexión

### Uso

```python

import gas_station_spain_api as gss

# Obtener listado de provincias
provinces = await gss.get_provinces()

# Obtener listado de municipios
municipalities = await gss.get_municipalities(provinces[0].id)

# Obtener estaciones de una provincia
p1_gas_stations = await gss.get_gas_stations(province_id=provinces[1].id)

# Obtener estaciones de un municipio
m1_gas_stations = await gss.get_gas_stations(provinces[0].id, municipalities[0].id)
```
base64-python 0.6
A beginner's base64 encoder/decoder in Python

Base64_Python<br>
-

A beginner's base64/base64_Url encoder/decoder in Python

install<br>
-
Linux&MacOS
-
**Bash/Zsh**
```bash
pip3 install base64_python
```
Windows
-
**CMD/PowerShell**
```cmd
pip install base64_python
```

function<br>
-
- **Base64.encode(str|bytes) -> str**<br>
- **Base64.decode(str|bytes) -> bytes**<br>
- **Base64_Url.encode(str|bytes) -> str**<br>
- **Base64_Url.decode(str|bytes) -> bytes**<br>
- **test() -> str**

Exam<br>
-
**Example**<br>
```python
import base64_python
base64 = base64_python.Base64()
base64_url = base64_python.Base64_Url()
print(base64.encode("Exam"))
print(base64.decode("RXhhbQ=="))
print(base64.decode("RXhhbQ==").decode("utf-8"))
print(base64_url.encode("Exam"))
print(base64_url.decode("RXhhbQ"))
print(base64_url.decode("RXhhbQ").decode("utf-8"))
print(base64_python.test())
```
**Output**<br>
```output
RXhhbQ==
bytearray(b'Exam\x00')
Exam
RXhhbQ
bytearray(b'Exam\x00')
Exam
+------------------------------------+
| Input Text     : Exam              |
| Encoding       : RXhhbQ==          |
| Decoding       : Exam              |
| Encodeing Type : Base64            |
| Time           : 0.00004 seconds   |
+------------------------------------+
+------------------------------------+
| Input Text     : Exam              |
| Encoding       : RXhhbQ            |
| Decoding       : Exam              |
| Encodeing Type : Base64_Url        |
| Time           : 0.00003 seconds   |
+------------------------------------+
```

License<br>
-

This project is licensed under the terms of the MIT license.
local-connect 0.0.4
library that contains scripts to connect between laptops in local network
Requires Python: >=3.9.13

# Local Connect Python

Local Connect Python is a Python library designed to facilitate communication between clients and servers using TCP with IPV4 to only connect through the same wifi. This library provides implementations for paragraph-based and single-character communication, along with utility functions to support these operations.

## Features

- **Paragraph Clip Communication**: Includes both client and server implementations for paragraph-based communication.
- **Single Character Communication**: Includes both client and server implementations for single-character communication.


## Installation

Install the library using pip:
```bash
pip install local-connect
```

## Usage

Read about functions' name:
```bash
local-connect
```

Read more detail about a function:
```bash
local-connect [FUNCTION] --help 
```
## Contact

For any inquiries or issues, please contact the repository owner at [truongbaan](https://github.com/truongbaan).
dbca-utils 2.1.5
Utilities for DBCA Django apps
Requires Python: <4.0,>=3.10

# Overview

DBCA Django utility classes and functions.

## Requirements

- Python 3.10 or later
- Django 4.2 or later

## Development

Dependencies for this project are managed using [uv](https://docs.astral.sh/uv/).
With uv installed, change into the project directory and run:

    uv sync

Activate the virtualenv like so:

    source .venv/bin/activate

Run unit tests using `pytest` (or `tox`, to test against multiple Python versions):

    pytest -sv
    tox -v

## Releases

Tagged releases are built and pushed to PyPI automatically using a GitHub
workflow in the project. Update the project version in `pyproject.toml` and
tag the required commit with the same value to trigger a release. Packages
can also be built and uploaded manually to PyPI using [uv](https://docs.astral.sh/uv/guides/publish/#publishing-your-package),
if required:

    uv build
    uv publish

## Installation

1. Install via uv/pip/etc.: `pip install dbca-utils`

## SSO Login Middleware

This will automatically login and create users using headers from an upstream proxy (REMOTE_USER and some others).
The logout view will redirect to a separate logout page which clears the SSO session.

### Usage

Add `dbca_utils.middleware.SSOLoginMiddleware` to `settings.MIDDLEWARE` (after both of
`django.contrib.sessions.middleware.SessionMiddleware` and
`django.contrib.auth.middleware.AuthenticationMiddleware`.
Ensure that `AUTHENTICATION_BACKENDS` contains `django.contrib.auth.backends.ModelBackend`,
as this middleware depends on it for retrieving the logged in user for a session.
Note that the middleware will still work without it, but will reauthenticate the session
on every request, and `request.user.is_authenticated` won't work properly/will be false.

Example:

```python
MIDDLEWARE = [
    ...,
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'dbca_utils.middleware.SSOLoginMiddleware'
    ...,
]
```

## Audit model mixin

`AuditMixin` is an extension of `Django.db.model.Model` that adds a number of additional fields:

- `creator` - FK to `AUTH_USER_MODEL`, used to record the object creator
- `modifier` - FK to `AUTH_USER_MODEL`, used to record who the object was last modified by
- `created` - a timestamp that is set on initial object save
- `modified` - an auto-updating timestamp (on each object save)
iflow-mcp_hunter-mcp 0.1.0
An MCP interface for the Hunter API
Requires Python: >=3.13

# Hunter MCP Server

# **⚠️ Deprecated - Please Switch to Hunter's Remote MCP Server ⚠️**
This repository is no longer maintained. All functionality has moved to **Hunter’s Remote MCP Server**, which provides a more convenient setup.

👉 **Start here:** <https://hunter.io/api-documentation#mcp>

---

## 🙋‍♂️ Introduction

This MCP (Model Context Protocol) server provides integration between the Hunter API and any LLM provider supporting the MCP protocol (e.g., Claude for Desktop), allowing you to interact with the Hunter B2B data using natural language.

<a href="https://glama.ai/mcp/servers/@hunter-io/hunter-mcp">
  <img width="380" height="200" src="https://glama.ai/mcp/servers/@hunter-io/hunter-mcp/badge" alt="Hunter MCP server" />
</a>

## ✨ Features
- Use Hunter API endpoints using natural language
- Get B2B data about People and Companies
- Save them to your Leads through conversational interfaces

## 📦 Installation

### Prerequisites

- A Hunter [API key](https://hunter.io/api-keys)
- Python 3.13 or higher
- [uv](https://github.com/astral-sh/uv)

## 🔌 MCP setup
Here is an example config file which you can use to set up Hunter MCP.

```json
{
  "mcpServers": {
    "hunter-mcp": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "mcp",
        "run",
        "PATH_TO_hunter-mcp/main.py"
      ],
      "env": {
        "HUNTER_API_KEY": "YOUR_HUNTER_API_KEY"
      }
    }
  }
}
```

For Claude Desktop, you can install and interact with it right away by running:
```
mcp install main.py -v HUNTER_API_KEY=YOUR_HUNTER_API_KEY
```

## 🔎 Example

![Hunter MCP in Claude Desktop](claude_desktop.png)

## 🚀 Available Tools

The Hunter MCP server provides access to various Hunter API endpoints as tools.

The current version offers the following tools:
- Domain Search
- Email Finder
- Email Verifier
- Email Enrichment
- Company Enrichment
- Lead Creation

**Note:** All the Hunter API endpoints are not supported, yet. This will be addressed in a future release.

## 🔑 License

This project is licensed under the MIT License; see the [LICENSE.md](https://github.com/hunter-io/hunter-mcp/blob/main/LICENSE.md) file for details.
pyeqx-common 0.1.2
Python library for common method use in PyEQX ecosystem.
Requires Python: >=3.12

# esbm-dis-dfts-pyeqx-common

This project is a common library for pyeqx projects.

## pre-requisites

to setup virtual environment to execute unit tests, it has to setup virtual env and install dependencies

```bash
# setup virtual env
python3.11 -m venv .venv

# activate virtual env
source .venv/bin/activate
```

## tests

to execute unit test run this command at root of the project

```bash
pytest -s
```

## build

to build the package run this command at root of the project

```bash
python3 -m pip install --upgrade build
python3 -m build
```

## extra

To update dependencies, execute below command

```python
pip3 list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1  | xargs -n1 pip3 install -U
```
napari-sphinx-theme 1.0.1
Bootstrap-based Sphinx theme from the napari community
Requires Python: >=3.10

# napari-sphinx-theme

[![Code style: Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/format.json)](https://github.com/astral-sh/ruff)

A Sphinx theme with the look and feel of napari based on the awesome
[pydata-sphinx-theme](https://github.com/pydata/pydata-sphinx-theme).

## Description

Since the napari-sphinx-theme extends the pydata-sphinx-theme,
the configurations and affordances provided by the
[PyData Sphinx Theme](https://pydata-sphinx-theme.readthedocs.io/en/latest/)
can be used within the [napari docs](https://github.com/napari/docs).

## Installation

After creating a virtual environment, install the theme in editable mode:

```bash
python -m pip install -e .
```

## Theme development

### Configuration options

Modify options in `theme.conf` to customize the `pydata-sphinx-theme` for napari.

### Styling (CSS)

Styling settings and napari's custom CSS is found in the
`static/css/napari-sphinx-theme.css` file.

The styling of code snippets is configured in `napari_sphinx_theme/napari_code_theme.py`.

### Templates (HTML)

To modify page layouts, modify the html template files in the `napari_sphinx_theme`
and `napari_sphinx_theme/partials` directories.

### Build and test

To build the demo site found in this repo, run:

```bash
cd docs/
make html
```

Use the demo site to manually test changes to styles and page layouts.

## The napari website

The [napari website](https://napari.org) is built using the
[napari docs repo](https://github.com/napari/docs).
The styling of the website is based on this theme.
Install this theme as a dependency in the napari docs repo.

To modify the website's styling, minor changes to CSS can be made in the docs
repo. More significant changes, such as those that may impact the entire
website and docs, should be made here.