A simple Textual filesystem picker dialog library.
Project description
textual-fspicker
An example of textual-fspicker
being used in a Textual application
Introduction
This library provides a simple set of filesystem navigation and picking dialogs (actually, as of the time of writing, it only provides two, this is a very early WiP you're seeing). The aim is to provide "ready to go" dialogs that should also be fairly easy to tailor to your own applications.
Installing
The package can be installed with pip
or related tools, for example:
$ pip install textual-fspicker
The library
Right at the moment there's just two dialogs available:
FileOpen
-- For selecting a file from the filesystem.FileSave
-- For selecting a file for saving in the filesystem.SelectDirectory
-- For selecting a directory from the filesysrem.
You can see them in action in the demo/test code.
Yes, I know that documentation is lacking right now -- I'm still fleshing out how this will work and what it will provide -- so the best place to see how the code can be used is in that demo/test code.
TODO
- Flesh out what's displayed for directory entries
- Add lots of styling options for directory entries
- Settle on a final set of default styles for the dialogs
- Add a more file-save-oriented dialog
- Add a directory picking dialog
- Add file filtering (extensions using
Select
) - Expose the hidden show/hide facility of the navigator in the dialogs
- Better documentation
- Test on Windows
- Add custom mtime formatting
- Add support for showing different times
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file textual_fspicker-0.0.11.tar.gz
.
File metadata
- Download URL: textual_fspicker-0.0.11.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 052304e94b9d4f6af75bf338a8d1a34b7a12f511d018eba2a4a3151159df4db5 |
|
MD5 | 1d1f82f29cd9a9d8b53b7998a92cf755 |
|
BLAKE2b-256 | e5c4e8129359ab36c7d34efab08182a43b27b43712fa1354476fa3eb3149de82 |
File details
Details for the file textual_fspicker-0.0.11-py3-none-any.whl
.
File metadata
- Download URL: textual_fspicker-0.0.11-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c8e2bf5ddf57874f046ea01b1cef77a2a983fbc8e1953f6e9b479751b7303b6 |
|
MD5 | dcf98f0440f974e761d0e1702449a3aa |
|
BLAKE2b-256 | 1d4ae15ec8ccc5af1b058c3c61e6ef69aa0751954a9671846a8081c6e30b7088 |