If the code you use, edit and publish doesn't require to credit the original author, that's fine when it comes to copyright laws. But if you pretend you wrote all of it, it's still plagiarism.
Open source code, which most of these packages are, give you full rights to edit without credit.