Skip to main content

A delightfully unhinged socket library with SSL support and caveman energy

Project description

update: 1.0.7

fixed alot of things and added secure bool to the client

to install

pip install floofyredpanda

to use

from floofyredpanda import start_floofy_server

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

start_floofy_server(9000, handle)

ssl

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

from floofyredpanda import tell_the_server

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

ssl

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

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()))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

floofyredpanda-1.0.7.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

floofyredpanda-1.0.7-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file floofyredpanda-1.0.7.tar.gz.

File metadata

  • Download URL: floofyredpanda-1.0.7.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for floofyredpanda-1.0.7.tar.gz
Algorithm Hash digest
SHA256 6a9cea0f6a7646ab0761d42f022b0e9dd32694b8f3dbfe4c78a3a083ea48ec8f
MD5 8cbd6757e290655fab5b9737881e0181
BLAKE2b-256 c08bb2ffd9ebd93f6de21500caa5867d0f48cf6fa1da67ea8a4d691b8a65205e

See more details on using hashes here.

File details

Details for the file floofyredpanda-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: floofyredpanda-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for floofyredpanda-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 62efe7f9406095838ebf52aa167d16cff260e736cfd92579d3e391db9ff2e21b
MD5 9f5d1b467076911ea76ec0dd4ec5a45e
BLAKE2b-256 583512ae8926d8de67ed62f93773f99345a6cfcbaf55f5b0f5c4f1892bf6abb6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page