godlights
GL: All In One (aio) — 여러 변수에 같은 attribute / 같은 함수를 한 번에 적용.
설치
pip install . # 프로젝트 폴더에서
pip install -e . # 개발용(편집 즉시 반영)
사용
from godlights import allinone as aio # 또는: from godlights import aio
class P:
def __init__(self, hp): self.hp = hp
a, b, c = P(10), P(20), P(30)
aio.call_all(a, b, c, argument="hp") # [10, 20, 30]
aio.call_all(a, b, c, "hp") # [10, 20, 30]
x1, x2, x3 = aio.run_func(str.upper, "a", "b", "c") # 'A', 'B', 'C'
d1, d2 = aio.run_func(lambda x, n: x**n, 2, 3, n=2) # 4, 9
함수
call_all(*args, argument)— 각 변수의argumentattribute를 리스트로 반환.run_func(function, *args, **kwargs)—function(arg)를 각 arg마다 실행해 리스트로 반환.kwargs는 공통 전달.
빌드 / 배포
pip install build twine
python -m build # dist/ 에 sdist, wheel 생성
twine upload dist/* # PyPI 업로드
테스트
pip install pytest
pytest
Release files for godlights 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| godlights-0.1.0.tar.gz | 2.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| godlights-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.4 kB
Release files / godlights-0.1.0.tar.gz
| Download URL | godlights-0.1.0.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
730ca8410a254fcf9df41cd56a43f6ac647b4bd45d1e7c398d11c4c30d453f6f
|
|
BLAKE2b-256 checksum How to use checksums |
706f3cedd6199b7206830d17c4527b506e9224787a8d6da746127c606a537359
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / godlights-0.1.0-py3-none-any.whl
| Download URL | godlights-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c282148b392f685aa7ede8fdbff452d3fe111558ead79b1cd17af720a1b3e5fd
|
|
BLAKE2b-256 checksum How to use checksums |
756da6f530a594e08f3d850912c578f4a88d18cc7fabb66c68b1701f6f7c4a55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|