How to use the tokendito.tool.cli function in tokendito

To help you get started, we’ve selected a few tokendito examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dowjones / tokendito / tokendito / __main__.py View on Github external
def main(args=None):  # needed for console script
    """Packge entry point."""
    if __package__ is None:
        import os.path
        path = os.path.dirname(os.path.dirname(__file__))
        sys.path[0:0] = [path]
    from tokendito.tool import cli
    try:
        return cli(args)
    except KeyboardInterrupt:
        print('\nInterrupted')
        sys.exit(1)
github dowjones / tokendito / tokendito / tokendito.py View on Github external
def main(args=None):  # needed for console script
    """Packge entry point."""
    if __package__ is None:
        import os.path
        path = os.path.dirname(os.path.dirname(__file__))
        sys.path[0:0] = [path]
    from tokendito.tool import cli
    return cli(args)