Deprecated py-multiaddr usage #643
-
https://github.com/multiformats/py-multiaddr is not being maintained anymore and the documentation is outdated. I wanted to solve a to-do in the code, but it turns out that the functionality is not provided properly by this library. I cannot even pull request there. Any solutions ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@seetadev Please try running the following code as described in the documentation of py-multiaddr from multiaddr import Multiaddr
m1 = Multiaddr("/ip4/127.0.0.1/udp/1234")
m1.encapsulate(Multiaddr("/sctp/5678"))
# <Multiaddr /ip4/127.0.0.1/udp/1234/sctp/5678>
m1.decapsulate(Multiaddr("/udp"))
# <Multiaddr /ip4/127.0.0.1> This does not work as intended and errors out. |
Beta Was this translation helpful? Give feedback.
-
@varun-r-mallya : Please visit #645 |
Beta Was this translation helpful? Give feedback.
@varun-r-mallya : Please visit #645