Skip to main content

PyCerver is a pure Python wrapper around the cerver framework

Project description

PyCerver

PyCerver is a pure Python wrapper around the cerver framework. It uses the built-in ctypes module to interface with cerver, and provides simple Python classes and wrappers for common cerver functionality.

Trying out

Local

You can test out PyCerver without actually installing it. You just need to set up your PYTHONPATH to point to the location of the source distribution package.

export PYTHONPATH=/path/to/py-cerver:$PYTHONPATH

Docker

  1. Buid local development docker image
bash development.sh
  1. Run development image with local source
sudo docker run \
  -it \
  --name pycerver --rm \
  -p 5000:5000 \
  -v /home/ermiry/Documents/ermiry/Projects/py-cerver:/home/pycerver \
  -e RUNTIME=development \
  -e PORT=5000 \
  -e CERVER_RECEIVE_BUFFER_SIZE=4096 -e CERVER_TH_THREADS=4 \
  -e CERVER_CONNECTION_QUEUE=4 \
  -e PRIV_KEY=/home/pycerver/keys/key.key \
  -e PUB_KEY=/home/pycerver/keys/key.pub \
  ermiry/pycerver:development /bin/bash
  1. Handle pycerver module
export PYTHONPATH=$pwd:$PYTHONPATH

Project details


Download files

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

Files for pycerver, version 0.5.1
Filename, size File type Python version Upload date Hashes
Filename, size pycerver-0.5.1-py3-none-any.whl (16.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pycerver-0.5.1.tar.gz (12.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page