semvec/pypi-packages huggingface dataset:
pyfcg 3.1
A Python port of Fluid Construction Grammar

# PyFCG

*A Python interface to FCG and Babel, built on FCG Go.*

<!-- start -->
## Installation

The Python integration of FCG (aka PyFCG) is distributed as a pip-installable package.
To install this package from PyPI, run the following command.

```bash
$ pip install pyfcg
```

## Use

Once pip-installed, PyFCG can readily be imported as a module into Python programs. 
It is customary to define `fcg` as an alias for the PyFCG module, so that all functionality is available within the `fcg` namespace (functions and variables are thereby prefixed with fcg.)

You initialise PyFCG as follows:

```python
>>> import pyfcg as fcg
>>> fcg.init()
```

Many FCG functions depend on the fcg-go precompiled binary, which you loaded (or download if necessary) by calling the `init()` function. 
On macOS, you will need to accept opening the application bundle by clicking "open" in the popup window.

**Example: Creating an FCG Agent**

The `Agent` class will usually be your main entry point. 
The idea is that an agent has a grammar (of type `Grammar`), which in turn holds constructions (of type `Construction`). 
In PyFCG, a grammar will always be tied to an agent.
Upon creation, an agent is automatically initialised with an empty grammar, i.e. a grammar that holds zero constructions.

```python
>>> demo_agent = fcg.Agent()

>>> demo_agent
<Agent: agent (id: agent-42) ~ 0 constructions>

>>> demo_agent.grammar.size()
0
```

<!-- walkthrough-tutorials -->
## Walkthrough Tutorials

A more in-depth showcase of PyFCG's functionalities can be found in the following interactive notebooks.
Each of them walks you through the process of integrating PyFCG in a typical use case of FCG.

