semvec/pypi-packages huggingface dataset:
supertime 0.0.3
A living example of superfunctions
Requires Python: >=3.8
Keywords: context-aware functions, superfunctions, transfunctions, example

# supertime: a living example of the superfunctions

[![Downloads](https://static.pepy.tech/badge/supertime/month)](https://pepy.tech/project/supertime)
[![Downloads](https://static.pepy.tech/badge/supertime)](https://pepy.tech/project/supertime)
[![Coverage Status](https://coveralls.io/repos/github/pomponchik/supertime/badge.svg?branch=main)](https://coveralls.io/github/pomponchik/supertime?branch=main)
[![Lines of code](https://sloc.xyz/github/pomponchik/supertime/?category=code)](https://github.com/boyter/scc/)
[![Hits-of-Code](https://hitsofcode.com/github/pomponchik/supertime?branch=main)](https://hitsofcode.com/github/pomponchik/supertime/view?branch=main)
[![Test-Package](https://github.com/pomponchik/supertime/actions/workflows/tests_and_coverage.yml/badge.svg)](https://github.com/pomponchik/supertime/actions/workflows/tests_and_coverage.yml)
[![Python versions](https://img.shields.io/pypi/pyversions/supertime.svg)](https://pypi.python.org/pypi/supertime)
[![PyPI version](https://badge.fury.io/py/supertime.svg)](https://badge.fury.io/py/supertime)
[![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)


The [transfunctions](https://github.com/pomponchik/transfunctions) library introduces a new type of function: `superfunction`. They can behave both as regular and asynchronous functions, depending on the context, that is, on how the user uses them. This micro-library demonstrates the smallest example of this concept that I could come up with.

Install it:

```bash
pip install supertime
```

And try:

```python
from asyncio import run
from supertime import supersleep

supersleep(5)  # sleeps 5 sec.
run(supersleep(5))  # sleeps 5 sec., but ASYNCHRONOUSLY.
```

As you can see, the superfunction can automatically adjust to how the calling code uses it.
uci-net 1.2.8
Universal Chess Interface client-server conversation.

===============================
Universal Chess Interface (UCI)
===============================

.. contents::


Description
===========

This package provides a pure Python client-server `Universal Chess Interface`_ to a chess engine intended for analysing positions rather than playing games.


Installation Instructions
=========================

This package is available on PyPI so can be installed by typing

   python -m pip install --user uci-net

at the command prompt.

See `Python`_ and `pip`_ documentation for alternatives and platform-specific points.


Run
===

The command to run the server is:

   python -m uci_net.tcp_driver [port] [allowed callers] path [options]

A path to a UCI chess engine must be given.

See chess engine documentation for options.

By default anyone is allowed to use the server, subject to firewall restrictions.  A comma separated list of hostnames in <allowed callers> prevents hosts not in the list from using the server.

Conections to the server are made on port 'port'.  The default is 11111.

Assuming a hostname 'stockfishbox' with IP address 192.168.0.1 and the default port, suitable engine definition records in `ChessTab`_ are:

   '//stockfishbox:11111?name=Stockfish 12' or
   '//192.168.0.1:11111?name=Stockfish 12'.

The record says 'name=Stockfish 12' because 'Stockfish 12' is the 'id name' value returned by Stockfish 12 in response to the 'uci' command.

The client is run by applications such as `ChessTab`_ when required.


Notes
=====

Project name and package name changed from 'uci' to 'uci-net' prior to upload to PyPI.

The version numbers of uci-net continue on from uci.


.. _Python: https://python.org
.. _pip: https://packaging.python.org/installing
.. _Universal Chess Interface: https://en.wikipedia.org/wiki/Universal_Chess_Interface
.. _ChessTab: http://www.solentware.co.uk/download.html
solentware-misc 1.7.2
Classes perhaps useful beyond original application.

========================
Miscellaneous Components
========================

.. contents::


Description
===========

This package contains a number of modules which do not have an obvious home in an existing sibling package, or have been kept separate deliberately.

   Main package (solentware_misc).

   workarounds subpackage.

      * dialogues.py - wrappers for messagebox and filedialog functions.
      * workarounds.py - workarounds for problems met in Tkinter functions.

   core subpackage.

      * callthreadqueue.py - run methods from a queue in a thread.
      * configuration.py - access and update configuration file items.
      * getconfigurationitem.py - get item from configuration file.
      * null.py - Null object from Python Cookbook.
      * utilities.py - Some name and date methods.

   gui subpackage.

      * colourslider.py - widget for choosing colours.
      * configuredialogue.py - widgets for editing configuration files.
      * dialogue.py - widgets for dialogues and reports.
      * fontchooser.py - widget for selecting fonts.
      * frame.py - customised Tkinter.Frame widget for notebook style GUI.
      * help.py - create widgets to display help files.
      * logpanel.py - widgets for displaying task logs.
      * logtextbase.py - widgets for displaying background task logs.
      * panel.py - customised Tkinter.Frame widget for notebook style GUI.
      * reports.py - customised Tkinter.Toplevel for reports and dialogues.
      * startstop.py - functions for application start, stop, and exceptions.
      * tasklog.py - run task in thread and report progress.
      * textentry.py - customised Tkinter.Text widget.
      * textreadonly.py - customised Tkinter.Text widget.
      * texttab.py - customised Tkinter.Text widget.
      * threadqueue.py - add api.callthreadqueue to gui.frame.


Installation Instructions
=========================

This package is available on PyPI so can be installed by typing

   python -m pip install --user solentware-misc

at the command prompt.

See `Python`_ and `pip`_ documentation for alternatives and platform-specific points.


Notes
=====

The frame, panel, logpanel,and threadqueue, modules are obsolete given the addition of ttk:notebook to tk after Tk8.4 and access via tkinter.


.. _Python: https://python.org
.. _pip: https://packaging.python.org/installing
solentware-grid 3.0.2
Database display classes.

========================
Database display classes
========================

.. contents::


Description
===========

This package provides a grid to display a scrollable list of records from a database accessed using the `solentware-base`_ package.


Installation Instructions
=========================

This package is available on PyPI so can be installed by typing

   python -m pip install --user solentware-grid

at the command prompt.

See `Python`_ and `pip`_ documentation for alternatives and platform-specific points.


Notes
=====

This package was written because I could not find something which behaved like a Delphi DBGrid, as remembered from the late 1990s.


.. _Python: https://python.org
.. _pip: https://packaging.python.org/installing
.. _solentware-base: http://solentware.co.uk/components.html
solentware-bind 1.0.3
Bind and exception handling for tkinter callbacks.

=============================
Event bindings and exceptions
=============================

.. contents::


Description
===========

This package provides wrappers to catch exceptions in `tkinter`_ callbacks and use the identifiers returned by tkinter bind and tag_bind methods to avoid memory leaks.  The `idlelib`_ module provided examples to follow.


Installation Instructions
=========================

This package is available on PyPI so can be installed by typing

   python -m pip install --user solentware-misc

at the command prompt.

See `Python`_ and `pip`_ documentation for alternatives and platform-specific points.


Notes
=====

The docstring for tkinter.Misc.bind() states, at Python 3.9.14, "Bind will return an identifier to allow deletion of the bound function with unbind without memory leak.".

The docstrings for tkinter.Misc.bind_all(), tkinter.Misc.bind_class(), tkinter.Canvas.tag_bind(), and tkinter.Text.tag_bind(), refer to the docstring for tkinter.Misc.bind().

Wrappers for tkinter.Misc.bind_all() and tkinter.Misc.bind_class() are not provided.

The solentware_bind project exists to avoid solentware_base and solentware_grid depending on each other.  The exceptionhandler and gridbindings modules were in solentware_misc before the bindings module was added.


.. _tkinter: https://python.org
.. _Python: https://python.org
.. _idlelib: https://python.org
.. _pip: https://packaging.python.org/installing
chessql 3.0.2
Chess Query Language (cql) parser.

=================================
Chess Query Language (CQL) parser
=================================

.. contents::


Description
===========

This package provides a parser for Chess Query Language (`CQL`_).

The documentation for `CQL version 6.0.4`_ as found in first half of 2020, plus `CQL version 6.1`_ and `CQL version 6.2`_ as found in mid-2024, was used as a reference.

`CQLi`_ provides an alternative implementation of CQL-6.1 and a '-parse' option which gives output more easily compared with ChessQL output.

This package does not implement an evaluator to find games in a `PGN`_ file which match a query.


Installation Instructions
=========================

This package is available on PyPI so can be installed by typing

   python -m pip install --user chessql

at the command prompt.

See `Python`_ and `pip`_ documentation for alternatives and platform-specific points.


Use
===

Function core.parser.parse(<string>) returns a QueryContainer instance with the result of parsing a string usually read from a <*>.cql file.

Function core.parser.parse_command_line_query() returns a QueryContainer instance with the result of parsing a command line usually passed to the CQL executable.


Notes
=====

Version 3.0 of Chessql is incompatible with earlier versions.

An evaluator for some CQL constructs is implemented in `ChessTab`_.


.. _Python: https://python.org
.. _pip: https://packaging.python.org/installing
.. _CQL: http://www.gadycosteff.com
.. _PGN: http://www6.chessclub/help/PGN-spec
.. _CQL version 6.0.4: http://www.gadycosteff.com/cql-0-4
.. _CQL version 6.1: http://www.gadycosteff.com/cql-6.1
.. _CQL version 6.2: http://www.gadycosteff.com/cql
.. _CQLi: https://cql64.com
.. _ChessTab: http://www.solentware.co.uk/download.html
code-fixer 0.1.16
Code-fixer is the error handler library and help to detect the error and after detect the error give the solution of error.
Requires Python: >=3.11

# ErrorHandler-AI

Python error handler library with UV and Rich, provides AI-powered suggestions for fixing errors in user code. Uses OpenAI for error cause analysis and solution output. Styled suggestions are shown in the terminal using Rich.

---

## Table of Contents

- [Overview](#overview)
- [Installation](#installation)
- [Quickstart](#quickstart)
- [Decorator Usage](#decorator-usage)


---

## Overview

ErrorHandler-AI provides a decorator that lets you catch and explain Python errors in your functions automatically. If an error occurs, the library uses OpenAI to analyze the cause and suggest a fix. Output is neatly formatted in your terminal using Rich panels for easy readability.

**Main features:**

- Catches Python errors in user code (decorator-based)
- AI-powered error cause and fix suggestions
- Rich terminal output with styled panels
- Customizable with environment variables

---

## Installation

Install via pip:

```
pip install code-fixer==0.1.14
```

Set your OpenAI API key and other environment variables in a `.env` file:
```
API_KEY=your-api-key
BASE_URL=your-openai-base-url # optional
INSTRUCTION=Explain the error in more detail with examples. # optional
```


---

## Quickstart

Add the decorator to your function:

```
from errorhandler_ai import catch

@catch
def divide(x, y):
return x / y

divide(10, 0) # Triggers error handler
```



When an error is raised, you'll see:

- Error type and info (bold red panel)
- AI-analyzed cause (red panel)
- AI fix suggestion (green panel)

---

## Decorator Usage

Use the `@catch` decorator to wrap any function you want to monitor for errors: