Skip to main content

Base library of foyono projects

Project description

foyndation

Base library of foyono projects.

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-12.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

foyndation-12-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for foyndation-12.tar.gz
Algorithm Hash digest
SHA256 3280eabba0e48e880e385757854b679f4003adfc7a3fdc29728df8d8353df786
MD5 309fbe057d2549814a3102c23afb5a83
BLAKE2b-256 45e082a14c95d44494b339b04308031be5367aaeb78c68afac8238b495aad5e0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for foyndation-12-py3-none-any.whl
Algorithm Hash digest
SHA256 dd8f0e83dba7a25692c2e59d9ebf47aefa3bce4cfc701799fc79bc179ea96e7b
MD5 caaeafa0ae3b3a01f1fc922270dc6177
BLAKE2b-256 b84974d0506ad6272a05f15247f0f806add9a2edf80031b0393c675cfcae9124

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