semvec/pypi-packages huggingface dataset:
aerics 0.0.3
A networking library for multiplayer games.
License: MIT

# Aerics
A networking library for multiplayer games.

## Getting Started
1) Install Python
2) Open cmd/terminal and type:

```
pip install Aerics
```

## Examples
# Creating a server
``` python
from aerics import *

server = Server("localhost", 5656)

@server.event
def setup():
    pass

@server.event
def update():
    pass

@server.event
def on_connection(connection, address, id, clients, globals):
    print("New connection")

    return {"x" : 0, "y" : 0}

@server.event
def on_disconnection(connection, address, id, clients, globals):
    print(f"Client {id} disconnected")

@server.event
def on_recv(connection, address, id, clients, globals, data):
    data = data.split(",")

    if data[0] == "move":
        clients[id]["x"], clients[id]["y"] = data[1], data[2]
        return clients

    if data[0] == "close":
        server.disconnect(connection)
        return None

server.listen()
```

# Creating a client
``` python
from aerforge import *
from aerics import *

def update():
    client.send(f"move,{player.x},{player.y}")
    players = client.recv()

    for i in players:
        forge.draw(width = 50, height = 100, x = int(players[i]["x"]), y = int(players[i]["y"]))

if __name__ == "__main__":
    forge = Forge()
    
    client = Client("localhost", 5656)
    client.connect()

    player = prefabs.TopViewController(forge)
    player.visible = False

    forge.run()
```
dmongo 0.1.0
A python library for communicating and Querying mongodb
License: MIT

## dmongo
- A python library for communicating and Querying mongodb

### how to use 

1. Install package
 
```
pip install dmongo
 
```
2. import the package 
 
```
from dmongo.dmongo import mongoQuery

```
3. initializing dmongo 
- To initialize dmongo, create a MONGO_URI, you either create the Database or dmongo will automatically creates it, if it doesn"t exist.


```
Query=mongoQuery(MONGO_URI="localhost:27017",Database="geof",collections="movies")

```
4. creating a record
- To create a new record, send in a data in this Dictionary format, where the key pair is the record name and the value pair is the value to be stored.
```
 Query.create({"name":"JohnDoe","email":"jdoe@gmail.com","username":"JohnD"})

```

4. get all record
- Returns all the record available in the defined collection of the specified Database
```
Query.getAll()

```

5. get one record 
- Returns a particular record from the defined collection of the specified database base on it's ID. which is unique across the collection.

```
Query.getOne(ID="620843809255d268ce967245")

```

6. updating a record
- replaces the existing value of the specified key pair with a new value of the specified value pair according to the ID specified.
```
Query.update(ID="620843809255d268ce967245",data={"name":"JamesDoe"})

```
7. filtering of record 
- Returns all the record record with the same value as specified
```
Query.filterBy(data={"name":"JamesDoe"})

```
8. deleting a record
- Deletes a record according to the ID specified.
```
Query.delete(ID="620843809255d268ce967245")

```
ns-rep-imports 0.1.3
Namespace Realitive Import Generator
License: MIT
Requires Python: >=3.6.0
Keywords: import,namespace,rel,camel-to-snake

=================================
Welcome to NS-REL-IMPORTS's docs!
=================================


Simple rel import generator module
==================================

Generates Realitive info with a camel to snake conversion of class name.

.. code-block:: python

    >>> from rel import mod_rel as RelInfo

    >>> obj_str = 'awt.uno.XInterface'
    >>> ns = 'awt.grid'
    >>> rel = RelInfo.get_rel_import(in_str =obj_str, ns=ns)
    >>> print(f"from {rel.frm} import {rel.imp}")
    from ..uno.x_interface import XInterface