Installation
Requirements
Python 3.12 or higher
uv (recommended) or pip
PyPI Release
Note
Once stable, this package will be officially released and distributed through PyPI. Stay tuned for updates!
Local Development Installation
For now, you can install the package locally for development:
Using uv (Recommended)
uv is a fast Python package installer and resolver.
# Clone the repository
git clone https://github.com/DataArtifex/mtnards-toolkit.git
cd mtnards-toolkit
# Sync dependencies and install package in editable mode
uv sync
# Activate the virtual environment
source .venv/bin/activate # On macOS/Linux
# or
.venv\Scripts\activate # On Windows
Using pip
# Clone the repository
git clone https://github.com/DataArtifex/mtnards-toolkit.git
cd mtnards-toolkit
# Create a virtual environment (recommended)
python -m venv .venv
source .venv/bin/activate # On macOS/Linux
# Install in editable mode
pip install -e .
Optional Dependencies
MCP Server (Separate Package)
MCP server support has moved to a separate package and is not installed with this toolkit. See the project README for updates on MCP availability.
Development Tools
To install development dependencies (testing, linting, etc.):
# With pip
pip install -e ".[dev]"
# With uv
uv sync --all-extras
Documentation Build Tools
To build the documentation locally:
# With pip
pip install -e ".[docs]"
# With uv
uv sync --group docs
Verification
After installation, verify that the package is correctly installed:
import dartfx.mtnards
print(dartfx.mtnards.__version__)
You can also test the basic functionality:
from dartfx.mtnards import MtnaRdsServer
# Connect to a public server
server = MtnaRdsServer(host="rds.highvaluedata.net")
print(server.info)
Configuration
Environment Variables
For production use or when working with authenticated servers, set your credentials via environment variables:
export MTNA_RDS_HOST="rds.highvaluedata.net"
export MTNA_RDS_API_KEY="your-api-key"
You can also use a .env file in your project root:
MTNA_RDS_HOST=rds.highvaluedata.net
MTNA_RDS_API_KEY=your-api-key
Warning
Never commit your .env file to version control. Make sure it’s included
in your .gitignore.
Troubleshooting
Import Errors
If you encounter import errors, ensure that:
You’ve activated the correct virtual environment
The package is installed in editable mode with
pip install -e .oruv syncYour Python version is 3.12 or higher
SSL Certificate Issues
If you encounter SSL certificate verification issues when connecting to an RDS server, you can temporarily disable SSL verification (not recommended for production):
server = MtnaRdsServer(
host="rds.example.com",
ssl_verify=False # Use with caution
)
Next Steps
After installation, proceed to the Quick Start Guide guide to learn how to use the toolkit.