Skip to main content

Describe structure directory for visualisation and pipeline

Project description

PyPI - Downloads Documentation Documentation DOI Pipeline status Coverage report

Framework to represent structured directories in python as FileTree objects. FileTrees can be read in from simple text files describing the directory structure. This is particularly useful for pipelines with large number of input, output, and intermediate files. It can also be used to visualise the data in structured directories using FSLeyes or file-tree on the command line.

Setting up local development environment

This package uses uv for project management. You will need to install uv to develop this package.

First clone the repository:

git clone https://git.fmrib.ox.ac.uk/fsl/file-tree.git

Then we can ask uv to set up the local envoriment.

cd file-tree
uv sync

Running tests

Tests are run using the pytest framework. This will already be available in the uv virtual environment.

uv run pytest src/tests

Compiling documentation

The documentation is build using sphinx.

cd doc
uv run sphinx-build source build
open build/index.html

Contributing

Merge requests with any bug fixes or documentation updates are always welcome.

For new features, please raise an issue to allow for discussion before you spend the time implementing them.

Releasing new versions

  • Ensure CHANGELOG.md is up to date.
    • All commits can be seen in gitlab by clicking the "Unreleased" link in "CHANGELOG.md"
    • Add new header just below "## [Unreleased]" with the new version
    • Update the footnotes for both the new version and [Unreleased]
  • Edit the version number on pyproject.toml
  • Create a new tag for the version number
  • Push to gitlab (including tags)
    • Check the tagged pipeline to see if it successfully uploaded file-tree to pypi.
  • Upload code on conda-forge using their automated release detection.

Running tests

Tests are run using the pytest framework. After installation (pip install pytest) they can be run from the project root as:

pytest src/tests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

file_tree-1.6.1.tar.gz (34.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

file_tree-1.6.1-py3-none-any.whl (37.0 kB view details)

Uploaded Python 3

File details

Details for the file file_tree-1.6.1.tar.gz.

File metadata

  • Download URL: file_tree-1.6.1.tar.gz
  • Upload date:
  • Size: 34.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.9

File hashes

Hashes for file_tree-1.6.1.tar.gz
Algorithm Hash digest
SHA256 f46705e9e51f2ac2648ac4ff849207e4574d2ac53e648286242df24c45598db9
MD5 6f626baeafbb702a924f52c15905a3f8
BLAKE2b-256 33c6161c43a5d5bad0e162b0597f05ef42ca63e281145dca1acb1dc00ad3566b

See more details on using hashes here.

File details

Details for the file file_tree-1.6.1-py3-none-any.whl.

File metadata

  • Download URL: file_tree-1.6.1-py3-none-any.whl
  • Upload date:
  • Size: 37.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.9

File hashes

Hashes for file_tree-1.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b010ed47827005dd9eb1d693759f42a6a9c90bbbc9fb7a4fa5859f7280bcb456
MD5 6b10e9dd2ae792213ed19a8787f64e9f
BLAKE2b-256 476865572266ad315ea55391547a9e5a3ef5185a5019f1f5c0be1c935b94d661

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page