Skip to content

longtailfinancial/TokenEngineering

Repository files navigation

Token Engineering

GitHub repo size Language Count

A collection of tools, boilerplates, scripts, and functions often used in our Token Engineering and Software Engineering tasks.

Packages and Modules

⠗ ltfte ⠺

Longtail Financial Token Engineering tools.

Usage:

import tokenengi.ltfte
or 
from tokenengi import ltfte

[ NEED ASSISTANCE UPDATING THIS SECTION. ]

⠗ ltfswe ⠺

Longtail Financial Software Engineering tools.

ltfswe can be imported by the following lines.

import tokenengi.ltswe
or 
from tokenengi import ltfswe

Contents:

togglize - A decorator for Panel widget functions that gives you a toggle button to hide/unhide the widget. The decorator is able to accept two optional parameters — the button label (string), and the button color (string). By default, the default button label is "Hide / Unhide Widget" and the default button color is green.

Currently it supports three colors: red, green, and blue.

Usage:

import panel as pn
pn.extension()

from tokenengi.ltfswe import togglize

@togglize("Hide/Unhide Blue Square", "blue")
def some_panel_widget():
    return pn.pane.PNG('blue_square.png')

clamp - A function that binds an int or float to a minimum or maximum value.

For example, if we clamped an int x to [0, 1000] and gave it a value of 1002, the int will remain at 1000. Inversely, if we assigned -2 to x, then x remains at 0.

Usage:

from tokenengi.ltfswe import clamp

x = 1001
clamp(x, 0, 1000)

print(x)
# X will be 1000.

About

Repository for LTF token modelling and engineering

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •