fslpy


Namefslpy JSON
Version 3.20.0 PyPI version JSON
download
home_pageNone
SummaryFSL Python library
upload_time2024-07-10 15:38:16
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseApache License Version 2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            fslpy
=====

.. image:: https://img.shields.io/pypi/v/fslpy.svg
   :target: https://pypi.python.org/pypi/fslpy/

.. image:: https://anaconda.org/conda-forge/fslpy/badges/version.svg
   :target: https://anaconda.org/conda-forge/fslpy

.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.1470750.svg
   :target: https://doi.org/10.5281/zenodo.1470750

.. image:: https://git.fmrib.ox.ac.uk/fsl/fslpy/badges/master/coverage.svg
   :target: https://git.fmrib.ox.ac.uk/fsl/fslpy/commits/master/


The ``fslpy`` project is a `FSL <http://fsl.fmrib.ox.ac.uk/fsl/fslwiki/>`_
programming library written in Python. It is used by `FSLeyes
<https://git.fmrib.ox.ac.uk/fsl/fsleyes/fsleyes/>`_.


``fslpy`` is tested against Python versions 3.8, 3.9, 3.10, and 3.11.


Installation
------------


Install ``fslpy`` and its core dependencies via pip::

    pip install fslpy


``fslpy`` is also available on `conda-forge <https://conda-forge.org/>`_::

    conda install -c conda-forge fslpy


Dependencies
------------


All of the core dependencies of ``fslpy`` are listed in the
`pyproject.toml <pyproject.toml>`_ file.

Some optional dependencies (labelled ``extra`` in ``pyproject.toml``) provide
addditional functionality:

- ``wxPython``: The `fsl.utils.idle <fsl/utils/idle.py>`_ module has
  functionality  to schedule functions on the ``wx`` idle loop.

- ``indexed_gzip``: The `fsl.data.image.Image <fsl/data/image.py>`_ class
  can use ``indexed_gzip`` to keep large compressed images on disk instead
  of decompressing and loading them into memory..

- ``trimesh``/``rtree``: The `fsl.data.mesh.TriangleMesh <fsl/data/mesh.py>`_
  class has some methods which use ``trimesh`` to perform geometric queries
  on the mesh.

- ``Pillow``: The `fsl.data.bitmap.Bitmap <fsl/data/bitmap.py>`_ class uses
  ``Pillow`` to load image files.


If you are using Linux, you need to install wxPython first, as binaries are
not available on PyPI. Install wxPython like so, changing the URL for your
specific platform::

    pip install -f https://extras.wxpython.org/wxPython4/extras/linux/gtk2/ubuntu-16.04/ wxpython


Once wxPython has been installed, you can type the following to install the
remaining optional dependencies::

    pip install "fslpy[extra]"


Dependencies for testing and documentation are also listed in ``pyproject.toml``,
and are respectively labelled as ``test`` and ``doc``.


Non-Python dependencies
^^^^^^^^^^^^^^^^^^^^^^^


The `fsl.data.dicom <fsl/data/dicom.py>`_ module requires the presence of
Chris Rorden's `dcm2niix <https://github.com/rordenlab/dcm2niix>`_ program.


The ``rtree`` library assumes that ``libspatialindex`` is installed on
your system.


The `fsl.transform.x5 <fsl/transform/x5.py>`_ module uses `h5py
<https://www.h5py.org/>`_, which requires ``libhdf5``.


Documentation
-------------

API documentation for ``fslpy`` is hosted at
https://open.win.ox.ac.uk/pages/fsl/fslpy/.

``fslpy`` is documented using `sphinx <http://http://sphinx-doc.org/>`_. You
can build the API documentation by running::

    pip install ".[doc]"
    sphinx-build doc html

The HTML documentation will be generated and saved in the ``html/``
directory.


Tests
-----

Run the test suite via::

    pip install ".[test]"
    pytest


