Metadata-Version: 2.4
Name: floofyredpanda
Version: 1.0.7
Summary: A delightfully unhinged socket library with SSL support and caveman energy
Author: shadow113323 
License: MIT
Project-URL: Homepage, https://pypi.org/project/floofyredpanda/
Keywords: socket,ssl,floof,panda,networking,fun
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Internet
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: System :: Networking
Requires-Python: >=3.7
Description-Content-Type: text/markdown

# update: 1.0.7
### fixed alot of things and added secure bool to the client



# to install
```bash
pip install floofyredpanda
```

# to use

```python
from floofyredpanda import start_floofy_server

def handle(conn, addr):
    conn.send(b"bonk\n")
    conn.close()

start_floofy_server(9000, handle)
```


## ssl

```python
from floofyredpanda import ParanoidPanda

def handle_secure(conn, addr):
    conn.send(b"secure bonk\n")
    conn.close()

server = Paranoid_Panda(port=4443, handler=handle_secure, cert="cert.pem", key="key.pem")
server.start_paranoid_server()


```


## client side

```python
from floofyredpanda import tell_the_server

response = tell_the_server("localhost", 9000, "bonk")
print(response)

```
## ssl
```python
from floofyredpanda import secretly_tell_the_server

response = secretly_tell_the_server("localhost", 9000, "secret bonk") # ca is required to load selfsigned stuff response = secretly_tell_the_server("localhost", 9000, "secret bonk" ca = "the content of the ca.pem here")
print(response)

```
## requesttobyte
```python
from floofyredpanda import RedPandaClient, requesttobyte

s = RedPandaClient("www.example.com",443) #https is default now
x = requesttobyte("/",host = "www.example.com",method = "get")
s.send(x.decode()) # you need to decode again because im stupid and encode everything that is in that queue
print(next(s.recv()))
```
