Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
A performant library designed for creating and managing bots in a Tetris-like game environment. This library offers various tools and features to build, test, and deploy bots efficiently to Botris.
botris-interface is a performant library designed for creating and managing bots in a Tetris-like game environment. This library offers various tools and features to build, test, and deploy bots efficiently to Botris.
To install the library, use the following command:
pip install botris-interface
To create a bot, you need to implement the Bot
interface provided by the library. Here is an example:
from botris.bots import Bot
class CoolBot(Bot):
async def analyze(
self, game_state: GameState, players: List[PlayerData]
) -> Awaitable[List[Command]]:
# Implement your bot logic here
pass
You can run the TetrisGame using the following code:
from botris import TetrisGame
from botris.engine import Move
gs = TetrisGame()
gs.execute_move(Move.move_left)
To connect your bot to the server, use the following code:
import asyncio
from botris import Interface
async def main():
bot = MyBot()
itf = Interface.create(TOKEN, ROOM_KEY, bot)
await itf.connect()
asyncio.run(main())
This project is licensed under the MIT License - see the LICENSE
file for details.
For more information, visit our GitHub repository.
FAQs
A performant library designed for creating and managing bots in a Tetris-like game environment. This library offers various tools and features to build, test, and deploy bots efficiently to Botris.
We found that botris-interface demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.