spaces
Utilities for Hugging Face Spaces
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has low install friction, carries a permissive Apache-2.0 license, and provides essential utilities for anyone working with Hugging Face models and datasets. No known vulnerabilities. Install it if you need to programmatically interact with the Hub.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later (supports current versions, <3.15).
- Low install friction with a pure-Python wheel.
- Active maintenance with a recent release 24 days ago and 3801 repository stars.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions.
last release 2026-07-21 (24 days) · last repo commit 2026-08-14 · 3,801 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 372,618 downloads/mo, #7,159 on PyPI
Alternatives
Verify before relying
pip install spaces
from spaces import download_file
download_file(repo_id="model/repo", filename="config.json")- Specific API functions available in the spaces package beyond what the description excerpt covers.
- Performance characteristics and rate-limiting behavior when downloading large models.
- Whether optional dependencies are needed for typical workflows.
- Actual runtime behavior and caching mechanisms for downloaded files.
What it is and what it does
Spaces is a utilities package for interacting with the Hugging Face Hub platform. It provides functions to download pre-trained models and datasets, upload files and folders to repositories, manage repositories, run inference on deployed models, and execute jobs on Hugging Face infrastructure. The package wraps HTTP communication to the Hub's API and is designed for both human developers and AI agents, with a CLI that adapts output based on context.
The package depends on requests and httpx for network communication, pydantic for data validation, and gradio for UI integration. Installation is straightforward with pip, and the core functionality requires Python 3.10 or later with no external system dependencies beyond the runtime dependencies listed.
Use it for
- Download pre-trained models or datasets from the Hub for use in local machine learning projects.
- Upload trained models, datasets, or applications to the Hub for sharing with the community.
- Programmatically manage model repositories, including creating repos and updating metadata.
- Run inference on models deployed to the Hub without hosting your own infrastructure.
- Automate model versioning and file management as part of a training or deployment pipeline.
- Integrate Hub access into agent workflows via CLI with context-aware output formatting.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has low install friction, carries a permissive Apache-2.0 license, and provides essential utilities for anyone working with Hugging Face models and datasets. No known vulnerabilities. Install it if you need to programmatically interact with the Hub.
Install
spaces on PyPI
Before you install
Low install friction with a pure-Python wheel. Active maintenance with a recent release 24 days ago and 3801 repository stars. Depends on well-established packages: packaging, typing-extensions, requests, gradio, pydantic, and httpx.
Requires Python 3.10 or later (supports current versions, <3.15).
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions.
Quickstart
pip install spaces
from spaces import download_file
download_file(repo_id="model/repo", filename="config.json")
Verify before relying
- Specific API functions available in the spaces package beyond what the description excerpt covers.
- Performance characteristics and rate-limiting behavior when downloading large models.
- Whether optional dependencies are needed for typical workflows.
- Actual runtime behavior and caching mechanisms for downloaded files.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release <3.15,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 6 packagespackagingtyping-extensionsrequestsgradiopydantichttpx |
| Maintenance | Actively maintained 24 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 372,618 / month, #7,159 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: spaces-0.51.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “hugging face spaces utilities”
- spacesProvides utilities for working with Hugging Face Spaces, including…
- hf-gradioA CLI tool for discovering endpoints and sending predictions to…
- gradio-clientCalls any Gradio app as a Python API with a simple Client interface,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also hf · hf-gradio · hf-transfer · text-generation · kernels-data · truss-transfer · modelscope-hub · gradio-client