Install & Compatibility
Where this runs
tested against v? · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.910 runs
installs and imports cleanly · install 0.0s · import 0.216s · 65.8MB
glibcpy 3.10–3.910 runs
installs and imports cleanly · install 1.5s · import 0.188s · 137MB
101MB installed
● package 101MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
forge
✓ import forge
✗ from forge import Fn
Top-level module is simply 'forge'. Submodules like forge.fn or forge.signature exist.
Demonstrates creating a signature and binding to a function.
import forge
def foo(a, b, c):
return a + b + c
# Create a new signature
sig = forge.signature(
forge.arg('a', int),
forge.arg('b', int),
forge.arg('c', int, default=0)
)
# Bind a function with new signature
bound = forge.bind(foo, sig)
print(bound(1, 2)) # 3
Errors
Common errors & fixes
AttributeError: module 'forge' has no attribute 'Fn'
The expected top-level symbol 'Fn' does not exist; correct usage is 'import forge' and then use forge.fn.
fixUse `import forge` and access forge.fn for function manipulation.
ImportError: cannot import name 'signature' from 'forge'
Incorrect import path; forge.signature is a function, not a submodule.
fixUse `import forge` and call `forge.signature(...)`.
Upgrade
Version history
0.22.0latest on PyPI · released Jan 11, 2023
Audit
Dependencies
No dependency data recorded yet.