Skip to main content
Documentation Status

Library for FAI customization scripts

This Python lib eases the implementation of FAI customization scripts with a high level of abstraction and resonable error handling. It is meant to be import’ed in scripts run by fai-do-scripts(1) during an FAI installation or softupdate.

Documentation

The compiled documentation can be found on Read the Docs.

The documentation is based on Sphinx and can be built using make: make doc. Documentation sources are in the docs/ directory.

Tests

Tests reside in the tests/ directory and are based on pytest and can be run easily using make: make test

Formatting

The code is formatted with yapf. Simply use make to format the code in place: make format.

Code Check

With the make command make check the code base is tested (including documentation), analyzed with pylint, and the code formatting verified.

Pylint messages should be fixed or directly suppressed in the code if necessary. A suppression should have a comment explaining briefly why the construct is ok (e.g., “false positive”).

Consider using make check as pre-commit hook.

Makefile

A Makefile is provided to ease testing and building Python packages. Run make help for usage hints.

Packaging and Releasing

This lib uses PEP 517/PEP 518-compatible packaging based on setuptools. All project settings should normally go into setup.cfg, while setup.py is mainly provided for compatibility. The build system configuration resides in pyproject.toml.

Each released version is tagged with a tag of the form release/x.y.z with x, y, and z being major, minor, and patch version, respectively, as defined by Semantic Versioning.

Release files for fai 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fai 0.1.0
File Size Uploaded
fai-0.1.0.tar.gz 12.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fai 0.1.0
File Interpreter ABI Platform
fai-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.2 kB

Release files / fai-0.1.0.tar.gz

Download URL fai-0.1.0.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e4e95263e5b17e994e6adc81546e10992d0e2274a3d47acf1374e5317b47a6b9
BLAKE2b-256 checksum
How to use checksums
fad55b3c52e2d8be9e8a808c93ebcd36bad2b40c04378906fd2190108eecb3b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.6.4 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.9

Release files / fai-0.1.0-py3-none-any.whl

Download URL fai-0.1.0-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e42c9ea253fea7c0cb6e13817c640884026a334a268197e29ad4e88f9415300c
BLAKE2b-256 checksum
How to use checksums
622e1532f7b3765f1926d585feeb551752544e537d238a2d317786dcfa56ed0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.6.4 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.9

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page