Tkr

Latest version: v0.2.1.post1

Safety actively analyzes 685525 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.2.0

python
import tkr

mytool1: tkr.Tool = tkr.Tool(
name='foo',
method=lambda x: x+1
)

mytool2: tkr.Tool = tkr.Tool(
name='bar',
method=lambda y: y+2
)

print(tkr.tools)

Output

[<Tool name=foo version=Tool.NoVersion id=Tool.Id.0x7f0db3431690 description=Tool.Description method=<function <lambda> at 0x7f0db34fbe20> type=TOOL.TKR.CLASSIC>, <Tool name=bar version=Tool.NoVersion id=Tool.Id.0x7f0db34300d0 description=Tool.Description method=<function <lambda> at 0x7f0db3277370> type=TOOL.TKR.CLASSIC>, ...]


tkr.Driver:

python
import tkr

driver: tkr.Driver = tkr.Driver(
path='/abc/_tool.py', Defaults to 'README.md' file
folder='tkr' Defaults to 'test' folder
)
print(driver)

If you want to update the driver to not create multiple instances do this:
python
print(driver('otherfeature', 'otherfolder'))

If you want to save the drivers file contents do this:
python
driver.save('somefile')


Links
- [Github](https://github.com/toolkitr/tkr)
- [PyPi](https://pypi.org/project/tkr)
- [Issues](https://github.com/toolkitr/tkr/issues)
- [Discussions](https://github.com/toolkitr/tkr/discussions)

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.