# DuniterPy, évolution de la bibliothèque Python

**URL:** https://forum.duniter.org/t/duniterpy-evolution-de-la-bibliotheque-python/5127
**Category:** DuniterPy
**Tags:** python, sakia, duniterpy, silkaj
**Created:** [17 September 2018 18:32 UTC](https://forum.duniter.org/t/duniterpy-evolution-de-la-bibliotheque-python/5127 "2018-09-17T18:32:13Z")
**Posts on this page:** 1
**Showing post:** 38

<div class="post-metadata">

### Author: ![vit](https://forum.duniter.org/user_avatar/forum.duniter.org/vit/32/2775_2.png) [@vit](https://forum.duniter.org/u/vit)
#### Post date: [23 January 2020 11:43 UTC](https://forum.duniter.org/t/duniterpy-evolution-de-la-bibliotheque-python/5127/38 "2020-01-23T11:43:52Z")

</div>

# DuniterPy version 0.56.0 est sortie !

La grande nouveauté est le support de WS2P !  
Vous allez pouvoir vous connecter à un serveur Duniter en WS2P comme ci vous étiez un véritable nœud Duniter ! De quoi faire des automates en Python basés sur les événements WS2P…

**Attention : la connexion par websocket a changée ! Reportez-vous aux exemples du dossier `examples` pour voir comment on se connecte en BMA et en WS2P en websocket**.

[La documentation automatique que personne ne lit est ici…](https://clients.duniter.io/python/duniterpy/index.html)

> **[Client Challenge](https://pypi.org/project/duniterpy/)**

## [v0.56.0](https://git.duniter.org/clients/python/duniterpy/-/milestones/10) (20th January 2020)

### Code

- #58, !84: Introduce WS2P API support: **BREAK BACKWARD COMPATIBILITY** :
  - `bma.ws`: now websocket connections use the special `WSConnection` class and `async`, check examples.
  - Add two examples, a helper to retrieve the WS2P API from BMA.

- #113, !89: Blocks signature verification is correctly handled now, differently from other documents.
- #112, !88: fix `Unlock.from_inline()` error on a newly created Unlock
- !87: Typos in Block: `noonce` −\> `nonce`, hash
- !82: Use `sys.exit()` instead of `exit()`
- !79:
  - Move tools out of the `helper` folder
  - Dedicate the `helper` folder to helpers
  - Introduce `output_available()` helper to check if an output is available

### Dependencies

- !91: fix the `attrs`/`attr` dependency

### Build

- #107, !81: Enhance version definition in `setup.py`

### CI/CD

- !78: Release on PyPI only on tags

### Documentation

- #101, !80: Publish auto-documentation on GitLab Pages
- #106, !83: Migrate the `README` back to markdown, reword and update it.
- !77: Improve v0.55.0 and add v0.55.1 changelog
- !92: Add v0.56.0 changelog

* * *

- Thanks @vit, @Moul

---

_[View the full topic](https://forum.duniter.org/t/duniterpy-evolution-de-la-bibliotheque-python/5127)._
