Skip to main content

No project description provided

Project description

singlue

PyPI version Python Versions

A CLI tool to resolve function,class codes and integrate them to single file.

This program depends on ast.unparse()(added in python3.9).

installation

pip install singlue

example usage

singlue main.py > output.py

image

singlue generates output.py from main.py,library.py.

main.py

from library import one, two, Three


assert one() + two() == Three().three()

library.py

def one() -> int:
    return 1


def two() -> int:
    return 2


class Three:
    def __init__(self):
        self.value = 3

    def three(self):
        return self.value

output.py

def one() -> int:
    return 1
def two() -> int:
    return 2
class Three:

    def __init__(self):
        self.value = 3

    def three(self):
        return self.value
assert one() + two() == Three().three()

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

singlue-0.1.4.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

singlue-0.1.4-py3-none-any.whl (2.9 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