Skip to main content

FAI script integration lib

Project description

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.

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

fai-0.1.0.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

fai-0.1.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file fai-0.1.0.tar.gz.

File metadata

  • Download URL: fai-0.1.0.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for fai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e4e95263e5b17e994e6adc81546e10992d0e2274a3d47acf1374e5317b47a6b9
MD5 fc8df6fac4c951ff22fd31ddc2f64e68
BLAKE2b-256 fad55b3c52e2d8be9e8a808c93ebcd36bad2b40c04378906fd2190108eecb3b7

See more details on using hashes here.

File details

Details for the file fai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: fai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for fai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e42c9ea253fea7c0cb6e13817c640884026a334a268197e29ad4e88f9415300c
MD5 6abe9cb0fa77040fd86c82718a20c935
BLAKE2b-256 622e1532f7b3765f1926d585feeb551752544e537d238a2d317786dcfa56ed0e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page