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.6.0.tar.gz (256.5 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.0-py3-none-any.whl (36.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for file_tree-1.6.0.tar.gz
Algorithm Hash digest
SHA256 d36dd6e0a4f2074014180f4a60ff091e10eebe0255f0bc2b855a039ebfec71df
MD5 4bb5a5abddba33acc8e93c37df51b4b9
BLAKE2b-256 13f495792cf645bc308814efec6268d02c856648276c1658a497dd90c5e1892f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for file_tree-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 68d57e44dc477279518f3507e6912ceb7389230744e059ca9b5dd901f56d7abb
MD5 b5211cc7c82e75bceccaaba32f438202
BLAKE2b-256 d97264909a2beb3237c869604acc82d552214c62af019a0f1af3a1aa88ba95c8

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