Skip to main content

A delightfully unhinged socket library with SSL support and caveman energy

Project description

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.0.tar.gz (3.7 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.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: floofyredpanda-1.0.0.tar.gz
  • Upload date:
  • Size: 3.7 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.0.tar.gz
Algorithm Hash digest
SHA256 55eb1c6a4fb32a893cadad53920759f491f4628a80198903057c54618f0f047c
MD5 00ed95ab82dcbdc5b09ebe2129670af4
BLAKE2b-256 9f719ca2a93dd51405236b5c1220356856cc9f2e193cd1d01746f8db05e0e215

See more details on using hashes here.

File details

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

File metadata

  • Download URL: floofyredpanda-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 74145742995cc3d9517462950fa82184d00d03b0eeed9dac48179542899eba9e
MD5 bc6e55ff7e2143286ff98ae7c0bf14a0
BLAKE2b-256 9f4073d016ea72c27f2d8692cc933d1a65c6444669969f3d879a0cddc06c93c7

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