- 🔄 Organization Management
- Move repositories between organizations
- Batch operations support
- Exception handling for specific repos
- 🔒 Privacy Controls
- Automatic repository privacy management
- Secure token handling
- 📊 Detailed Reporting
- Operation summaries
- Success rate tracking
- Debug logging support
# From source
git clone https://github.com/sumukshashidhar/hf-hub-utils.git
cd hf-hub-utils
pip install .
# Using pip (coming soon)
pip install hf-hub-utils
Move datasets and models between Hugging Face organizations with ease.
# Basic usage
hf-hub-utils org-mover --source source-org --target target-org
# With custom token
hf-hub-utils org-mover --source source-org --target target-org --token your-token
# Exclude specific repositories
hf-hub-utils org-mover --source source-org --target target-org --exceptions exceptions.txt
# Enable detailed logging
hf-hub-utils org-mover --source source-org --target target-org --debug
Create an exceptions.txt
file to specify repositories to skip:
# exceptions.txt
# One repository name per line (without organization prefix)
my-dataset-1
my-model-2
- ✨ Automatic repository privacy management
- 🔄 Smart conflict resolution with timestamps
- 📝 Detailed logging with progress tracking
- ⚡ Efficient batch operations
- 🎯 Selective migration with exceptions
Variable | Description | Required | Used By |
---|---|---|---|
HF_TOKEN |
Hugging Face API token | No (can use --token) | org-mover |
We welcome contributions! Here's how you can help:
- 🍴 Fork the repository
- 🌿 Create a feature branch (
git checkout -b feature/amazing-feature
) - 💻 Make your changes
- ✅ Run tests and linting
- 📝 Update documentation if needed
- 🔄 Push your changes (
git push origin feature/amazing-feature
) - 🎯 Open a Pull Request
# Clone the repository
git clone https://github.com/sumukshashidhar/hf-hub-utils.git
cd hf-hub-utils
# Create a virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install development dependencies
pip install -e ".[dev]"
hf_hub_utils/
├── common/ # Shared utilities
│ ├── logging.py # Logging configuration
│ └── ...
├── org_mover/ # Organization mover tool
│ ├── cli.py # Command-line interface
│ ├── mover.py # Core functionality
│ └── ...
└── cli.py # Main CLI entry point
This project is licensed under the MIT License - see the LICENSE file for details.
- Hugging Face for their amazing platform and APIs
- All our contributors and users
Made with ❤️ by the community