Skip to main content

Get files from a folder

Project description

winzy-get-the-file

PyPI Changelog Tests License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

winzy_get_the_file-0.0.1.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

winzy_get_the_file-0.0.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

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

Hashes for winzy_get_the_file-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e498e65dcb8d53757ea374c130bd9ed5bd40ceffe334099d061f9b9df9be2718
MD5 7ab68bf7ec8c8aec281e238e05ebf9b0
BLAKE2b-256 e4d4e86d30d695b2f6a0842c73e9b430c8f12503de3a06f3646462690c67f0ea

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file winzy_get_the_file-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for winzy_get_the_file-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 93442238224519945d4d943ee0227ff34ad01f0bcc0af87c2f7261c68a430d11
MD5 95f519887f2cb5b34934cdea5d5eafe4
BLAKE2b-256 1afa5482f9d5315be5e2d29ad48cbff1632ba2c02cc74d4c268f654b1a09b250

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page