Skip to main content

This is a proof of concept of the Belenios election protocol.

Project description

This is a proof of concept of the Belenios election protocol.

Installation

$ cd poc
$ pip install -r requirements.txt
$ python setup.py install

Development

This project includes a number of helpers in the Makefile to streamline common development tasks.

Environment Setup

The following demonstrates setting up and working with a development environment:

Create a virtualenv for development

$ cd poc
$ make virtualenv
$ source env/bin/activate

Run belenios cli application

$ belenios --help

Run an election automaticaly

$ cd poc
$ python3 tests/auto_election.py

Run an election automaticaly (with Pedersen)

$ cd poc
$ python3 tests/auto_election_pedersen.py

Run pytest / coverage

$ cd poc
$ make test

Releasing to PyPi

Before releasing to PyPi, you must configure your login credentials:

~/.pypirc:

[pypi]
username = YOUR_USERNAME
password = YOUR_PASSWORD

Then use the included helper function via the Makefile:

$ cd poc
$ make dist
$ make dist-upload

Deployments

Docker

Included is a basic Dockerfile for building and distributing Belenios, and can be built with the included make helper:

$ cd poc
$ make docker
$ docker run -it belenios --help

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

belenios-0.0.4.tar.gz (41.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

belenios-0.0.4-py3-none-any.whl (75.0 kB view details)

Uploaded Python 3

File details

Details for the file belenios-0.0.4.tar.gz.

File metadata

  • Download URL: belenios-0.0.4.tar.gz
  • Upload date:
  • Size: 41.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for belenios-0.0.4.tar.gz
Algorithm Hash digest
SHA256 a365b407d059f0378f80f62df56bc93d8d4e818b63e779225d66e32a8e5a9e99
MD5 cdcfbba0b0788c2a286c072437641e31
BLAKE2b-256 3b7a51aafdba7d9df055817a2a436e281228ca9bfe491930cc2558fdc090d448

See more details on using hashes here.

File details

Details for the file belenios-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: belenios-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 75.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for belenios-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ad89bfbfb730b3bf7c2757afe99677e8d6bf6159b809abec42a35e09f8cf232e
MD5 3210c69aa82fcb8d3813b364bdfddb9b
BLAKE2b-256 26f8bc0e69454e8af363eaa505d348e4407f5977865185a863335790b0e836bb

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