Get files from a folder
Project description
winzy-get-the-file
Get files from a folder
Installation
First install winzy by typing
pip install winzy
Then install this plugin in the same environment as your winzy application.
winzy install winzy-get-the-file
Usage
To get help type winzy gtf --help
Command Line Options
usage: winzy gtf [-h] [-f FOLDER] -p PATTERN
[-t {latest,oldest,random,lastcreated}] [-s]
Get files from a folder
optional arguments:
-h, --help show this help message and exit
-f FOLDER, --folder FOLDER
Folder path to search. Defaults to the current
directory.
-p PATTERN, --pattern PATTERN
Pattern to match files.
-t {latest,oldest,random,lastcreated}, --type {latest,oldest,random,lastcreated}
Type of file to return. Defaults to "latest".
-s, --include-subfolder
Include subfolders
Examples
Get the latest file matching a pattern:
winzy gtf -p "*.txt"
Get the oldest file from a specific folder:
winzy gtf -f /path/to/folder -p "*.py" -t oldest
Get a random file including subfolders:
winzy gtf -p "*.md" -t random -s
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd winzy-get-the-file
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
python -m pytest
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file winzy_get_the_file-0.0.1.tar.gz.
File metadata
- Download URL: winzy_get_the_file-0.0.1.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e498e65dcb8d53757ea374c130bd9ed5bd40ceffe334099d061f9b9df9be2718
|
|
| MD5 |
7ab68bf7ec8c8aec281e238e05ebf9b0
|
|
| BLAKE2b-256 |
e4d4e86d30d695b2f6a0842c73e9b430c8f12503de3a06f3646462690c67f0ea
|
Provenance
The following attestation bundles were made for winzy_get_the_file-0.0.1.tar.gz:
Publisher:
publish.yml on sukhbinder/winzy-get-the-file
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
winzy_get_the_file-0.0.1.tar.gz -
Subject digest:
e498e65dcb8d53757ea374c130bd9ed5bd40ceffe334099d061f9b9df9be2718 - Sigstore transparency entry: 837936898
- Sigstore integration time:
-
Permalink:
sukhbinder/winzy-get-the-file@e9ab34f5ca77a4e916b16a9d49326768916ef01f -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/sukhbinder
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e9ab34f5ca77a4e916b16a9d49326768916ef01f -
Trigger Event:
release
-
Statement type:
File details
Details for the file winzy_get_the_file-0.0.1-py3-none-any.whl.
File metadata
- Download URL: winzy_get_the_file-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93442238224519945d4d943ee0227ff34ad01f0bcc0af87c2f7261c68a430d11
|
|
| MD5 |
95f519887f2cb5b34934cdea5d5eafe4
|
|
| BLAKE2b-256 |
1afa5482f9d5315be5e2d29ad48cbff1632ba2c02cc74d4c268f654b1a09b250
|
Provenance
The following attestation bundles were made for winzy_get_the_file-0.0.1-py3-none-any.whl:
Publisher:
publish.yml on sukhbinder/winzy-get-the-file
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
winzy_get_the_file-0.0.1-py3-none-any.whl -
Subject digest:
93442238224519945d4d943ee0227ff34ad01f0bcc0af87c2f7261c68a430d11 - Sigstore transparency entry: 837936934
- Sigstore integration time:
-
Permalink:
sukhbinder/winzy-get-the-file@e9ab34f5ca77a4e916b16a9d49326768916ef01f -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/sukhbinder
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e9ab34f5ca77a4e916b16a9d49326768916ef01f -
Trigger Event:
release
-
Statement type: