{"id":21440,"library":"hstrat","title":"hstrat","description":"hstrat enables phylogenetic inference on distributed digital evolution populations. It provides tools for reconstructing evolutionary history from digital organisms. Current version is 1.25.0, with a monthly release cadence.","status":"active","version":"1.25.0","language":"python","source_language":"en","source_url":"https://github.com/mmore500/hstrat","tags":["phylogenetic-inference","digital-evolution","distributed-systems"],"install":[{"cmd":"pip install hstrat","lang":"bash","label":"Stable"}],"dependencies":[],"imports":[{"note":"Main package; no common import mistake.","wrong":null,"symbol":"hstrat","correct":"import hstrat"}],"quickstart":{"code":"import hstrat\nimport os\n\n# Example: create a simple phylogenetic tree\nfrom hstrat import hstrat\n\ncol = hstrat.HereditaryStratigraphicColumn()\n# Deposit a stratum\ncol.DepositStrata(1)\nprint('Column deposited successfully')","lang":"python","description":"Basic usage: import hstrat and create a HereditaryStratigraphicColumn."},"warnings":[{"fix":"Migrate to 1.x API: refer to migration guide at https://hstrat.readthedocs.io/en/latest/migration.html","message":"In version 1.0.0, the API was overhauled. Many functions were renamed or moved. Upgrade carefully.","severity":"breaking","affected_versions":"<1.0.0"},{"fix":"Update Python to 3.10 or newer.","message":"The package requires Python >=3.10; using older versions will cause import errors.","severity":"gotcha","affected_versions":"all"},{"fix":"Replace with `hstrat.new_func` as per deprecation warning details.","message":"The function `hstrat.deprecated_func` is deprecated since 1.20.0 and will be removed in 2.0.0.","severity":"deprecated","affected_versions":">=1.20.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run `pip install hstrat` and ensure Python >=3.10.","cause":"hstrat not installed or Python environment not matching.","error":"ModuleNotFoundError: No module named 'hstrat'"},{"fix":"Use `from hstrat import hstrat; col = hstrat.HereditaryStratigraphicColumn()` or `from hstrat.hstrat import HereditaryStratigraphicColumn`.","cause":"Wrong import path; class is inside submodules.","error":"AttributeError: module 'hstrat' has no attribute 'HereditaryStratigraphicColumn'"},{"fix":"Check the API documentation for your version. Use ``help(hstrat.HereditaryStratigraphicColumn)`` to see correct parameters.","cause":"API mismatch with older version.","error":"TypeError: __init__() got an unexpected keyword argument 'foo'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}