Skip to main content

script:

from kwattr import kwattr

@kwattr('wait chdir min max hide')
def run(*args, **kwargs):
    return args, kwargs

@kwattr('all dirs')
def scan(arg, idir=False, ifile=True, all=False, dirs=False):
    return arg, idir, ifile, all, dirs

print run.wait('sample.exe')
print run('sample.exe')
print run.wait.chdir('sample.exe')

out:

(('sample.exe',), {'max': False, 'chdir': False, 'hide': False, 'min': False, 'wait': True})
(('sample.exe',), {'max': False, 'chdir': False, 'hide': False, 'wait': False, 'min': False})
(('sample.exe',), {'max': False, 'chdir': True, 'hide': False, 'min': False, 'wait': True})

Metadata

Release files for kwattr 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kwattr 1.0
File Size Uploaded
kwattr-1.0.zip 2.7 kB Details

Release files / kwattr-1.0.zip

Download URL kwattr-1.0.zip
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fadef0786f05d656a05242bc4868a1ec1267622bdfa65957e26c1a4abc8185db
BLAKE2b-256 checksum
How to use checksums
9cde11e4943491709ec7e8a507c402274598c9fdedb8d602edd9b84ec6b5899d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

2.0

1 release file

This release

1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page