Skip to main content

Base library of foyono projects

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

foyndation-13.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

foyndation-13-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file foyndation-13.tar.gz.

File metadata

  • Download URL: foyndation-13.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for foyndation-13.tar.gz
Algorithm Hash digest
SHA256 a48024b5a2bf6fe843446bb2a1cb910a7ad12fbb552b38d9ee5362cc5c947ae7
MD5 e3da586087f55d492c240327c779cd6b
BLAKE2b-256 98e767e002533b67fe3d614446661c9efa5c96ae26db4fc3c1124b91011ed66e

See more details on using hashes here.

File details

Details for the file foyndation-13-py3-none-any.whl.

File metadata

  • Download URL: foyndation-13-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for foyndation-13-py3-none-any.whl
Algorithm Hash digest
SHA256 acaf91e6f0b236b06402a9f263a4d8e74df91f84f2aff19dd1fcb41c96b26544
MD5 82d3be823e05a6dc39455a94ea8c2b57
BLAKE2b-256 c2eab7c1158db806e96e5518aed0f5ea459a747ddb170a9cb01a92b7f7b15906

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page