Installation
Installation
Get up and running with ByteHide Logs for Python in minutes.
Requirements
- Python 3.7 or higher - Ensure you have a compatible Python version
- pip - Python package manager (usually included with Python)
Check your Python version:
Bash
python --versionpython --versionInstall the SDK
Install the bytehide-logs package using pip:
Bash
pip install bytehide-logspip install bytehide-logsFor a specific version:
Bash
pip install bytehide-logs==1.0.0pip install bytehide-logs==1.0.0Verify Installation
Create a test script to verify the installation:
Python
from bytehide_logs import Log, LogSettings, LogLevel
# Verify imports work
print("ByteHide Logs installed successfully!")
# Initialize with basic settings
Log.set_project_token("test-token")
Log.initialize(LogSettings(
console_enabled=True,
minimum_level=LogLevel.INFO
))
# Test logging
Log.info("Verification successful - ready to log!")from bytehide_logs import Log, LogSettings, LogLevel
# Verify imports work
print("ByteHide Logs installed successfully!")
# Initialize with basic settings
Log.set_project_token("test-token")
Log.initialize(LogSettings(
console_enabled=True,
minimum_level=LogLevel.INFO
))
# Test logging
Log.info("Verification successful - ready to log!")Run the verification script:
Bash
python verify_installation.pypython verify_installation.pyExpected output:
CODE
ByteHide Logs installed successfully!
Verification successful - ready to log!ByteHide Logs installed successfully!
Verification successful - ready to log!Installation Variations
Using Requirements File
Add to requirements.txt:
CODE
bytehide-logs>=1.0.0bytehide-logs>=1.0.0Then install:
Bash
pip install -r requirements.txtpip install -r requirements.txtDevelopment Installation
Clone the repository and install in editable mode:
Bash
git clone https://github.com/bytehide/bytehide-logs-python.git
cd bytehide-logs-python
pip install -e .git clone https://github.com/bytehide/bytehide-logs-python.git
cd bytehide-logs-python
pip install -e .With Optional Dependencies
Install with extra features:
Bash
# Development dependencies
pip install bytehide-logs[dev]
# All extras
pip install bytehide-logs[all]# Development dependencies
pip install bytehide-logs[dev]
# All extras
pip install bytehide-logs[all]Python Version Compatibility
ByteHide Logs supports Python 3.7 and later:
| Python Version | Supported |
|---|---|
| Python 3.7 | ✓ |
| Python 3.8 | ✓ |
| Python 3.9 | ✓ |
| Python 3.10 | ✓ |
| Python 3.11 | ✓ |
| Python 3.12 | ✓ |
Next Steps
After installation, proceed to:
- Quick Start - Get logging running in your application
- Configuration - Configure logging behavior
- Set Project Token - Configure your credentials
Troubleshooting
"No module named 'bytehide_logs'"
Make sure the package is installed in the correct Python environment:
Bash
pip install bytehide-logs
python -c "import bytehide_logs; print(bytehide_logs.__version__)"pip install bytehide-logs
python -c "import bytehide_logs; print(bytehide_logs.__version__)"Version Compatibility Issues
If you encounter compatibility issues, try installing a specific version:
Bash
pip install bytehide-logs==1.0.0 --force-reinstallpip install bytehide-logs==1.0.0 --force-reinstallVirtual Environment Recommendation
Always use a virtual environment to avoid dependency conflicts:
Bash
# Create virtual environment
python -m venv venv
# Activate
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install
pip install bytehide-logs# Create virtual environment
python -m venv venv
# Activate
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install
pip install bytehide-logsSupport
For installation issues, visit the Support Portal.