Skip to main content

Commonly used components for ALC managed AiiDAlab plugins

Project description

alc-aiidalab-widgets

Release PyPI

Pipeline Status Docs status

This is a collection of commonly used widgets used across AiiDAlab plugins developed by the Ada Lovelace Centre (STFC). It provides re-usable components and consistent styling which can be deployed to any new or developing AiiDAlab plugin. It can be installed via pip,

pip install alc-aiidalab-widgets

and then imported within any python project as,

import alc_aiidalab_widgets

For Developers

Style Checking

This package uses pre-commit hooks to check for style consistency, to use these the pre-commit tool is required. This can be installed alongside the base package by running,

pip install .[dev]

or separately via,

pip install pre-commit 

Once installed run,

pre-commit install 

in the base repository to enable the pre-commit hooks. This will now run style and formatting checks on every commit.

Testing

This package uses pytest to run all unit tests which is included in the [dev] optional package dependencies. Once installed it can be run from the project root directory. The CI workflows are configured to ensure all tests pass before a pull request can be accepted into the main repository. It is important that any new additions to the code base are accompanied by appropriate testing, maintaining a high code coverage. The coverage can be checked via,

pytest --cov=aiidalab_alc 

Documentation

The documentation, including a User Guide, Developer Guide and an API reference, is built using sphinx. The source for which is contained in the docs/ directory. At present only the html generator has been fully tested. All required packages can be installed alongside the core package via,

pip install .[docs]

and then the documentation can be built using sphinx-build,

sphinx-build -b html docs/src/ docs/build/html 

from the root directory.

License

BSD 3-Clause License

Funding

Contributors to this project were funded by

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

alc_aiidalab_widgets-0.1.0.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

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

alc_aiidalab_widgets-0.1.0-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: alc_aiidalab_widgets-0.1.0.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for alc_aiidalab_widgets-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5a81d36d38cb277f99a0c835412b0589ab27656d515d7d9325154bf77c3f1e59
MD5 953e89e471f457acccb8c46f146c0b6f
BLAKE2b-256 5fef608c0bb72c5457de11f2b040871e0a07e130ff91e7371f5d377d02036f64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alc_aiidalab_widgets-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ea68ba851f465c80400d242dc6cb4c73fd725589640f3e87834a864c64e0001
MD5 eeb6ce564f8ce61c428b5367a9601fd8
BLAKE2b-256 d8d0110a566c852c6c3053e9096f86eefd4bc82ec05c5d95237201d01a056ebb

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