Commit cbe0846
Add new HF commands (#3384)
* [1.0] Httpx migration (#3328)
* first httpx integration
* more migration
* some fixes
* download workflow should work
* Fix repocard and error utils tests
* fix hf-file-system
* gix http utils tests
* more fixes
* fix some inference tests
* fix test_file_download tests
* async inference client
* async code should be good
* Define RemoteEntryFileNotFound explicitly (+some fixes)
* fix async code quality
* torch ok
* fix hf_file_system
* fix errors tests
* mock
* fix test_cli mock
* fix commit scheduler
* add fileno test
* no more requests anywhere
* fix test_file_download
* tmp requests
* Update src/huggingface_hub/utils/_http.py
Co-authored-by: célina <[email protected]>
* Update src/huggingface_hub/utils/_http.py
Co-authored-by: célina <[email protected]>
* Update src/huggingface_hub/hf_file_system.py
Co-authored-by: célina <[email protected]>
* not async
* fix tests
---------
Co-authored-by: célina <[email protected]>
* Bump minimal version to Python3.9 (#3343)
* Bump minimal version to Python3.9
* use built-in generics
* code quality
* new batch
* yet another btach
* fix dataclass_with_extra
* fix
* keep Type for strict dataclasses
* fix test
* Remove `HfFolder` and `InferenceAPI` classes (#3344)
* Remove HfFolder
* Remove InferenceAPI
* more recent gradio
* bump pytest
* fix python 3.9?
* install gradio only on python 3.10+
* fix tests
* fix tests
* fix
* [v1.0] Remove more deprecated stuff (#3345)
* remove constants.-hf_cache_home
* remove smoothly_deprecate_use_auth_token
* remove get_token_permission
* remove update_repo_visibility
* remove is_write_action arg
* remove write_permission arg from login methods
* new parameter skip_if_logged_in in login methods
* Remove resume_download / force_filename parameters
* Remove deprecated local_dir_use_symlinks parameter
* Remove deprecated language, library, task, tags from list_models
* Return commit URL in upload_file/upload_folder (previously url to file/folder on the Hub)
* fix upload_file/upload_folder tests
* smoothly_deprecate_legacy_arguments everywhere
* code quality
* fix tests
* fix xet tests
* [v1.0] Remove `Repository` class (#3346)
* Remove Repository class + adapt docs
* remove fr git_vs_http
* bump to 1.0.0.dev0
* Remove _deprecate_positional_args on login methods (#3349)
* [v1.0] Remove imports kept only for backward compatibility (#3350)
* Remove imports kept only for backward compatibility
* fix tests
* [v1.0] Remove keras2 utilities (#3352)
* Remove keras2 utilities
* remove keras from init
* [v1.0] Remove anything tensorflow-related + deps (#3354)
* Remove anything tensorflow-related + deps
* init
* fix tests
* fix conflicts in tests
* Release: v1.0.0.rc0
* [v1.0] Update "HTTP backend" docs + `git_vs_http` guide (#3357)
* HTTP configuration docs
* http configuration docs
* refactored git_vs_http
* fix import
* fix docs?
* Update docs/source/en/package_reference/utilities.md
Co-authored-by: célina <[email protected]>
---------
Co-authored-by: célina <[email protected]>
* Refactor CLI implementation using Typer (#3372)
* Refactor CLI implementation using Typer (#3365)
* migrate CLI to typer
* (#3364) disable rich in all cases
* update tests
* make typer-slim a required dep
* use Annotated
* fix linting issues
* fix tests
* refactoring
* update docs
* use built in types
* fix mypy
* call whoami directly
* lint
* Apply suggestions from code review
Co-authored-by: Lucain <[email protected]>
* import Annotated from typing
* Use Enums
* set verbosity globally
* refactor scan cache and update version docstring
* centralize where Typer is defined
* no need for ...
* rename enum
* no need for extra param name
* docstring
* revert
* centralize arguments and options definition
* add library version when initializing HfApi
* add auto-completion
* sort commands alphabetically
* suggestions
* centralize jobs params and HfApi initialization
* fix
---------
Co-authored-by: Lucain <[email protected]>
* update docs
---------
Co-authored-by: Lucain <[email protected]>
* add hf repo delete command
* add repo settings, repo move, repo branch commands
* fix test
* Apply suggestions from code review
Co-authored-by: Lucain <[email protected]>
---------
Co-authored-by: Lucain <[email protected]>
Co-authored-by: Lucain Pouget <[email protected]>1 parent c727e9e commit cbe0846
2 files changed
+339
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | | - | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
49 | 58 | | |
50 | 59 | | |
51 | 60 | | |
| |||
87 | 96 | | |
88 | 97 | | |
89 | 98 | | |
90 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
91 | 223 | | |
92 | 224 | | |
93 | 225 | | |
| |||
127 | 259 | | |
128 | 260 | | |
129 | 261 | | |
130 | | - | |
| 262 | + | |
131 | 263 | | |
132 | 264 | | |
133 | 265 | | |
| |||
152 | 284 | | |
153 | 285 | | |
154 | 286 | | |
155 | | - | |
| 287 | + | |
156 | 288 | | |
157 | 289 | | |
158 | 290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
778 | 778 | | |
779 | 779 | | |
780 | 780 | | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
781 | 983 | | |
782 | 984 | | |
783 | 985 | | |
| |||
0 commit comments