foyndation
Base library of foyono projects.
This README is auto-generated, see project wiki for details.
API
foyndation
initlogging
def initlogging()
Initialise the logging module to send debug (and higher levels) to stderr.
innerclass
def innerclass(cls)
An instance of the decorated class may access its enclosing instance via self.
invokeall
def invokeall(callables)
Invoke every callable, even if one or more of them fail. This is mostly useful for synchronising with futures. If all succeeded return their return values as a list, otherwise raise all exceptions thrown as a chain.
rmsuffix
def rmsuffix(text, suffix)
Return text with suffix removed, or None if text does not end with suffix.
singleton
def singleton(t)
The decorated class is replaced with a no-arg instance. Can also be used to replace a factory function with its result.
solo
def solo(v)
Assert exactly one object in the given sequence and return it.
parabject
register
def register(obj, paracls)
Instantiate paracls, set obj to be the regular object associated with the new parabject, and return the parabject.
dereference
def dereference(parabject)
Get the regular object associated with parabject or raise UnknownParabjectException.
Parabject Objects
class Parabject()
Subclasses typically implement __getattr__ for dynamic behaviour on attribute access, use unmangle there to undo name mangling.
__neg__
def __neg__()
Dereference this parabject.
unmangle
def unmangle(name)
Undo name mangling.
Metadata
Release files for foyndation 14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| foyndation-14.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| foyndation-14-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.1 kB
Release files / foyndation-14.tar.gz
| Download URL | foyndation-14.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c979aa4f851c40ce8b0f1c41dce1a0579cc2248979556953ef133a75f34ba1d2
|
|
BLAKE2b-256 checksum How to use checksums |
f0457b2e3da502ef04b76f06a29702b688bbfc877109d349560fca773e04ac35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|
Release files / foyndation-14-py3-none-any.whl
| Download URL | foyndation-14-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2c5633e01c50eb462a9b1b08236eeeed772d47a1fbb0cd384e2efb0e3646b792
|
|
BLAKE2b-256 checksum How to use checksums |
c1c9e8c30d74a1c6207963f3abbac8b0fa57d3e82d1f408270cbd4ac601d182b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|