Script pour obtenir une animation de la toile de confiance duniter.
[dépôt archivé] le code a été intégré à DataJune (https://git.42l.fr/HugoTrentesaux/DataJune.jl)
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
2 years ago | |
---|---|---|
dev | 2 years ago | |
.gitignore | 2 years ago | |
Community.jl | 2 years ago | |
CustomLayout.jl | 2 years ago | |
GraphPrinter.jl | 2 years ago | |
LightGraphExporter.jl | 2 years ago | |
README.md | 2 years ago | |
WotUtils.jl | 2 years ago | |
animwotmap.sh | 2 years ago | |
blockchain_browser.py | 2 years ago | |
browse_blockchain.py | 2 years ago | |
convert_files.jl | 2 years ago | |
make_animation.jl | 2 years ago | |
preview.jpeg | 3 years ago |
README.md
Anim-Wotmap
Je propose ici un script pour produire une animation de la toile de confiance Duniter.
installation
Dépendances python
pip install tqdm # dépendances python3 pour la barre de progrès
Dépendances julia
pkg> add LightGraphs GraphPlot Compose Cairo Fontconfig Plots DataStructures Colors ProgressMeter TOML JLD2 CSV # après ] pour le mode pkg
utilisation
Avec la blockchain exportée au format json via dex
./animwotmap.sh # calls python and julia scripts
fonctionnement
- parcourt la blockchain pour en extraire les événements pertinents (certifications, expirations, révocations...)
- convertit les données précédentes au format LightGraphs pour un certain pas de temps (1 jour par défaut)
- parcourt les données du début à la fin et écrit les images