Commonly used components for ALC managed AiiDAlab plugins
Project description
alc-aiidalab-widgets
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
Funding
Contributors to this project were funded by
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file alc_aiidalab_widgets-0.0.1.tar.gz.
File metadata
- Download URL: alc_aiidalab_widgets-0.0.1.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c175c5959a981506f6be069966efe5fce23bee25d00571f2a34bf599df1eaac3
|
|
| MD5 |
acf752644eb4189123ac82ddf71dc6d3
|
|
| BLAKE2b-256 |
21746851de5d30ad5714401b8f6f711ef539817e582a68804ac42551dd216b42
|
File details
Details for the file alc_aiidalab_widgets-0.0.1-py3-none-any.whl.
File metadata
- Download URL: alc_aiidalab_widgets-0.0.1-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a011b599b40e77fb543f44c29a7fd3aac57f454bedfee7c4654561ab83e32b5
|
|
| MD5 |
0e9e8465d7ea6832dbad5adc087bb469
|
|
| BLAKE2b-256 |
0054f6dc39899ca214857fd02ab7d475533b228496bbcf2555afda0993dc8dc3
|