{"id":21290169,"url":"https://github.com/johnmai-dev/huggingfacehub","last_synced_at":"2025-03-15T16:12:40.222Z","repository":{"id":262314256,"uuid":"886856267","full_name":"johnmai-dev/HuggingfaceHub","owner":"johnmai-dev","description":"🚧[WIP] The Swift client for the Huggingface Hub.","archived":false,"fork":false,"pushed_at":"2025-03-05T16:56:59.000Z","size":76,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T17:42:25.673Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnmai-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-11T18:19:21.000Z","updated_at":"2025-03-05T16:48:58.000Z","dependencies_parsed_at":"2024-11-11T19:36:51.762Z","dependency_job_id":"757c8945-cf6d-4881-b64e-d727f2127abc","html_url":"https://github.com/johnmai-dev/HuggingfaceHub","commit_stats":null,"previous_names":["johnmai-dev/huggingfacehub"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnmai-dev%2FHuggingfaceHub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnmai-dev%2FHuggingfaceHub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnmai-dev%2FHuggingfaceHub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnmai-dev%2FHuggingfaceHub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnmai-dev","download_url":"https://codeload.github.com/johnmai-dev/HuggingfaceHub/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243754093,"owners_count":20342542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-21T12:45:30.098Z","updated_at":"2025-03-15T16:12:40.216Z","avatar_url":"https://github.com/johnmai-dev.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swift HuggingfaceHub\n\nThe Swift client for the Huggingface Hub.\n\n\u003e Swift Package to implement a [huggingface_hub](https://github.com/huggingface/huggingface_hub) API in Swift.\n\n## Features [🚧 WIP]\n\n\u003e `huggingface_hub` Documentation (Python): https://huggingface.co/docs/huggingface_hub\n\n- [x] Download files from the Hub\n- [ ] Upload files to the Hub\n- [ ] Command Line Interface (CLI)\n    - [x] download\n    - [ ] upload\n    - [ ] repo-files\n    - [ ] env\n    - [ ] login\n    - [ ] auth\n    - [ ] repo\n    - [ ] lfs-enable-largefiles\n    - [x] scan-cache\n    - [ ] delete-cache\n    - [ ] tag\n    - [ ] version\n    - [ ] upload-large-folder\n- [ ] Interact with the Hub through the Filesystem API\n- [ ] Create and manage a repository\n- [ ] Search the Hub\n- [ ] Run Inference on servers\n- [ ] Inference Endpoints\n- [ ] Interact with Discussions and Pull Requests\n- [ ] Collections\n- [x] Manage huggingface_hub cache-system\n- [ ] Create and share Model Cards\n- [ ] Manage your Space\n- [ ] Integrate any ML framework with the Hub\n- [ ] Webhooks\n\n## Swift Package Manager\n\n```swift\nlet package = Package(\n  dependencies: [\n      .package(url: \"https://github.com/johnmai-dev/HuggingfaceHub.git\", from: \"main\")\n  ],\n  targets: [\n      .target(name: \"YourTarget\", dependencies: [\"HuggingfaceHub\"])\n  ]\n)\n```\n\n## Command Line Interface (CLI)\n\n### Build the CLI\n\n```bash\nswift build -c release\n\n# Or Makefile command\n# make build-release\n```\n\ncli executable will be located in `.build/release/huggingface-cli`\n\n### Usage\n\n#### Scan Cache\n\n```bash\nhuggingface-cli scan-cache\n```\n\n#### Download\n\n```bash\nhuggingface-cli download \u003cmodel-name\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnmai-dev%2Fhuggingfacehub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnmai-dev%2Fhuggingfacehub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnmai-dev%2Fhuggingfacehub/lists"}