Installation¶
Requirements¶
Morphic requires Python 3.10.9 or higher and supports:
- Python 3.10
- Python 3.11
- Python 3.12
Install from PyPI¶
Coming Soon
Morphic will be available on PyPI once the initial release is published.
Install from Source¶
Using pip¶
Development Installation¶
For development work, clone the repository and install in editable mode:
This installs Morphic in development mode with all development dependencies including:
pytest- Testing frameworkpytest-cov- Coverage reportingblack- Code formattingruff- Linting and code analysismypy- Static type checkingpydantic- Data validation (for examples)
Verify Installation¶
After installation, verify that Morphic is working correctly:
Or run a quick test:
from morphic import Registry
from abc import ABC
class Service(Registry, ABC):
pass
class TestService(Service):
pass
instance = Service.of("TestService")
print(type(instance).__name__) # Should print "TestService"
Dependencies¶
Morphic has minimal runtime dependencies:
typing-extensions>=4.0.0- Enhanced type hints support
Troubleshooting¶
Python Version Issues¶
If you encounter issues with Python version compatibility:
Import Errors¶
If you get import errors after installation:
- Ensure you're using the correct Python environment
- Try reinstalling:
pip uninstall morphic && pip install morphic - Check for conflicting packages
Development Setup Issues¶
For development installation issues:
Next Steps¶
Once installed, head over to the Getting Started guide to learn how to use Morphic.