f_lib package¶
Finley library.
- class f_lib.Environment[source]¶
Bases:
object
Object 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()
).
- sys: SystemInfo¶
Information about the system.
- final class f_lib.OsInfo[source]¶
Bases:
object
Information 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.
- property is_macos: bool¶
Operating system is macOS.
Does not differentiate between macOS and Darwin.
- property user_config_dir: Path¶
Path to the config directory for the user.
~/.config
%USERPROFILE%/AppData/Local
%USERPROFILE%/AppData/Roaming
- final class f_lib.SystemInfo[source]¶
Bases:
object
Information 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:
Exception
Raised when the platform architecture can’t be determined.
- f_lib.__version__: str = '0.3.1.dev11'¶
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, 3, 1, 'dev11')¶
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.aws package
- Subpackages
- f_lib.aws.aws_lambda package
- Submodules
- f_lib.aws.aws_lambda.type_defs module
LambdaCognitoIdentity
LambdaClientContextMobileClient
LambdaClientContext
LambdaContext
LambdaContext.aws_request_id
LambdaContext.client_context
LambdaContext.function_name
LambdaContext.function_version
LambdaContext.identity
LambdaContext.invoked_function_arn
LambdaContext.log_group_name
LambdaContext.log_stream_name
LambdaContext.memory_limit_in_mb
LambdaContext.get_remaining_time_in_millis()
LambdaSqsEventRecordAttributes
LambdaSqsEventMessageAttributes
LambdaSqsEventRecord
LambdaSqsEvent
- f_lib.aws.aws_lambda.type_defs module
- Submodules
- f_lib.aws.aws_lambda package
- Subpackages
- f_lib.logging package
ConsoleHandler
ExtendableHighlighter
FluidLogRender
HighlightTypedDict
LogLevel
Logger
LoggerSettings
PrefixAdaptor
- Submodules
- Subpackages
- f_lib.logging.settings package
ConsoleLoggingSettings
ConsoleLoggingSettings.enable_markup
ConsoleLoggingSettings.enable_rich_tracebacks
ConsoleLoggingSettings.log_format
ConsoleLoggingSettings.show_level
ConsoleLoggingSettings.model_computed_fields
ConsoleLoggingSettings.show_path
ConsoleLoggingSettings.show_time
ConsoleLoggingSettings.time_format
ConsoleLoggingSettings.tracebacks_show_locals
ConsoleLoggingSettings.tracebacks_theme
LoggingSettings
PyprojectTomlConfigSettingsSource
- f_lib.logging.settings package
- f_lib.mixins package
- f_lib.utils package