Package: tinyscript
TinyScriptMake a CLI tool with very few lines of code.This library is aimed to provide useful features and helpers in order to shorten the number of required lines of code for writing simple and nice-looking command-line interface tools. It is based onargparseand is considered adevelopment kit, on the contrary of popularframeworkslikecement,clickordocopt, as it is not aimed to reinvent the wheel in yet another paradigm.pipinstalltinyscriptPhilosophyThis library is built with the DRY (Don't Repeat Yourself) and KISS (Keep It Stupid Simple) philosophies in mind ; the whole machinery of Tinyscript holds in itsstar import(from tinyscript import *) and itsinitialization(with theinitializefunction).It is aimed to shorten required code by setting a few things while loaded:aproxyparser(coming from the star import) collects arguments definitions and formats help at initialization, preventing from rewriting the whole bunch of code needed to declare anArgumentParser(and define its epilog, and so forth)amain (colored) loggeris preconfigured and can be tuned through two constants so that we don't care for writing a bunch of code needed to configure loggingpreimports(while a bit anti-Pythonic, we confess) of common libraries also reduces the quantity of code requiredamong these, somemodules are enhancedwith new functions and classes that are not natively foreseenLeveraging this allows to create very short scripts withonly the real code that matters, reducing the code to be rewritten to create efficient, nice-looking and sophisticated CLI tools.Note that, while star imports should be avoided according to Python's style guide (seePEP8), it is deliberately extensively used and covering a huge scope in order to shorten code length. This "anti-pattern" pays off after creating a few tools, when we can realize it shortens parts of the code that are often repeated from a tool to another (e.g. for shaping tool's help message).UsageIt is designed to be as simple and straightforward to use as possible. In order to learn and use it, you only need your browser (for consulting the documentation), a text editor and a good Python Interpreter (e.g.IDLE) for using auto-completion or an IDE likePyCharmto get helpers suggested.The point is that you will use:features, enabled by setting flags in the "master" function calledìnitializehelpers, grouped under the "master" submodule calledtsreportingobjects from the global scopePlease see theexample toolsherebelow for examples of usage of features, helpers and reporting.Quick StartCreate from templateEdit sourceRun your toolExample toolsSecurityAppMemDumper(Windows forensics)Bots Scheduler(Web security services job scheduler)DroneSploit(startup script)Evil Pickle Creation Tool(Python evil pickle generation tool)Malicious Macro Tester(malicious VB macro detection)Paddinganograph(base32/64 padding-based steganography)PDF Passwords Bruteforcer(bruteforce tool)Solitaire Cipher(encryption)StegoLSB(Least Significant Bit)StegoPIT(Pixel Indicator Technique)StegoPVD(Pixel Value Differencing)STIX Report GeneratorWLF (Word List Filter)UtilsAudio AssemblerDocumentation Text MaskerEmail OriginLoose Comparison Input Generator(PHP Type Juggling)PDF Preview GeneratorRecursive CompressionWebGrep(Web text search)Zotero CLI