Some tests will only pass if the test environment meets certain criteria -
refer to the ``tool.pytest.init_options`` section of
[``pyproject.toml``](pyproject.toml) for a list of [pytest
marks](https://docs.pytest.org/en/7.1.x/example/markers.html) which can be
selectively enabled or disabled.


Contributing
------------


If you are interested in contributing to ``fslpy``, check out the
`contributing guide <doc/contributing.rst>`_.


Credits
-------


The `fsl.data.dicom <fsl/data/dicom.py>`_ module is little more than a thin
wrapper around Chris Rorden's `dcm2niix
<https://github.com/rordenlab/dcm2niix>`_ program.


The `example.mgz <tests/testdata/example.mgz>`_ file, used for testing,
originates from the ``nibabel`` test data set.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "fslpy",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "Paul McCarthy <pauldmccarthy@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/d5/54/9e64a7f0620e912d5dd97347ea5c09e2fd6db8371b1c40bb9b27353d6863/fslpy-3.20.0.tar.gz",
    "platform": null,
    "description": "fslpy\n=====\n\n.. image:: https://img.shields.io/pypi/v/fslpy.svg\n   :target: https://pypi.python.org/pypi/fslpy/\n\n.. image:: https://anaconda.org/conda-forge/fslpy/badges/version.svg\n   :target: https://anaconda.org/conda-forge/fslpy\n\n.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.1470750.svg\n   :target: https://doi.org/10.5281/zenodo.1470750\n\n.. image:: https://git.fmrib.ox.ac.uk/fsl/fslpy/badges/master/coverage.svg\n   :target: https://git.fmrib.ox.ac.uk/fsl/fslpy/commits/master/\n\n\nThe ``fslpy`` project is a `FSL <http://fsl.fmrib.ox.ac.uk/fsl/fslwiki/>`_\nprogramming library written in Python. It is used by `FSLeyes\n<https://git.fmrib.ox.ac.uk/fsl/fsleyes/fsleyes/>`_.\n\n\n``fslpy`` is tested against Python versions 3.8, 3.9, 3.10, and 3.11.\n\n\nInstallation\n------------\n\n\nInstall ``fslpy`` and its core dependencies via pip::\n\n    pip install fslpy\n\n\n``fslpy`` is also available on `conda-forge <https://conda-forge.org/>`_::\n\n    conda install -c conda-forge fslpy\n\n\nDependencies\n------------\n\n\nAll of the core dependencies of ``fslpy`` are listed in the\n`pyproject.toml <pyproject.toml>`_ file.\n\nSome optional dependencies (labelled ``extra`` in ``pyproject.toml``) provide\naddditional functionality:\n\n- ``wxPython``: The `fsl.utils.idle <fsl/utils/idle.py>`_ module has\n  functionality  to schedule functions on the ``wx`` idle loop.\n\n- ``indexed_gzip``: The `fsl.data.image.Image <fsl/data/image.py>`_ class\n  can use ``indexed_gzip`` to keep large compressed images on disk instead\n  of decompressing and loading them into memory..\n\n- ``trimesh``/``rtree``: The `fsl.data.mesh.TriangleMesh <fsl/data/mesh.py>`_\n  class has some methods which use ``trimesh`` to perform geometric queries\n  on the mesh.\n\n- ``Pillow``: The `fsl.data.bitmap.Bitmap <fsl/data/bitmap.py>`_ class uses\n  ``Pillow`` to load image files.\n\n\nIf you are using Linux, you need to install wxPython first, as binaries are\nnot available on PyPI. Install wxPython like so, changing the URL for your\nspecific platform::\n\n    pip install -f https://extras.wxpython.org/wxPython4/extras/linux/gtk2/ubuntu-16.04/ wxpython\n\n\nOnce wxPython has been installed, you can type the following to install the\nremaining optional dependencies::\n\n    pip install \"fslpy[extra]\"\n\n\nDependencies for testing and documentation are also listed in ``pyproject.toml``,\nand are respectively labelled as ``test`` and ``doc``.\n\n\nNon-Python dependencies\n^^^^^^^^^^^^^^^^^^^^^^^\n\n\nThe `fsl.data.dicom <fsl/data/dicom.py>`_ module requires the presence of\nChris Rorden's `dcm2niix <https://github.com/rordenlab/dcm2niix>`_ program.\n\n\nThe ``rtree`` library assumes that ``libspatialindex`` is installed on\nyour system.\n\n\nThe `fsl.transform.x5 <fsl/transform/x5.py>`_ module uses `h5py\n<https://www.h5py.org/>`_, which requires ``libhdf5``.\n\n\nDocumentation\n-------------\n\nAPI documentation for ``fslpy`` is hosted at\nhttps://open.win.ox.ac.uk/pages/fsl/fslpy/.\n\n``fslpy`` is documented using `sphinx <http://http://sphinx-doc.org/>`_. You\ncan build the API documentation by running::\n\n    pip install \".[doc]\"\n    sphinx-build doc html\n\nThe HTML documentation will be generated and saved in the ``html/``\ndirectory.\n\n\nTests\n-----\n\nRun the test suite via::\n\n    pip install \".[test]\"\n    pytest\n\n\nSome tests will only pass if the test environment meets certain criteria -\nrefer to the ``tool.pytest.init_options`` section of\n[``pyproject.toml``](pyproject.toml) for a list of [pytest\nmarks](https://docs.pytest.org/en/7.1.x/example/markers.html) which can be\nselectively enabled or disabled.\n\n\nContributing\n------------\n\n\nIf you are interested in contributing to ``fslpy``, check out the\n`contributing guide <doc/contributing.rst>`_.\n\n\nCredits\n-------\n\n\nThe `fsl.data.dicom <fsl/data/dicom.py>`_ module is little more than a thin\nwrapper around Chris Rorden's `dcm2niix\n<https://github.com/rordenlab/dcm2niix>`_ program.\n\n\nThe `example.mgz <tests/testdata/example.mgz>`_ file, used for testing,\noriginates from the ``nibabel`` test data set.\n",
    "bugtrack_url": null,
    "license": "Apache License Version 2.0",
    "summary": "FSL Python library",
    "version": "3.20.0",
    "project_urls": {
        "Documentation": "https://open.win.ox.ac.uk/pages/fsl/fslpy/",
        "Repository": "https://git.fmrib.ox.ac.uk/fsl/fslpy/"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8969110d05de35481a115804629aa36153179cd170995ab10c2dc5076727638d",
                "md5": "792f191e99421748c4dbdff4b2351913",
                "sha256": "b93f6bc5bc5faed497467c6fd534db635a05c03d3af820a76aaea86e64a0a8e8"
            },
            "downloads": -1,
            "filename": "fslpy-3.20.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "792f191e99421748c4dbdff4b2351913",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 4786703,
            "upload_time": "2024-07-10T15:38:08",
            "upload_time_iso_8601": "2024-07-10T15:38:08.188419Z",
            "url": "https://files.pythonhosted.org/packages/89/69/110d05de35481a115804629aa36153179cd170995ab10c2dc5076727638d/fslpy-3.20.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d5549e64a7f0620e912d5dd97347ea5c09e2fd6db8371b1c40bb9b27353d6863",
                "md5": "62d89a015be19303fa5e59e1bca6bad1",
                "sha256": "8e64655594a2ca809ac3f379207831ca3cde1c23d554e5ce1ba710d7bef6e446"
            },
            "downloads": -1,
            "filename": "fslpy-3.20.0.tar.gz",
            "has_sig": false,
            "md5_digest": "62d89a015be19303fa5e59e1bca6bad1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 4789550,
            "upload_time": "2024-07-10T15:38:16",
            "upload_time_iso_8601": "2024-07-10T15:38:16.772437Z",
            "url": "https://files.pythonhosted.org/packages/d5/54/9e64a7f0620e912d5dd97347ea5c09e2fd6db8371b1c40bb9b27353d6863/fslpy-3.20.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-10 15:38:16",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "fslpy"
}
        
Elapsed time: 0.25511s