f_lib package¶
Finley library.
- class f_lib.Environment[source]¶
Bases:
objectObject to simplify getting information about the runtime environment.
- __init__(*, environ: dict[str, str] | None = None, root_dir: Path | None = None) None[source]¶
Instantiate class.
- Parameters:
environ – Environment variables.
root_dir – Root directory of the environment (e.g.
pathlib.Path.cwd()).
- copy() Self[source]¶
Copy the contents of this object into a new instance.
- Returns:
New instance with the same contents.
- sys: SystemInfo¶
Information about the system.
- class f_lib.OsInfo[source]¶
Bases:
objectInformation about the operating system running on the current system.
- static __new__(cls, *args: object, **kwargs: object) OsInfo[source]¶
Create a new instance of class.
This class is a singleton so it will always return the same instance.
- classmethod clear_singleton() None[source]¶
Clear singleton instances.
Intended to only be used for running tests.
- property is_macos: bool¶
Operating system is macOS.
Does not differentiate between macOS and Darwin.
- class f_lib.SystemInfo[source]¶
Bases:
objectInformation about the system running the application.
- static __new__(cls, *args: object, **kwargs: object) SystemInfo[source]¶
Create a new instance of class.
This class is a singleton so it will always return the same instance.
- exception f_lib.UnknownPlatformArchitectureError[source]¶
Bases:
ExceptionRaised when the platform architecture can’t be determined.
- f_lib.__version__: str = '0.4.4.dev115'¶
Version of the Python package presented as a
string.Dynamically set upon release by [poetry-dynamic-versioning](https://github.com/mtkennerly/poetry-dynamic-versioning).
- f_lib.__version_tuple__: tuple[int, int, int] | tuple[int, int, int, str] = (0, 4, 4, 'dev115')¶
Version of the Python package presented as a
tuple.Dynamically set upon release by [poetry-dynamic-versioning](https://github.com/mtkennerly/poetry-dynamic-versioning).
Submodules¶
Subpackages¶
- f_lib.archive_extractor package
- f_lib.aws package
- Subpackages
- f_lib.aws.aws_lambda package
- Submodules
- f_lib.aws.aws_lambda.type_defs module
LambdaCognitoIdentityLambdaClientContextMobileClientLambdaClientContextLambdaContextLambdaContext.aws_request_idLambdaContext.client_contextLambdaContext.function_nameLambdaContext.function_versionLambdaContext.identityLambdaContext.invoked_function_arnLambdaContext.log_group_nameLambdaContext.log_stream_nameLambdaContext.memory_limit_in_mbLambdaContext.get_remaining_time_in_millis()
LambdaSqsEventRecordAttributesLambdaSqsEventMessageAttributesLambdaSqsEventRecordLambdaSqsEvent
- f_lib.aws.aws_lambda.type_defs module
- Submodules
- f_lib.aws.aws_lambda package
- Subpackages
- f_lib.logging package
ConsoleHandlerExtendableHighlighterFluidLogRenderHighlightTypedDictLogLevelLoggerLoggerSettingsPrefixAdaptorsetup_logging()- Submodules
- Subpackages
- f_lib.logging.settings package
ConsoleLoggingSettingsConsoleLoggingSettings.enable_markupConsoleLoggingSettings.enable_rich_tracebacksConsoleLoggingSettings.log_formatConsoleLoggingSettings.show_levelConsoleLoggingSettings.show_pathConsoleLoggingSettings.show_timeConsoleLoggingSettings.time_formatConsoleLoggingSettings.tracebacks_show_localsConsoleLoggingSettings.tracebacks_theme
LoggingSettings
- f_lib.logging.settings package
- f_lib.mixins package
- f_lib.utils package