huggingface_hub
3fbc99e7 - ✨ Programmatic API for the community tab (#930)

Commit
3 years ago
✨ Programmatic API for the community tab (#930) * ✨ WIP: programmatic API for the community tab * Layout the API * 📝 Autodoc data structures * 📝 Docstring (wip) * 💄 Code quality * 📝 Fix doc build & add parent attributes * ✨ Implement the API * 🚧 Placeholder guide * ✨ git_reference property * ✨ Comment edit history helpers * 💄 Code qualityyyy * ♻ refactor Pagination a bit * 🩹 Documentation + fix POST requests URL * 🩹 Fix GET requests URLs * ✨ Programmatically create_discussion * 💄 Code quality * 📝 how-to-community guide * Re-exports * ✅ Add tests * 📝 links and typo * 🚚 Rename how-to-community guide * ✨ create_pull_request convenience wrapper * Mention `create_commit` API in guide & docstrings * Use self._validate_or_retrieve_token * Apply suggestions from code review Co-authored-by: Omar Sanseviero <osanseviero@gmail.com> * 💄 Capitalize "Discussion" and "Pull Request" * Use Literal type hint * 💄 Fix typo * 🔊 Add warning when hiding a comment * 💚 CI fix * 🔥 Remove Pagination util * Update docs/source/how-to-discussions-and-pull-requests.mdx Co-authored-by: Julien Chaumond <julien@huggingface.co> * 📝 Documentation improvements * 🎨 Move ternary expressions out of the constructor call * 💄 Code quality * Update docs/source/how-to-discussions-and-pull-requests.mdx * Update docs/source/how-to-discussions-and-pull-requests.mdx * Update src/huggingface_hub/community.py * Update src/huggingface_hub/hf_api.py * Update src/huggingface_hub/hf_api.py * Update src/huggingface_hub/hf_api.py * Update src/huggingface_hub/hf_api.py * Update src/huggingface_hub/community.py * Update src/huggingface_hub/community.py Co-authored-by: Omar Sanseviero <osanseviero@gmail.com> Co-authored-by: Julien Chaumond <julien@huggingface.co> Co-authored-by: Lucain <lucainp@gmail.com>
Author
Parents
Loading