github-contents icon indicating copy to clipboard operation
github-contents copied to clipboard

Python class for reading and writing data to a GitHub repository

Results 7 github-contents issues
Sort by recently updated
recently updated
newest added

Hello. Can I ask how do I use this module to delete a file? Thank you so much.

Could be useful to be able to do some of these operations using a CLI tool - especially retrieving large files from private repos.

enhancement

Got this traceback (my token was invalid): ``` File "...python3.9/site-packages/github_contents.py", line 51, in read_large tree_entry = [t for t in default_tree["tree"] if t["path"] == filepath][0] KeyError: 'tree' ``` Relevant code:...

enhancement

You can't even read content from the `main` branch at the moment. Relates to #3.

bug

Needed for https://github.com/simonw/cryptozoology/issues/19

It would be nice if you didn't have to manually convert to and from byte strings every time you use this library.

It would be useful if he objects kept track of reported rate limits automatically.