Skip to main content

Python Toolkit

Project description

TKR - Python Toolkit

License Python Versions

Allow python developers to easily manage classes, methods, and more!

python

Installing

# Linux/macOS
python3 -m pip install -U tkr

# Windows
py -3 -m pip install -U tkr

Development Version:

$ git clone https://github.com/toolkitr/tkr
$ cd tkr

Simple Examples

import tkr

def tkr_tool_test() -> list:
  return tkr.ToolProxy

mytool = tkr.Tool(
  name="mytool",
  description="Simple tool example",
  version="0.0.1",
  method=tkr_tool_test
)

print(mytool.name, mytool(), mytool.version)

# Get tool by name
print(tkr.byname("mytool").id)

Getting code or content from git repo:

import tkr
from tkr.ext import tests

# Defaults to test/README.md which provides info on the latest testing files.
driver: tests.Driver = tests.Driver(path='/abc/_tool.py', folder='tkr') 
print(driver)

Links

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

tkr-0.2.1.post1.tar.gz (12.2 kB view hashes)

Uploaded Source

Built Distribution

tkr-0.2.1.post1-py3-none-any.whl (13.3 kB view hashes)

Uploaded Python 3

Supported by

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