semvec/pypi-packages huggingface dataset:
cdp-chrome-tabs 0.1.0
A Python package to interact with Chrome tabs via Chrome DevTools Protocol
Requires Python: >=3.6
Keywords: chrome, browser, devtools, automation, cdp

# CDP Chrome Tabs

A Python package for interacting with Chrome tabs via the Chrome DevTools Protocol.

## Installation

```bash
pip install cdp-chrome-tabs
```

Or install from source:

```bash
git clone https://github.com/guocity/cdp-chrome-tabs.git
cd cdp-chrome-tabs
pip install -e .
```

## Prerequisites

For this package to work, Chrome must be running with remote debugging enabled. You can start Chrome with:

```bash
# On macOS
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222

# On Windows
"C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222

# On Linux
google-chrome --remote-debugging-port=9222
```

## Usage

```python
from cdp_chrome_tabs import ChromeTabs


# one line print active tab
print(f"Active Tab URL: {ChromeTabs().get_active_tab().url if ChromeTabs().get_active_tab() else 'No active tab'}")

# Get all tabs
tabs = chrome.get_all_tabs()
for tab in tabs:
    print(f"Tab ID: {tab.id}")
    print(f"Title: {tab.title}")
    print(f"URL: {tab.url}")
    print("---")

# Get the active tab
active_tab = chrome.get_active_tab()
if active_tab:
    print(f"Active tab: {active_tab.title} - {active_tab.url}")

# Find a tab by ID
tab = chrome.get_tab_by_id("some-tab-id")

# Find a tab by URL (exact match)
tab = chrome.get_tab_by_url("https://www.example.com")

# Find a tab by URL (partial match)
tab = chrome.get_tab_by_url("example.com", partial_match=True)
```

## License

MIT
resourcetools 1.0.0
A lightweight Python package for managing application resources (icons, images, translations, etc.) in a clean, importlib-compatible way — ideal for PySide6 and other GUI or CLI apps.
Requires Python: >=3.9

# resourcetools

A lightweight Python package for managing application resources (icons, images, translations, etc.) using `importlib.resources`.

Ideal for PySide6 and other GUI or CLI applications.

## 🔧 Features

- Safe, Pythonic access to resource files inside packages
- Uses `importlib.resources` (Python 3.9+)
- Extensible `ResourceGetter` class
- Supports logical grouping (e.g. icons, images, translations)
- Compatible with zipped packages, wheels, and editable installs
- Designed to support PySide6/Qt apps, but fully framework-agnostic

## 📦 Installation

```bash
pip install resourcetools
```

## 🚀 Usage

### 1. Structure your local resources

Your application should have a structure like:

```
your_app/
└── resources/
    ├── __init__.py
    ├── icons/
    ├── images/
    └── translations/
```

Only `__init__.py` in `resources/` is required to make it a proper package.
No code logic is needed in resources/ — just the files.

### 2. Initialize `resourcetools` in your app

```python
# your_app/app.py
import resourcetools

import your_app.resources as app_resources


resourcetools.initialize(resource_package=app_resources)
```

### 3. Use resource getters to access files

```python
import importlib.resources

from PySide6.QtGui import QPixmap
from resourcetools import Image

with importlib.resources.as_file(Image("image.png")) as real_path:
            pixmap: QPixmap = QPixmap(str(real_path))

```

## 📚 API Reference

initialize(resource_package: ModuleType)

Sets the base resource package to use for Icon, Image, and Translations.

Icon(filename: str) -> Traversable

Returns a Traversable object (e.g. file path) to an icon file.

Same for:

    Image(filename: str)

    Translations(filename: str)

## ✅ Why `importlib.resources`?

- Built into the Python standard library
- Zip-safe (works with packages in wheels or zipapps)
- Avoids hardcoded filesystem paths

## 🧪 Compatibility

- Python 3.9+
- Works with importlib.resources standard API
- No external dependencies

## 📜 License

MIT License
mlte-python 1.0.3
An infrastructure for machine learning test and evaluation.
Requires Python: <3.12,>=3.9.1

# `MLTE`: Machine Learning Test and Evaluation

<img src="https://raw.githubusercontent.com/mlte-team/mlte/master/assets/MLTE_Logo_Color.svg" alt="mlte_logo" width="150"/>

## `MLTE` has moved to a new <a href="https://pypi.org/project/mlte/" target="_blank">package name</a>!

Previously published as mlte-python, `MLTE` is now published as "mlte" on <a href="https://pypi.org/project/mlte/" target="_blank">PyPI</a>. `MLTE` (pronounced "melt") is a framework and infrastructure for machine learning evaluation. The page you are viewing is a deprecated version of the Python package.

### `MLTE` <a href="https://pypi.org/project/mlte/" target="_blank">PyPI</a>
### `MLTE` <a href="https://github.com/mlte-team/mlte" target="_blank">GitHub</a> 

