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.5.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

singlue-0.1.5-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file singlue-0.1.5.tar.gz.

File metadata

  • Download URL: singlue-0.1.5.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.9.13 Linux/5.15.0-46-generic

File hashes

Hashes for singlue-0.1.5.tar.gz
Algorithm Hash digest
SHA256 4627997a7549ea7d3cb913af18f5b836c6c93f3e3555bcf2ede9be26bbd1a718
MD5 1cce5b725610d8abcc63aaf492b682f7
BLAKE2b-256 ca6672eb175b30338817cef43efacfaad5009ea61cc152f71f28ffa009299982

See more details on using hashes here.

File details

Details for the file singlue-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: singlue-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.9.13 Linux/5.15.0-46-generic

File hashes

Hashes for singlue-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3085a825f0dd8b30ea4f78c17283c26cc7111aa970c1715806021ccaccd5a77a
MD5 2d5c069bf92cefedc8c268ee3add6faf
BLAKE2b-256 fdb77a201f36b6580d52cdc2f1d90172af841db6c90e67082cec6a05db309277

See more details on using hashes here.

Supported by

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