question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Separate out encoding.py as multicodec ?

See original GitHub issue

The encoding.py code seems a lot like multicodec implementation, should we separate it out ? so that it can be used in py-ifps too ?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
ntninjacommented, Sep 25, 2016

I like the idea, but reviewing the current multicodec spec it seems the current encoding.py only handles the “how do I decode data with the given type” part; it doesn’t actually provide a multicodec parser yet. My suggestion would therefore be to start an independent project that provides a full multicodec implementation (optionally based on encoding.py). Once it reaches the level of maturity required to be usable on it’s own (particularly by the py-ipfs project), we can then integrate it into this project and (possibly) make it an official ipfs project (at least I would do some lobbying towards that goal).

0reactions
ntninjacommented, Feb 15, 2019

I’ve looked at https://github.com/multiformats/py-multicodec (now existing multicodec implementation in Python) and it doesn’t look like encoding.py at all. Leading me to believe that this was some kind of misunderstanding here. If anything, encoding.py (or rather the library written by @fredthomsen) seems to more closely resemble what https://github.com/ipld/py-ipld-dag would like to achieve if it contained any code. With recent changes encoding.py is now hardly more than a glorified JSON parser and even before that there wasn’t much to “separate out” in the first place. This will therefor be closed, open a new issue if you think that you can provide a replacement for encoding.py but for now we’ll stick to the required JSON and byte stream handling.

Read more comments on GitHub >

github_iconTop Results From Across the Web

multiformats/multicodec: Compact self-describing codecs ...
The code of a multicodec is usually encoded as unsigned varint as defined by ... The validate.py script can be used to validate...
Read more >
codecs — Codec registry and base classes — Python 3.11.1 ...
The joined output of calls to the encode() / decode() method is the same as if all the single inputs were joined into...
Read more >
How to enable Multi Codec Support for OTT ... - Bitmovin
By encoding your videos using a multi-codec approach you can double the quality while still reducing your bandwidth consumption and ...
Read more >
Video Codecs and Encoding: Everything You Should Know
Encoding involves compressing video data for delivery and storage. This requires the help of video codecs like H.264, H.265, AV1, and VP9.
Read more >
Basics of Video Encoding: Everything You Need to Know
These blocks are encoded somewhat separately, which leads to ... There are ways around this by adding a filter that smooths out these...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found