semvec/pypi-packages huggingface dataset:
docstring_parser_swig 0.0.3
Fork of docstring_parser with Swig autodoc support
License: MIT
Requires Python: >=3.9

docstring_parser_swig
================

Fork of docstring_parser with Swig autodoc support. Check [CHANGELOG.md](./CHANGELOG.md) to see the fork changes.

Includes a script ([gen_stub.py](./docstring_parser/scripts/gen_stub.py)) that takes a module generated by Swig and generates a `.pyi` file with type hints. Currently `%feature("autodoc", "1")` and Doxygen (translated to reStructuredText by Swig) are supported.

Also available on PyPI: `pip install docstring_parser_swig`

# docstring_parser

Parse Python docstrings. Currently support ReST, Google, Numpydoc-style and
Epydoc docstrings.

Example usage:

```python
>>> from docstring_parser import parse
>>>
>>>
>>> docstring = parse(
...     '''
...     Short description
...
...     Long description spanning multiple lines
...     - First line
...     - Second line
...     - Third line
...
...     :param name: description 1
...     :param int priority: description 2
...     :param str sender: description 3
...     :raises ValueError: if name is invalid
...     ''')
>>>
>>> docstring.long_description
'Long description spanning multiple lines\n- First line\n- Second line\n- Third line'
>>> docstring.params[1].arg_name
'priority'
>>> docstring.raises[0].type_name
'ValueError'
```

Read [API Documentation](https://rr-.github.io/docstring_parser/).

# Installation

Installation using pip

```shell
pip install docstring_parser

# or if you want to install it in a virtual environment

python -m venv venv # create environment
source venv/bin/activate # activate environment
python -m pip install docstring_parser
```

Installation using conda


1. Download and install miniconda or anaconda
2. Install the package from the conda-forge channel via:
  - `conda install -c conda-forge docstring_parser`
  - or create a new conda environment via `conda create -n my-new-environment -c conda-forge docstring_parser`


# Contributing

To set up the project:
```sh
git clone https://github.com/rr-/docstring_parser.git
cd docstring_parser

python -m venv venv  # create environment
source venv/bin/activate  # activate environment

pip install -e ".[dev]"  # install as editable
pre-commit install  # make sure pre-commit is setup
```

To run tests:
```
source venv/bin/activate
pytest
```
pygame-animation-player 1.0.4
A simple animation player for pygame sprites
License: MIT
Requires Python: >=3.8
Keywords: pygame, animation, sprites, game development

# Pygame Animation Player

A simple and animation player for pygame sprites that supports:

- Multiple animation types (sprite sheets and individual frames)
- One-shot and looping animations  
- Frame-rate independent timing
- Easy integration with pygame sprites

## Installation

```bash
pip install pygame-animation-player
```


### Implementation

```python
import pygame
from pygame_animation_player import Animation, AnimationPlayer

# Create animations
idle_anim = Animation(fps=0, frame1)
walk_anim = Animation(fps=12, *walk_frames)
attack_anim = Animation(fps=20, attack_spritesheet, tilesize=(16,16), one_shot=True)
# Add to your sprite
class Player(pygame.sprite.Sprite):
    def __init__(self):
        super().__init__()
        # self.image before AnimationPlayer.__init__()
        self.image = None
        self.animation_player = AnimationPlayer(
            self, 
            idle=idle_anim,
            walk=walk_anim,
            attack=attack_anim
        )
    
    def update(self, dt):
        self.animation_player.update(dt)

        if walking:
            self.animation_player.play("walk")
        else:
            self.animation_player.play("idle")

        if attack:
            self.animation_player.play("attack", 
                                        restart= True, 
                                        force_finish= True)
```