findersel
Get selected files from macOS Finder and use them programatically within your Python program.
Installation
$ pip install findersel
Usage
Select some files on Finder:
And get the selected files:
>>> import findersel
>>> list(findersel.get_selected_files())
['/Users/sdelquin/findersel/LICENSE',
'/Users/sdelquin/findersel/Makefile',
'/Users/sdelquin/findersel/README.md',
'/Users/sdelquin/findersel/requirements.txt',
'/Users/sdelquin/findersel/setup.cfg',
'/Users/sdelquin/findersel/setup.py']
Note than the function returns a generator.
You can get the selected files ordered by name with:
>>> import findersel
>>> list(findersel.get_selected_files(sort=True))
['/Users/sdelquin/findersel/Makefile',
'/Users/sdelquin/findersel/README.md',
'/Users/sdelquin/findersel/requirements.txt',
'/Users/sdelquin/findersel/setup.cfg',
'/Users/sdelquin/findersel/setup.py',
'/Users/sdelquin/findersel/LICENSE']
Changelog
| 0.1.4 | 15/02/2023 |
|---|
- Fix documentation.
| 0.1.3 | 15/02/2023 |
|---|
- Add parameter to sort files.
| 0.1.2 | 20/06/2021 |
|---|
- Get rid of prettyconf external dependency.
| 0.1.1 | 20/06/2021 |
|---|
- Add documentation.
- Fix bug when no files are selected.
| 0.1.0 | 20/06/2021 |
|---|
- Add initial code.
License
MIT
Metadata
Release files for findersel 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| findersel-0.1.4.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| findersel-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.9 kB
Release files / findersel-0.1.4.tar.gz
| Download URL | findersel-0.1.4.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c6e368a7a7768e2a5e23e55c3c90508252696a2b114f1164e3dc685be6aa337
|
|
BLAKE2b-256 checksum How to use checksums |
98721ce898998fa3aff3e8cb155245c36c22a66533629b4d1b20b618f96a11a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Release files / findersel-0.1.4-py3-none-any.whl
| Download URL | findersel-0.1.4-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
512f194864e5974784350c01595dd5fb132a2dd7e9a89265941529eb36bf3348
|
|
BLAKE2b-256 checksum How to use checksums |
4c0a02a8a74f1119df9bd7ed023daaf559cb3b5c7726b73f5b5bbf1f6b826c16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|