Skip to main content

A delightfully unhinged socket library with SSL support and caveman energy

Project description

update: 1.0.4

please just work

changed client ssl handling again

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.4.tar.gz (3.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.4-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: floofyredpanda-1.0.4.tar.gz
  • Upload date:
  • Size: 3.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.4.tar.gz
Algorithm Hash digest
SHA256 5d8fe48587701cd18783064a9851936350abdfdd386865a1dae98fed5eb8ec89
MD5 87addc2ac005d77bc6ddd93912789ae4
BLAKE2b-256 2a8fe5428384370401e79d7603c61a41b4df6999727c0a496c6122cd30a3a44a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: floofyredpanda-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 de5b0f49e976e6b768bd20cdfc5980e4cd44303fc242e33184ace1f7266562dc
MD5 b00adac06903dd5c4f997938d94d0c04
BLAKE2b-256 6c450a695ba66c5e211b267712525dba08988fa0b07e07c3509f092ee26b9e1e

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