Skip to main content

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()

Metadata

Release files for singlue 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for singlue 0.1.5
File Size Uploaded Provenance Actions
singlue-0.1.5.tar.gz 2.6 kB Without provenance Details for singlue-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for singlue 0.1.5
File Interpreter ABI Platform Actions
singlue-0.1.5-py3-none-any.whl Python 3 none any Details for singlue-0.1.5-py3-none-any.whl

Total release size: 5.4 kB

Release files / singlue-0.1.5.tar.gz

Download URL singlue-0.1.5.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4627997a7549ea7d3cb913af18f5b836c6c93f3e3555bcf2ede9be26bbd1a718
BLAKE2b-256 checksum
How to use checksums
ca6672eb175b30338817cef43efacfaad5009ea61cc152f71f28ffa009299982
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.14 CPython/3.9.13 Linux/5.15.0-46-generic

Release files / singlue-0.1.5-py3-none-any.whl

Download URL singlue-0.1.5-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3085a825f0dd8b30ea4f78c17283c26cc7111aa970c1715806021ccaccd5a77a
BLAKE2b-256 checksum
How to use checksums
fdb77a201f36b6580d52cdc2f1d90172af841db6c90e67082cec6a05db309277
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.14 CPython/3.9.13 Linux/5.15.0-46-generic

Security for singlue 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page