DuniterPy issueshttps://git.duniter.org/clients/python/duniterpy/-/issues2023-10-02T21:16:30+02:00https://git.duniter.org/clients/python/duniterpy/-/issues/207Bump Sphinx to v7 and sphinx-rtd-theme to v22023-10-02T21:16:30+02:00MoulBump Sphinx to v7 and sphinx-rtd-theme to v21.3.0https://git.duniter.org/clients/python/duniterpy/-/issues/189Add support for Substrate/RPC/Subsquid/Extrinsics/GraphQL Hasura indexer2022-07-07T10:04:58+02:00MoulAdd support for Substrate/RPC/Subsquid/Extrinsics/GraphQL Hasura indexerAdd support Duniter v2 based on Substrate blockchain framework.
Client Interface: RPC, GraphQL Hasura indexer?
- [ ] Support new documents/extrinsics
- Use [`py-substrate-interface`](https://github.com/polkascan/py-substrate-interface) ...Add support Duniter v2 based on Substrate blockchain framework.
Client Interface: RPC, GraphQL Hasura indexer?
- [ ] Support new documents/extrinsics
- Use [`py-substrate-interface`](https://github.com/polkascan/py-substrate-interface) Python Substrate library2.0.0https://git.duniter.org/clients/python/duniterpy/-/issues/83libsodium: Migrate from libnacl to PyNaCl2023-07-07T20:32:33+02:00Fredlibsodium: Migrate from libnacl to PyNaClI am willing to retrieve Cesium+ member data
1. Installed duniterpy with:
`pip3 install duniterpy`
OK
2. Made my script from example: nano request_cesium_profile.py
```
import asyncio
from duniterpy.api.client import Client
ES_CORE_EN...I am willing to retrieve Cesium+ member data
1. Installed duniterpy with:
`pip3 install duniterpy`
OK
2. Made my script from example: nano request_cesium_profile.py
```
import asyncio
from duniterpy.api.client import Client
ES_CORE_ENDPOINT = "ES_CORE_API g1.data.duniter.fr 443"
ES_USER_ENDPOINT = "ES_USER_API g1.data.duniter.fr 443"
async def main():
"""
Main code (synchronous requests)
"""
# Create Client from endpoint string in Duniter format
client = Client(ES_USER_ENDPOINT)
# prompt entry
# pubkey = input("\nEnter a public key to get the user profile: ")
pubkey = "DsEx1pS33vzYZg4MroyBV9hCw98j1gtHEhwiZ5tK7ech"
# Get the profil of a public key (direct REST GET request)
# print("\nGET user/profile/{0}/_source:".format(pubkey))
response = await client.get('user/profile/{0}/_source'.format(pubkey.strip(' \n')))
print(response)
# Close client aiohttp session
await client.close()
# Latest duniter-python-api is asynchronous and you have to use asyncio, an asyncio loop and a "as" on the data.
# ( https://docs.python.org/3/library/asyncio.html )
asyncio.get_event_loop().run_until_complete(main())
```
python3 request_cesium_profile.py
```
Traceback (most recent call last):
File "request_cesium_profile.py", line 2, in <module>
from duniterpy.api.client import Client
File "/usr/local/lib/python3.5/dist-packages/duniterpy/__init__.py", line 24, in <module>
from . import api, documents, key
File "/usr/local/lib/python3.5/dist-packages/duniterpy/documents/__init__.py", line 10, in <module>
from .crc_pubkey import CRCPubkey
File "/usr/local/lib/python3.5/dist-packages/duniterpy/documents/crc_pubkey.py", line 7, in <module>
from ..helpers import ensure_str
File "/usr/local/lib/python3.5/dist-packages/duniterpy/helpers.py", line 2, in <module>
from libnacl.encode import hex_decode, hex_encode
File "/usr/local/lib/python3.5/dist-packages/libnacl/__init__.py", line 83, in <module>
nacl = _get_nacl()
File "/usr/local/lib/python3.5/dist-packages/libnacl/__init__.py", line 81, in _get_nacl
raise OSError(msg)
OSError: Could not locate nacl lib, searched for libsodium.so, libsodium.so.23, libsodium.so.18, libsodium.so.17, libsodium.so.13, libsodium.so.10, libsodium.so.5, libsodium.so.4,
```
What is wrong?1.3.0https://git.duniter.org/clients/python/duniterpy/-/issues/57Use Trio library to simplify asyncio or wait for Python 3.8 implementation of...2021-03-07T17:15:24+01:00Vincent TexierUse Trio library to simplify asyncio or wait for Python 3.8 implementation of nurseriesIt begins with a [french article](http://sametmax.com/super-article-invite-sur-trio-que-lauteur-a-oublie-de-titrer/) on the problems behind async/await python implementation.
[Trio](https://trio.readthedocs.io/en/latest/?badge=latest) s...It begins with a [french article](http://sametmax.com/super-article-invite-sur-trio-que-lauteur-a-oublie-de-titrer/) on the problems behind async/await python implementation.
[Trio](https://trio.readthedocs.io/en/latest/?badge=latest) seems to solves the problems nicely, and [trio-asyncio](https://trio-asyncio.readthedocs.io/en/latest/?badge=latest) can be used with aiohttp.
Python 3.8 should include the concept of nurseries. May be we can wait for it...Backlog