Skip to main content

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

Release files for belenios 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for belenios 0.0.4
File Size Uploaded
belenios-0.0.4.tar.gz 41.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for belenios 0.0.4
File Interpreter ABI Platform
belenios-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 116.4 kB

Release files / belenios-0.0.4.tar.gz

Download URL belenios-0.0.4.tar.gz
Size 41.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a365b407d059f0378f80f62df56bc93d8d4e818b63e779225d66e32a8e5a9e99
BLAKE2b-256 checksum
How to use checksums
3b7a51aafdba7d9df055817a2a436e281228ca9bfe491930cc2558fdc090d448
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.12

Release files / belenios-0.0.4-py3-none-any.whl

Download URL belenios-0.0.4-py3-none-any.whl
Size 75.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ad89bfbfb730b3bf7c2757afe99677e8d6bf6159b809abec42a35e09f8cf232e
BLAKE2b-256 checksum
How to use checksums
26f8bc0e69454e8af363eaa505d348e4407f5977865185a863335790b0e836bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page