Skip to main content

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.

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 17

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for foyndation 17
File Size Uploaded
foyndation-17.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for foyndation 17
File Interpreter ABI Platform
foyndation-17-py3-none-any.whl Python 3 none any Details

Total release size: 7.7 kB

Release files / foyndation-17.tar.gz

Download URL foyndation-17.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2f50655cd9a9f97fd311c7e68b4e9abf5bc4d359757a1d8b589f6a878ee669aa
BLAKE2b-256 checksum
How to use checksums
3b627c245e372e17e3d0a5e8f8cd283a5a153943f428b9ba40376b039600b606
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release files / foyndation-17-py3-none-any.whl

Download URL foyndation-17-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
90cec60eff27d18866cbf3033f0f74b8cd1071778186cb6732df10ebb58bdd1c
BLAKE2b-256 checksum
How to use checksums
bbdd25a44aff570f373e03ce267e287bfe48e9ce7ed14c86eb9c014d4b3feebf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release history Release notifications | RSS feed

18

2 release files

This release

17 This release

2 release files

16

2 release files

15

2 release files

14

2 release files

13

2 release files

12

2 release files

11

2 release files

10

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page