Skip to main content

A delightfully unhinged socket library with SSL support and caveman energy

Project description

update: 1.0.1

fixed error to do with missing a .

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)

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.1.tar.gz (3.9 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.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: floofyredpanda-1.0.1.tar.gz
  • Upload date:
  • Size: 3.9 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.1.tar.gz
Algorithm Hash digest
SHA256 e29422d793dfc1635798d386c9600a916031a5f64eed1ea6bfdc0538e4689253
MD5 716825a30fbc03f2d6086c7a85516368
BLAKE2b-256 6fc9d3b49e426babf283607ff6ab6e874505ae1b7ddce4cf1167f63c73dda5ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: floofyredpanda-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2b3d2c54eb4a4a6fded28e9554b55c62d0a56d42b64d01a7725a88ee949639f2
MD5 d3a99cfb920470530054ba7b94376f3b
BLAKE2b-256 72ec97b756814a30a581c79524fa8c75387f82d6437a98d84714acfddcfeb482

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