semvec/pypi-packages huggingface dataset:
py-dict-client 0.2.0
A client implementing the Dictionary Server Protocol (DICT)
Requires Python: >=3
Keywords: dictionary language definition server client

# py-dict-client 0.1.6

`py-dict-client` is a Python 3 client implementing the [Dictionary Server Protocol](https://tools.ietf.org/html/rfc2229).


## Installation

`$ pip install py-dict-client`


## Usage

    >>> from dictionary_client import DictionaryClient
    >>> dc = DictionaryClient()
    
    >>> dc.databases
    {'fra-eng': 'French-English FreeDict Dictionary ver. 0.4.1',
     'eng-fra': 'English-French FreeDict Dictionary ver. 0.1.6',
     'wn': 'WordNet (r) 3.1 (2011)',
     'foldoc': 'The Free On-line Dictionary of Computing (2020-04-05)'}
    
    >>> dc.define('oiseau', db='fra-eng').content
    [{'db': 'fra-eng', 'definition': 'oiseau /wazo/ <n, masc>\nbird'}]
    
    >>> dc.define('chauffeur').content
    [{'db': 'fra-eng', 'definition': 'chauffeur /ʃofœʀ/ <n, masc>\nchauffeur, driver'},
     {'db': 'eng-fra', 'definition': 'chauffeur /ʃoufər/\nchauffeur'},
     {'db': 'wn', 'definition': 'chauffeur\n    n 1: a man paid to drive a privately owned car\n...'}]
    
    >>> dc.match('hello').content
    defaultdict(<class 'list'>, {'eng-fra': ['hello'], 'wn': ['hello'], 'foldoc': ['hello']})
    
    >>> dc.disconnect()


## Contributing

Contributions are welcome. Please format your code with black, and add/improve tests where suitable.

To run the tests: `$ make test`


## TODO implement remaining commands in specification 

-   [X] STATUS
-   [X] SHOW INFO
-   [X] SHOW SERVER
-   [X] HELP
-   [ ] OPTION
-   [ ] AUTH
-   [ ] SASLAUTH
pyzr 0.0.4
A simple tools package
Requires Python: >=3.6

# tools Package
***

## alert 模块
###可用于qywx报警/通知  
from pyzr import Alert  
alert= Alert(name='test', url='https://xxxxxx')  
参数：  
name      报警描述，必传  
url       报警链接，必传  
delay     是否降低报警频率，可选，默认值为 False  
interval  报警频率间隔，可选，在delay为True时才能生效，默认值为 10 (单位：s)  

包含四个方法:  
alert.error('test...')  
alert.warning('test...')  
alert.info('test...')  
alert.statistics('test...')  

***

## phone 模块
###可用于电话告警  
from pyzr import Phone  
phone= Phone(uid='xxxx', url='https://xxxxxx', token='xxxxx', model_code='xxxxx')  
参数：  
uid         创建人id，必传  
url         电话告警链接，必传  
token       电话告警token，必传  
model_code  电话告警模版编号，必传  

包含一个方法:  
phone.alter_phone(mobiles, data)  
参数:  
mobiles   告警发给的人，发给多人使用 list 或 以英文逗号隔开的 str，例如: '18xxx' or '181xxx,182xxx'  
data      电话告警内容，type: dict, 例如: {"system": "xx平台", "server": "xx系统", "error": "xxx", "level": "p0"}
restit 0.3.2
HTTP REST library including OOP-readiness and Open-API generation

RestIt
======

.. image:: https://readthedocs.org/projects/restit/badge/?version=latest
   :target: https://restit.readthedocs.io/en/latest/?badge=latest

.. image:: https://coveralls.io/repos/github/Rollmops/restit/badge.svg?branch=master
   :target: https://coveralls.io/github/Rollmops/restit?branch=master

.. image:: https://github.com/Rollmops/restit/workflows/Python%20package/badge.svg
   :target: https://github.com/Rollmops/restit/workflows/Python%20package/badge.svg

Python HTTP REST library including OOP-readiness and Open-API generation

For a more comprehensive documentation see: https://restit.readthedocs.io/en/latest/

Features
--------

- `WSGI <https://www.python.org/dev/peps/pep-3333/>`_ conform
- Validation (using `marshmallow <https://marshmallow.readthedocs.io/en/stable/>`_)
    - query parameter validation
    - path parameter validation
    - request body validation
    - response body validation
- `OpenApi <https://swagger.io/docs/specification/about/>`_ documentation generation
- *OOP*-ready (no module-based global instances necessary)
- Easy hyperlink generation
- Exception mapping
- Response serialization customization
- Request deserialization customization
- Easy to test

Quick example
-------------

.. code-block:: python

    from restit import Request, Resource, Response, RestItApp
    from restit.decorator import path


    @path("/")
    class IndexResource(Resource):
        def get(self, request: Request) -> Response:
            return Response("Hello from index.")


    app = RestItApp(resources=[IndexResource()])


    if __name__ == "__main__":
        # start a development server on http://127.0.0.1:5000
        app.start_development_server()


You can also use a production-ready server like `Gunicorn <https://gunicorn.org/>`_
(given the name of the above module is `restit_app_test.py`):

.. code-block:: bash

    gunicorn -w 4 restit_app_test:app
hgen 1.0.5
a tool to inject prototypes into header from c files
Requires Python: >=3.8.2

# hgen

## Introduction

![showcase](https://user-images.githubusercontent.com/83401142/144825570-210f51ed-ddfc-4a14-b84a-10db1aac8563.gif)

Injects c function prototypes(BSD-style) into header.

limitations
- cannot capture multi-line function prototypes
- cannot capture K&R style definitions
- breaks when function does not work with norminette
## Usage

`hgen [-h] -I header.h src.c [src/ ...] [-c path]`

your header should have flags that

- begins with: `@func` or `@function(s)` at your comment
- ends with: `#endif` or `@end` or multiple `=` (ex:`== some identifier ==`)

### examples

```c
//	@func
//	@end
```

```c
#ifndef HEAD_H
# define HEAD_H

//	===== @functions =====
#endif
```

## Plans

- refactors
- json based configuration
- support K&R style function definitions
- support multiline function definitions
conway-pygame 0.3.0
Conway's Game of Life in Pygame
Keywords: conway,game,life,pygame

# Conway's game of life

This is an implementation of the Conway's game of life using pygame.

![Immigration Game Of Life](./.images/Immigration.png)

The Universe is circular : left border touch the right one, top border touch the bottom one.

Many games are implemented, the rules come from [https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life](https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life).

I've only implemented "simple" games, using the 8 cells around the current cell.

## Available Games
+ [conway classic](https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life)
+ [HighLife](https://en.wikipedia.org/wiki/Highlife_(cellular_automaton))
+ [Day&Night](https://en.wikipedia.org/wiki/Day_and_Night_(cellular_automaton))
+ [Immigration](https://fr.wikipedia.org/wiki/Immigration_(automate_cellulaire)) (With colors !)
+ [QuadLife](https://fr.wikipedia.org/wiki/QuadLife) (more colors !)
+ [Life without death (Flakes)](https://en.wikipedia.org/wiki/Life_without_Death)
+ 34 Life B34/S34
+ [Seeds](https://en.wikipedia.org/wiki/Seeds_(cellular_automaton))
+ Diamoeba B35678/S5678
+ 2x2 B36/S125
+ Morley B368/S245
+ Anneal B4678/S35678


## Installation

### Using pip

```shell
$ cd /path/to/the/projects
$ mkdir Conway && cd Conway
python3 -m venv ./venv
source ./venv/bin/activate
pip install conway-pygame
```

When installed with pip, you can use the `conway_pygame` command to play a game.

### Installation with git
```shell
$ git clone https://gitlab.com/frague59/conway.git
$ cd conway
$ python3 -m venv ./venv
$ . venv/bin/activate
$ pip install -r ./requirements.txt
```

## Usage

### With GIT install
```shell
$ python3 -m conway_pygame --help
pygame 2.1.2 (SDL 2.0.16, Python 3.9.12)
Hello from the pygame community. https://www.pygame.org/contribute.html
Usage: python -m conway_pygame [OPTIONS] [[conway|highlife|dayandnight|immigra
                               tion|quadlife|replicator|flakes|34life|diamoeba
                               |seeds|2x2|morley|anneal]]

  Conway's game of life using `pygame <https://www.pygame.org/>`_.

Options:
  -w, --width INTEGER    Width of the grid.
  -h, --height INTEGER   Height of the grid.
  -n, --initial INTEGER  Number of living cells at start.
  -d, --debug            DEBUG mode - Slow down the game and write rounds to
                         stdout.
  --version              Show the version and exit.
  --help                 Show this message and exit.
```

### With pip install
```shell
$ conway_pygame --help
```