### `MLTE` <a href="https://mlte.readthedocs.io/en/latest/" target="_blank">Documentation</a>
django-jinja-render-block 0.3.0
Render the content of a specific block tag from a Jinja2 template.
Requires Python: >=3.13

# django-jinja-render-block

[![pypi](https://img.shields.io/pypi/v/django-jinja-render-block.svg)](https://pypi.org/project/django-jinja-render-block/)

This project aims to bring the super ergomomic partial template rendering of [django-template-partials](https://github.com/carltongibson/django-template-partials) to [django-jinja](https://github.com/niwinz/django-jinja). It's a bit more limited in scope though: instead of allowing you to define reusable (inline) template partials using `{% partialdef partial-name %}`, it limits itself to rendering a block within a template, ala [django-render-block](https://github.com/clokep/django-render-block).

TL;DR: you can render just a block using a template name such as `template-name.jinja#block-name`.

## Installation

```shell
uv add django-jinja-render-block
```

Then use its template backend, instead of the one from django-ninja:

```python
TEMPLATES = [
    {
        "BACKEND": "render_block.backend.Jinja2", # <- instead of "django_jinja.jinja2.Jinja2"
        "DIRS": [],
        "APP_DIRS": True,
        "OPTIONS": {
            # ...
        },
    },
]
```

## Usage

Define a block in your Jinja template:

```jinja
{% extends "base.jinja" %}

{% block body %}
<h1>HOME</h1>

{% block test-partial %}
<p>Partial block content</p>
{% endblock %}

<p>Lorum ipsum</p>
{% endblock %}
```

And in your view code you use the template name plus the partial block name, like so:

```python
class ExamplePartialView(TemplateView):
    template_name = "example.jinja#test-partial"
```

This is extremely useful in combination with HTMX:

```python
def example_view(request):
    template_name = "example.jinja"
    if request.htmx:
        template_name += "#test-partial"

    return TemplateResponse(request, template_name)
```

> _`request.htmx` comes from [django-htmx](https://github.com/adamchainz/django-htmx)_

## Thanks to

- https://github.com/carltongibson/django-template-partials for the initial idea. I love the way it allows you to render a partial template just by appending the partial name to the template name. It only works with the Django Template Language though.
- https://github.com/clokep/django-render-block for showing me how to render a single block out of a template.
HTTPyServer 1.0.1
A package to create your python HTTP server with no effort
Requires Python: >=3.9

# HTTPyServer

`HTTPyServer` is a package designed to help in the development of
simple HTTP servers using Python. It lets you connect to your MongoDB
database and handle requests binded to your DB.

## HTTP Requests Handling

You can handle the HTTP requests after initialazing your `Server` instance.

The `Server` class takes 2 arguments: 

- *`address (str)`*: The server address, formatted like `"host:port"`
- *`root (Path)`*: The absolute path of the root folder of your server (Which can be obtained with `Path.cwd()`).

This class has methods that will allow you to register some handlers (callbacks) that follow some specific conventions:

- These methods are called by the `Server.[Method]` format, just like 
`Server.GET`, `Server.POST`, etc.
- They all accept the following args:

    - *`path (str)`*: The server path where this handler will be called.
    - *`handler ((RequestData) -> Basic_Response)`*: The callback that will handle the upcoming requests.

### `Server.GET`: An example
This method is used to register a GET handler that will be called when a GET
request is received by the HTTP server. Example:

```python
my_server = Server("localhost:8080", Path.cwd())

DB_Mongo("somemongodburi", "my_database_name") 
# Initializes your Mongo Database and allows all the handlers to work properly.

def home (request_data):
    res = Basic_GET_Response("main.html") # File in the same folder as this script
    res.send_file() # Sends the file contents to the response contents
    return res

def get_all_users (request_data):
    res = Basic_GET_Response("users-collection") # Collection of the MongoDB database
    res.send_db({}) # Sends a query to the collection and writes the response contents
    return res

my_server.GET("/", home)
my_server.GET("/users", get_all_users)

my_server.start()
```

MIT License

Copyright (c) 2025 Omar David Méndez Montiel

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
complex-lib-for-joskiytest 0.1.0
Демонстрация сложной структуры Python-пакета
Requires Python: >=3.6

# Complex Library

Демонстрационная библиотека со сложной структурой пакетов для изучения организации Python-библиотек.

## Установка

```bash
pip install complex_lib
```

## Использование

```python
# Импорт основных компонентов
from complex_lib import main_function, VERSION

# Импорт из подмодулей
from complex_lib.core import core_function
from complex_lib.utils import helper_function

# Использование классов
from complex_lib.models import BaseModel, AdvancedModel
```

## Структура пакета

```
complex_lib/
├── __init__.py
├── core/
│   ├── __init__.py
│   ├── base.py
│   └── extended.py
├── utils/
│   ├── __init__.py
│   ├── helpers.py
│   └── validators.py
└── models/
    ├── __init__.py
    ├── base_model.py
    └── advanced_model.py
```