New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

file-tree

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

file-tree

Describe structure directory for visualisation and pipeline

  • 1.6.0
  • PyPI
  • Socket score

Maintainers
1

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc