No project description provided
Project description
singlue
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
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4627997a7549ea7d3cb913af18f5b836c6c93f3e3555bcf2ede9be26bbd1a718
|
|
| MD5 |
1cce5b725610d8abcc63aaf492b682f7
|
|
| BLAKE2b-256 |
ca6672eb175b30338817cef43efacfaad5009ea61cc152f71f28ffa009299982
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3085a825f0dd8b30ea4f78c17283c26cc7111aa970c1715806021ccaccd5a77a
|
|
| MD5 |
2d5c069bf92cefedc8c268ee3add6faf
|
|
| BLAKE2b-256 |
fdb77a201f36b6580d52cdc2f1d90172af841db6c90e67082cec6a05db309277
|