Skip to main content

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

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.5.1.tar.gz (51.2 MB 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.5.1-py3-none-any.whl (34.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: file_tree-1.5.1.tar.gz
  • Upload date:
  • Size: 51.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.30

File hashes

Hashes for file_tree-1.5.1.tar.gz
Algorithm Hash digest
SHA256 d65720690b3381be4e6e8a0956b25458d8bd40e7a3a9e9d9578666669f7ce7fc
MD5 dadbfee0e13795a728d1b32d8c51c693
BLAKE2b-256 2507b06165e6a9790fc04479a81881a3c231ddaa69dc8b74d65680d4b1b6fa33

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for file_tree-1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f7a65a16609ec2f8c5caad3666788280f500e3f0e8640ec88562540aed001114
MD5 bedec6c2be670c0d0c5af360a0bd2b44
BLAKE2b-256 48f9492fd960ce21c3d92ff3e796a1b361625e849f0bcde8ce9398a8a8d754d4

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 Sentry Error logging StatusPage Status page