Skip to main content

A delightfully unhinged socket library with SSL support and caveman energy

Project description

update: 1.0.2

added a few things

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.2.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.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: floofyredpanda-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 d0d65405227715152219763a52a1cc8fdfcd97743e61cdc81a9c4731fc4d1137
MD5 ca24ccb862c13e6e15d90a18f5814e64
BLAKE2b-256 13b32172ea923a0255ee59f62c4c0dcd132530410c12683246789018a25fdb98

See more details on using hashes here.

File details

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

File metadata

  • Download URL: floofyredpanda-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ed621c46d6de361c10101ca31ddbe22541f08422c40a87af334416d6ef5b19a8
MD5 41e25f91a951ac67891567788e16b101
BLAKE2b-256 97dd9d901c0cae12a261231c15d50bdca8155459521c3dfb68119ae97dec684c

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