We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
main() is not included in the file. Should be:
main()
def main(): with Path(filepath).open("rb") as fp: image_binary = fp.read() response = requests.post( PINATA_BASE_URL + endpoint, files={"file": (filename, image_binary)}, headers=headers, ) print(response.json())
The text was updated successfully, but these errors were encountered:
Doesn't necessarily need to be a main function.... but you're right it is much nicer.
main
Care to make a PR?
Sorry, something went wrong.
@PatrickAlphaC Sure! I will make one!
Pr was created.
No branches or pull requests
main()
is not included in the file. Should be:The text was updated successfully, but these errors were encountered: