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.
onerror
@contextmanager
def onerror(f)
Context manager that runs the given function if an exception happens, like finally excluding the happy path.
Return a true value from f to declare the exception was handled i.e. prevent it from being re-raised.
rmprefix
def rmprefix(text, prefix)
Return text with prefix removed, or None if text does not start with prefix.
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 18
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| foyndation-18.tar.gz | 3.8 kB | Without provenance | Details for foyndation-18.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| foyndation-18-py3-none-any.whl | Python 3 | none | any | Details for foyndation-18-py3-none-any.whl |
Total release size: 7.8 kB
Release files / foyndation-18.tar.gz
| Download URL | foyndation-18.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa336231a7d17b180ca22b8252bc97f6bda37320738fdd35688a7ad21d88e75e
|
|
BLAKE2b-256 checksum How to use checksums |
1d003f8ce6ae3f51b952cb5b889956b574c7f36bab05941d342f1ed8d473073a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / foyndation-18-py3-none-any.whl
| Download URL | foyndation-18-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
90214b3df16da6b5f5c8b46f7e7160d54aa98a158f5e0d81a5e72e659bf1374a
|
|
BLAKE2b-256 checksum How to use checksums |
8eea532eec6eead89da3bceb7b0da4892d667a9e7cf8855fe4a744fe31a3aaad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for foyndation 18
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.