Why I wanted to make this API, is because I didnt get, why the bit API has no support for binary input. So that is why I made the API.
The documentation and code is on github. But, you can download it via pastebin.
I think this API is pretty accurate, but it could have some potential flaws. Please report those on the github or here. Also, if you want support for a certain gate, or something else that has to due with binary, please post it here!
And I should mention its pretty strict, you can only put in bytes, just because it makes sense. But everything returns in bytes, so if you dont mutate it yourself, you are food.
Thank you for reading :P/>
Edit: I want to state that this was more a practise than something that could be used practically. You can rather use the bit API, since it is probably way quicker, and this is just a way around it. It was fun to make though.