semvec/pypi-packages huggingface dataset:
python-tatsu 1.0.5
An async api wrapper for the Tatsu's (discord bot) API.
Requires Python: >= 3.8.0

# tatsupy
An async python api wrapper for the Tatsu's (discord bot) API.

## Installation
```sh
# Linux/macOS
python3 -m pip install -U tatsu-py

# Windows
py -3 -m pip install -U tatsu-py
```
To install the development version, do the following:
```sh
$ git clone https://github.com/si23/tatsu-py
```


## Quick Examples
#### Gets `member's points` & `member's score`
```py
import tatsupy

client = tatsupy.Client(key = "YOUR API KEY")

async def get_member_points() -> int:
	result = await client.get_member_points(guild_id = 1234, user_id = 5678)
	return result.points


async def get_member_score() -> int:
	result = await client.get_member_score(guild_id = 1234, user_id = 5678)
	return result.score
```



#### Edit `member's points` & `member's score`
- You must have the `Manage Guild` permission.

```py
import tatsupy
from tatsupy import ActionType

client = tatsupy.Client(key =  "YOUR API KEY")  

async def remove_member_score() -> int: 
	result = await client.edit_member_score(guild_id = 1234, user_id = 5678, action = ActionType.Remove, amount = 100)
	return result.score # New score (-100)
	

async def add_member_points() -> int: 
	result =  await client.edit_member_points(guild_id = 1234, user_id = 5678, action = ActionType.Add, amount = 100)
	return result.points # New points (+100)
```



####  Gets `member's raking` & `guild's rankings`
```py
import tatsupy

client = tatsupy.Client(key =  "YOUR API KEY")  

async def get_member_ranking() -> int: 
	result = await client.get_member_ranking(guild_id = 1234, user_id = 5678)  
	return result.rank
	

async def get_guild_rankings() -> int: 
	result =  await client.get_guild_rankings(guild_id = 1234)
	return result.rankings
```
##### Using 'page' argument:
```py
async def get_guild_rankings() -> int: 
	result =  await client.get_guild_rankings(guild_id = 1234, page = 2)
	return result.rakings[0].rank  # return 101
```



## Links
- [Tatsu API](https://dev.tatsu.gg)
babel-heureka-code 0.1.3
Einfacher Versuch, verschiedene Sprachversionen einer Anwendung zu verwalten
Requires Python: >=3.9

# Babel-heureka-code

[![Interrogate](https://interrogate.readthedocs.io/en/latest/_static/badge_examples/interrogate_badge_f.svg)](https://github.com/econchick/interrogate)
[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
[![flake8](https://img.shields.io/static/v1?label=flake8&message=enabled&color=brightgreen&logoColor=white)](https://github.com/PyCQA/flake8)
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-brightgreen.svg?style=flat)](https://conventionalcommits.org)
[![PyPi](https://img.shields.io/pypi/v/Babel-heureka-code)](https://pypi.org/project/babel-heureka-code/)

## Nutzen
Dieses Projekt zielt darauf ab, eine einfache Möglichkeit für mehrsprachige Pythonprogramme zu bieten.

## Das Konzept
Der Gedanke hinter dem Projekt ist, dass an verschiedenen Stellen im Programm spezielle Objekte mit bestimmten IDs erstellt werden.
Diese können an einen Verwalter gebunden werden.
Der Verwalter kann daraufhin auf verschiedene Sprachen gesetzt werden.
Wird eine Übersetzung abgefragt z.B. durch die ```__str__``` Methode des Referenzobjekts wird der Verwalter die aktuell gesetzte Sprache nutzen, um die richtige Übersetzung zu ermitteln.

## Installation
```shell
pip install Babel-heureka-code
```

## Dokumentation
Die Dokumentation ist auf [https://heureka-code.github.io/Babel-heureka-code/](https://heureka-code.github.io/Babel-heureka-code/) einsehbar.
cursedspace 1.5.2
Library for TUI programs on basis of curses
Requires Python: >=3.8

# cursedspace

A python library/framework for TUI application on the basis of the curses
package.


## Example use

Here’s a very simple example of how to use the cursedspace package:

    #!/usr/bin/env python3

    import curses
    from cursedspace import Application, Key, Panel, colors


    class DemoApplication(Application):
        def __init__(self):
            super().__init__()
            self.panel = None

        def main(self):
            self.panel = Panel(self)
            self.resize()

            self.screen.addstr(0, 0, "Just some color example", colors.attr(colors.RED))

            while True:
                curses.doupdate()

                key = self.read_key()

                if key == Key.RESIZE:
                    self.resize()
                elif key in [Key.ESCAPE, "q", "^C"]:
                    break

        def resize(self):
            height, width = self.size()
            self.panel.resize(height, width)
            self.panel.paint()


    # run the application
    DemoApplication().run()

For more examples see the `examples` folder.

## Components

 * `Application` is the main application class and provides boilerplate
   initialisations
 * `Panel` is a basic panel with support for borders and key handling in the
   context of an `Application`
 * `InputLine` is a panel with very basic editing support.
 * `Key` provides a convenient wrapper around curses’ key system. It can be
   used standalone even when you don’t want to use `Application` or `Panel`.
 * `ShellContext` is a convenient wrapper to execute external processes (e.g.
   through subprocess) and returning to the curses context afterwards again.
 * `colors` is a generic way to define colors in pairs (foreground and
   background) and have them automatically registerd for use in curses. You
   only have to call `colors.attr(ColorPair(...))` to use a new color
   combination (limited by the terminal, of course).