semvec/pypi-packages huggingface dataset:
repltable 3.0.0
a better replit database for python
Requires Python: >=3.8,<4.0
Keywords: replit,database,table,nosql,db,datastore,repl,repl.it,replit-py

<center>
    <h1>repltable</h1>
    install](#⚙️-installation)
</center>

![PyPI - Downloads](https://img.shields.io/pypi/dm/repltable?style=for-the-badge)
![code style](https://img.shields.io/badge/code%20style-black-black?style=for-the-badge&logo=python)

this is a project is to make it so that you can have tables in the replit db.

the main annoyance (for me) with replit is that it reverts a lot of database file changes, which forces you to use the repl.it database. also, you can't group together keys, and it takes *FOREVER* to install, due to it installing flask, aiohttp and a ton of other things you don't need for the database.

## ⚙️ installation 
```bash
pip install repltable
```

## 🪴 usage
```python
# if you are using this on replit
from repltable import db

# or...
from repltable import Database
db = Database("https://kv.replit.com/v0/...")


# repltable databases work like a dictionary
db.get(foo='bar')
>>> [{'foo': 'bar'}]

# repltable auto-creates tables if they don't exist
db.insert(dict(foo='bar'))

# you can get one, or get all matching documents
db.get_one(foo='bar')
>>> {'foo': 'bar'}


# you can also group keys together
from repltable import TableDatabase

table = TableDatabase.get("users")
# from here, it behaves as a regular database

table.get(foo='bar')
>>> [{'foo': 'bar'}]

# repltable auto-creates tables if they don't exist
table.insert(dict(foo='bar'))

# you can get one, or get all matching documents
table.get_one(foo='bar')
>>> {'foo': 'bar'}
```
## ❓ why not just use replit-py?
well, my goal is to make it so that you can use repl.it databases without having to use replit-py. replit-py has **27** dependencies. repltable has **2**.

plus, repltable has more features:
- caching (auto-updates itself for accuracy!)
- groups of keys (named tables)
- uses more efficient queries (you can **filter** keys!)


## 👥 contributing
to contribute, fork the repo, make a branch, and send a pull request.

for local development, you can install the dependencies with poetry:
```bash
poetry install
```

## 📜 license
this project is licensed under the [mit](https://choosealicense.com/licenses/mit/) license.
discord-ext-ipcs 0.0.4
Discord ipc client.

# discord-ext-ipc

[![Documentation Status](https://readthedocs.org/projects/discord-ext-ipcs/badge/?version=latest)](https://discord-ext-ipcs.readthedocs.io/en/latest/?badge=latest)

## Example Client

```python
import discord
from discord.ext import ipcs


client = discord.Client(intents=discord.Intents.all())
ipc_client = ipcs.Client(client, "TopSecretKey")


@client.event
async def on_ready():
    async with ipc_client:
        await ipc_client.connect("ws://localhost/ipc")

@client.event
async def on_ipc_connect():
    print("ipc connected")
    
@client.event
async def on_ipc_close():
    print("Ipc closed")
        
@ipc_client.listen("ready")
async def ipc_ready():
    print("ready")
```