- Tutorial 1: [Grammar Formalisation and Testing](https://gitlab.ai.vub.ac.be/ehai/pyfcg/-/blob/main/docs/source/walkthrough_tutorials/grammar_writing.ipynb?ref_type=heads)
- Tutorial 2: [Learning Grammars from Corpora](https://gitlab.ai.vub.ac.be/ehai/pyfcg/-/blob/main/docs/source/walkthrough_tutorials/learning_grammars.ipynb?ref_type=heads)
- Tutorial 3: [The Canonical Naming Game](https://gitlab.ai.vub.ac.be/ehai/pyfcg/-/blob/main/docs/source/walkthrough_tutorials/naming_game.ipynb?ref_type=heads)
- Tutorial 4: [Modelling Emergent Communication](https://gitlab.ai.vub.ac.be/ehai/pyfcg/-/blob/main/docs/source/walkthrough_tutorials/grounded_naming_game.ipynb?ref_type=heads)



## Documentation

The tecnical documentation of PyFCG is available at [Read the Docs](https://pyfcg.readthedocs.io).

<!-- how-to-cite -->
## How to Cite

<!-- Van Eecke, P., & Beuls, K. (2025). [PyFCG: Fluid Construction Grammar in Python](https://arxiv.org/abs/2505.12920). *arXiv preprint*.

```bibtex
@article{vaneecke2025pyfcg,
    author = {Paul {Van Eecke} and Katrien Beuls},
    title = {PyFCG: Fluid Construction Grammar in Python},
    year = {2025},
    journal = {arXiv preprint arXiv:},
    doi = {10.48550/arXiv.2505.12920},
}
```
-->
Temporarily anonymised for reviewing purposes (but ArXiv's your friend).
gaiaengine 0.6.1
Lightweight and easy-to-use Python framework for creating interactive visual simulations. The project is still in development and not ready for release

Gaia Engine is a lightweight Python framework for creating interactive visual simulations, designed to be easy to learn and use. With a top-down perspective, animated 2D sprites, and a 3D terrain heightmap, it lets audiences explore dynamic systems in an environment inspired by real-time strategy video games. The project is still in development and not ready for release
django-uuid47 0.1.0
Django UUID47 field and utilities.
Requires Python: >=3.14
Keywords: Django

=============
django-uuid47
=============

.. image:: https://img.shields.io/github/actions/workflow/status/MarkusH/django-uuid47/main.yml.svg?branch=main&style=for-the-badge
   :target: https://github.com/MarkusH/django-uuid47/actions?workflow=CI

.. image:: https://img.shields.io/badge/Coverage-100%25-success?style=for-the-badge
  :target: https://github.com/MarkusH/django-uuid47/actions?workflow=CI

.. image:: https://img.shields.io/pypi/v/django-uuid47.svg?style=for-the-badge
   :target: https://pypi.org/project/django-uuid47/

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg?style=for-the-badge
   :target: https://github.com/psf/black

.. image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white&style=for-the-badge
   :target: https://github.com/pre-commit/pre-commit
   :alt: pre-commit

Django support for `UUID47 <https://github.com/stateless-me/uuidv47>`__.

----

Requirements
------------

Python 3.9 to 3.14 supported.

Django 4.2 to 6.0 supported.

Installation
------------

Install with **pip**:

.. code-block:: sh

    python -m pip install django-uuid47

Then add to your installed apps:

.. code-block:: python

    INSTALLED_APPS = [
        ...,
        "django_uuid47",
        ...,
    ]

Next, define the setting ``UUID47_KEY`` as a 16 bytes long string for encryption of the UUIDs.

To generate a secret, use the ``token_bytes()`` function from the ``secrets`` stdlib module in a Python shell:

.. code-block:: python

    import secrets

    secrets.token_bytes(16)
    b"h\xd0\x0c\x9f\xfa\x99\xf75\x89J\x9c\xbe>l\x97\xf5"

Then, in the ``settings.py``:

.. code-block:: python

    UUID47_KEY = b"h\xd0\x0c\x9f\xfa\x99\xf75\x89J\x9c\xbe>l\x97\xf5"

Usage
-----

In models, use the ``django_uuid47.fields.UUID47Field()`` model field, like a regular model field.

In forms, use the ``django_uuid47.forms.UUID47Field()`` form field, like a regular form field.
qltool 0.2.4
PRINT simple labels on ql700
Requires Python: >=3.10

# qltool 0.1.14

*tool to print some useful stuff with ql700 brother printer*

-   It is just a wrapper around the great `ql570.c` of Asbjørn Sloth
    Tønnesen, Marc Juul and Luca Zimmermann

## Installation

``` {.bash org-language="sh"}
pip3 install qltool
```

## Usage - standard print

``` {.bash org-language="sh"}
#---------text
 rm /tmp/tmp_qrcode.png ; uv run src/qltool/main.py "Ahoj
aaa
456 8jgqy 789 456 456 " --font-size 55 --font-size 45

# ---- create QR

uv run src/qltool/main.py "ahoj
momo
123 456 789 jjj" -p -q

# -------- use any image/qrcode
uv run src/qltool/main.py "Užaj jetů" --qr /tmp/baba.png

uv run src/qltool/main.py "Už je tuná" --qr /tmp/baba.png -p
```

## Using mqtt client

`qltool_client`

``` {.bash org-language="sh"}
# DO
qltool_client # somewhere...
### examples:
export D=`date +"%H:%M:%S"`; mosquitto_pub -t qltool/print -m "hoho $D -q -p"

# blocking...
mosquitto_pub -t qltool/print -m "hoho secondline thirdline  -q "

#  NEVER USE THIS:
watch -n 10 'export D=`date +"%H:%M:%S"`; mosquitto_pub -t qltool/print -m "\"hoho asdas\" \"jeli $D\"  -q "'
```

## Org-mode inventory - broken now

If this function is somewhere in the `.emacs` configfiles ...

It selects two fields fromthe TABLE and puts -q option.

You point to a line of a table and `c-c q`{.verbatim} or
`c-c w`{.verbatim} will view/print the code for inventory.

  whatever   id            name                        owner   location
  ---------- ------------- --------------------------- ------- ----------
  123        D4-12345678   najaka blbost z inventury   Pepa    Home

and this is run
`./bin_qltool.py "id: D4-12345678; name: najaka blbost z inventury  owner:Pepa " -q`
nonebot-plugin-daily-bing 1.0.1
NoneBot 每日必应壁纸
Requires Python: <4.0,>=3.10

<!-- markdownlint-disable MD033 MD036 MD041 -->

<div align="center">

<a href="https://v2.nonebot.dev/store">
  <img src="https://raw.githubusercontent.com/A-kirami/nonebot-plugin-template/resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo">
</a>

<p>
  <img src="https://raw.githubusercontent.com/lgc-NB2Dev/readme/main/template/plugin.svg" alt="NoneBotPluginText">
</p>

# nonebot-plugin-daily-bing

_✨ 每日必应壁纸 ✨_

![License](https://img.shields.io/pypi/l/nonebot-plugin-daily-bing)
![PyPI](https://img.shields.io/pypi/v/nonebot-plugin-daily-bing.svg)
![Python](https://img.shields.io/badge/python-3.10+-blue.svg)  
[![NoneBot Registry](https://img.shields.io/endpoint?url=https%3A%2F%2Fnbbdg.lgc2333.top%2Fplugin%2Fnonebot-plugin-daily-bing)](https://registry.nonebot.dev/plugin/nonebot-plugin-daily-bing:nonebot_plugin_daily-bing)
[![Supported Adapters](https://img.shields.io/endpoint?url=https%3A%2F%2Fnbbdg.lgc2333.top%2Fplugin-adapters%2Fnonebot-plugin-alconna)](https://registry.nonebot.dev/plugin/nonebot-plugin-alconna:nonebot_plugin_alconna)

</div>


## 安装
使用nb-cli [推荐]
```shell
nb plugin install nonebot-plugin-daily-bing
```
使用pip
```shell
pip install nonebot-plugin-daily-bing
```

## 使用
命令需要加 [NoneBot 命令前缀](https://nonebot.dev/docs/appendices/config#command-start-和-command-separator) (默认为`/`)  
命令需要用户为 [SuperUsers](https://nonebot.dev/docs/appendices/config#superusers)  
使用命令`daily_bing`/`每日必应`触发插件  
命令选项`状态` 查询定时任务状态  
命令选项`关闭` 关闭定时任务  
命令选项`开启` 开启定时任务  

[以下命令无需用户为[SuperUsers](https://nonebot.dev/docs/appendices/config#superusers)]  
使用命令`今日必应壁纸`获取今日必应壁纸  
使用命令`随机必应壁纸`随机获得必应壁纸  


## 配置项

配置方式：直接在 NoneBot 全局配置文件中添加以下配置项即可

### daily_bing_default_send_time [选填]

- 类型：`str`
- 默认值：`13:00`
- 说明：每日必应壁纸的默认发送时间

### daily_bing_hd_image [选填]

- 类型：`bool`
- 默认值：`False`
- 说明：是否启用高清必应壁纸

### daily_bing_infopuzzle [选填]

- 类型：`bool`
- 默认值：`False`
- 说明：是否启用必应壁纸拼图

### daily_bing_infopuzzle_dark_mode [选填]

- 类型：`bool`
- 默认值：`False`
- 说明：是否使用暗色模式的必应壁纸拼图