semvec/pypi-packages huggingface dataset:
py-aio-mcrcon 1.0.1
An async Minecraft RCON client library with support for fragmented responses.
Requires Python: >=3.9

# aiomcrcon
![Python Versions](https://img.shields.io/badge/dynamic/toml?url=https%3A%2F%2Fraw.githubusercontent.com%2Farvitus%2Faiomcrcon%2Fmaster%2Fpyproject.toml&query=%24.project%5B%22requires-python%22%5D&style=for-the-badge&label=Python&color=blue)
![CodeFactor Grade](https://img.shields.io/codefactor/grade/github/arvitus/aiomcrcon?style=for-the-badge&color=green)
[![PyPI - Version](https://img.shields.io/pypi/v/py-aio-mcrcon?style=for-the-badge&color=green)](https://pypi.org/project/py-aio-mcrcon)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/py-aio-mcrcon?style=for-the-badge&color=green)](https://pypi.org/project/py-aio-mcrcon)

An async Minecraft RCON client library with support for fragmented responses.

## Installing
```sh
pip install py-aio-mcrcon
```

## Example
```py
import asyncio
import aiomcrcon

async def main():
    # As context manager
    async with aiomcrcon.Client("myserver.com", "password") as client:
        response = await client.command("list")

    # Without context manager
    client = aiomcrcon.Client("myserver.com", "password") # port is optional, default is default RCON port
    await client.connect()
    response = await client.command("list")
    await client.close()

asyncio.run(main())
```

## Documentation
Everything is properly type hinted and documented in the source code. Using the IDE of your choice, you should be able to get all the information you need. Otherwise, just take a look at the [source code](./aiomcrcon/client.py).

## Fragmented responses
The Minecraft server implementation has a limit on the maximum response size of about 4096 bytes. If the response exceeds this limit, it will be split into multiple fragments. The client will automatically reassemble these fragments into a single response.  
*I do currently not know any other similar library that supports this feature.*

## Information regarding `asyncio.gather()`
The client does technically support `asyncio.gather()`, but in practice it will currently cause errors, because of a [bug](https://bugs.mojang.com/browse/MC-87863) in the Minecraft server implementation. As long as this bug is not fixed, using the client with `asyncio.gather()` will execute the first command and return its response, but everything else will be ignored and the connection will be closed by the server. This causes all of the remaining or following commands to time out (raise TimeoutError) or wait indefinitely (based on timeout parameter). The client must be closed and connected to be used again.  
**This is not a bug in this library, but in the Minecraft server implementation!**

## Contributing
If you want to contribute to this project, feel free to open a pull request or issue.
icodeapi 1.4.0
The second generation of IcodeYoudao API framework.
Requires Python: >=3.10

## icodeapi, the The second generation of IcodeYoudao API framework.  
**More Powerful and Faster than [TuringAPI](https://github.com/xbzstudio/TuringAPI) and TuringIO.**  
icodeapi is easy to use, and it supports for sync and async.  
```python
from icodeapi import *
import asyncio
cookie = input('Enter cookie: ')
syncAPI = IcodeAPI(cookie = cookie)
print(syncAPI.updateIntro('hello, icodeapi!'))
asyncAPI = AsyncIcodeAPI(cookie = cookie)

async def main(api : AsyncIcodeAPI):
    await api.login()
    print(await api.updateIntro('hello, async icodeapi!'))
    await api.closeClient()

asyncio.run(main(asyncAPI))
```  
Use icodeapi to build your server  
```python
import icodeapi
from icodeapi import server
cookie = input("Enter cookie: ")
api = icodeapi.AsyncIcodeAPI(cookie = cookie)
Server = server.IcodeServer(api = api)
@Server.CheckMessage()
async def AutoReply(userId, bot):
    try:
        await bot.fastReply(userId, 'Hello world!')
    except AssertionError:
        pass
    except:
        print('Unknown Error')
server.RunServer(Server)
```  
Use pip to install  
```
pip install icodeapi
```  
[Documentation](https://xbzstudio.github.io/icodeapi/docs)  
[Github](https://github.com/xbzstudio/icodeapi)
pdpy11 2.0.4
Cross-platform assembler for PDP-11
Requires Python: >=3.6

# PDPy11

<p align="center">
  <img src="https://raw.githubusercontent.com/pdpy11/pdpy11/master/logo.png" alt="Logo" title="Logo" height="128" />
</p>

PDPy11 is a cross-platform assembler for PDP-11 computers.


## Requirements

- Python 3.6 or later
- No Python modules required
- Any platform (Windows, Mac OS, Linux)


## Installation

Use pip.

```shell
$ pip3 install pdpy11
```

(some modern systems use `pip` instead of `pip3` for Python 3 packages)

On Windows, installing via pip works too, but pay attention to any warnings. If pip says anything along the lines of `The script pdpy11.exe is installed in '...' which is not on PATH`, add the path pip mentions to the PATH variable. On newer Windows, this can be done by searching for 'Edit the system environment variables' in the Start menu and clicking through 'Environment Variables...', then 'User variables for ...' or 'System variables' depending on whether you want to install the compiler for a single user or globally, followed by 'Path', and adding the path to the end of the list.

If you're using Sublime Text, you might also want to install various utilities for syntax highlighting and building [here](https://github.com/pdpy11/sublime-plugin).


## Licensing

PDPy11 is licensed under GNU General Public License version 3 (which is attached to PDPy11 in 'LICENSE' file), or (at your option) any later version.


## Development

Install the following packages from pip: `coverage pytest mutmut pyfakefs pylint`. You can now run tests using `make test`, run tests with coverage using `make cov`, run mutation tests using `make mut` and run linter using `make lint`. You can add `PYTHON=...` option to set path to or name of Python interpreter.