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.

Source Distribution

pycerver-0.5.1.tar.gz (12.9 kB view hashes)

Uploaded Source

Built Distribution

pycerver-0.5.1-py3-none-any.whl (16.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page