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.

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

Uploaded Source

Built Distribution

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

foyndation-11-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for foyndation-11.tar.gz
Algorithm Hash digest
SHA256 269c5cc737b9c1de01cae232df6b71d897e2333cbca26ece476575e63a195659
MD5 91cef6ea56b47b36e7d9080fc43b9fd6
BLAKE2b-256 51daf6164cae0e5f0a145fdcdfddef6cdfe6b8f1ba727bcca39b75800e04ffb1

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for foyndation-11-py3-none-any.whl
Algorithm Hash digest
SHA256 f21705540b2c11b093806a5258dab4b338ae6404d5cf7c2a089c33623961650d
MD5 0e4f48450247cf8709b3032679dbd5e6
BLAKE2b-256 7a9439fb6a146a259a00fd87b3877f99f6da714f78bfb061f658a88f06089f68

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