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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a365b407d059f0378f80f62df56bc93d8d4e818b63e779225d66e32a8e5a9e99
|
|
| MD5 |
cdcfbba0b0788c2a286c072437641e31
|
|
| BLAKE2b-256 |
3b7a51aafdba7d9df055817a2a436e281228ca9bfe491930cc2558fdc090d448
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad89bfbfb730b3bf7c2757afe99677e8d6bf6159b809abec42a35e09f8cf232e
|
|
| MD5 |
3210c69aa82fcb8d3813b364bdfddb9b
|
|
| BLAKE2b-256 |
26f8bc0e69454e8af363eaa505d348e4407f5977865185a863335790b0e836bb
|