Aiida-shell

Latest version: v0.7.0

Safety actively analyzes 618891 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.7.0

Features
- `PickledData`: Allow passing kwargs to pickler [[f94f030]](https://github.com/sphuber/aiida-shell/commit/f94f030abb36fd8f0dee60190c71b9df5e0a8a6c)
- `ShellJob`: Automatically serialize string for `arguments` [[4518221]](https://github.com/sphuber/aiida-shell/commit/451822157d9bc585254fded0352863258a7a7290)
- `launch_shell_job`: Add option to keep skip resolving of `command` [[d4ad9e7]](https://github.com/sphuber/aiida-shell/commit/d4ad9e72b26b3fd6591501e29fab2c9d70046d88)

Fixes
- Fix `InvalidOperation` raised by `aiida-core` when pickling [[0458966]](https://github.com/sphuber/aiida-shell/commit/045896653ab3f7459a6400039596400f22bb2004)
- `prepare_computer`: Check whether `default_mpiprocs_per_machine` is set [[97f0b55]](https://github.com/sphuber/aiida-shell/commit/97f0b55404f81b8020591773075721f9efd34776)
- `ShellJob`: Detect and prevent filename clashes [[415b27e]](https://github.com/sphuber/aiida-shell/commit/415b27e1ab69e98afba27a2179c095f8feca6c4b)

Changes
- Set default localhost scratch to `$TMP/aiida_shell_scratch` [[beeab21]](https://github.com/sphuber/aiida-shell/commit/beeab21f87ecb89d798fa9a142e099b8689bd478)

Dependencies
- Add support for Python 3.12 [[0ddb9c3]](https://github.com/sphuber/aiida-shell/commit/0ddb9c3178a0b76719f20d8a2ba869eb31e0147c)
- Drop support for Python 3.8 [[ab97ef7]](https://github.com/sphuber/aiida-shell/commit/ab97ef796d365c4ecd30edd2c0556f3c701c7a8d)
- Update minimum requirement `aiida-core~=2.5` (69) [[d61dd00]](https://github.com/sphuber/aiida-shell/commit/d61dd00db66a3d2d82cb18a1907da2c510272ac0)

Docs
- Add a favicon [[c439b5f]](https://github.com/sphuber/aiida-shell/commit/c439b5f592884ccb3d407d48fe8bc0f2f4a74f4c)
- Add how-to on use of `prepend_text` metadata option (67) [[d20edd1]](https://github.com/sphuber/aiida-shell/commit/d20edd1b56f7738daa2de1a03c06d4d7f19cef18)
- Add section on how to run with MPI [[adf491d]](https://github.com/sphuber/aiida-shell/commit/adf491d9973d0ecb5b9d42c6bb0fc7c63e2b73ca)
- Add section with examples [[2d9ae56]](https://github.com/sphuber/aiida-shell/commit/2d9ae56c7514e3ea290e3bafbdeb7cfb1e1c8764)
- Fix typos `option` instead of `options` [[825aad1]](https://github.com/sphuber/aiida-shell/commit/825aad1fcf2c9f94034c2f4f1e4737c6b17c635a)
- Link to AiiDA's docs for creating custom codes [[0cfbe4c]](https://github.com/sphuber/aiida-shell/commit/0cfbe4c72a0560f41af345ea4ebfab10079c5f69)

Devops
- Add pre-commit hooks to format TOML and YAML files [[1cfb428]](https://github.com/sphuber/aiida-shell/commit/1cfb42890dac545785d4235a9fd187ee6fbd69bd)

0.6.0

Features
- `ShellJob`: Add support for `RemoteData` nodes [[4a60253]](https://github.com/sphuber/aiida-shell/commit/4a60253210b455869e285685dfc53984204fe11c)

The `nodes` input of the `launch_shell_job` and `ShellJob` now allow `RemoteData` nodes.
Their content will be copied to the working directory of the job, just as with `SinglefileData` nodes.
See [the how-to example in the documentation](https://aiida-shell.readthedocs.io/en/latest/howto.html#running-a-shell-command-with-remote-data) for details.

- `ShellJob`: Allow entry point strings for the `parser` input [[2f4fb3d]](https://github.com/sphuber/aiida-shell/commit/2f4fb3df8e419228cf2b70ddf1aa5bd25b0ae708)
- Add the `EntryPointData` data plugin [[161cfef]](https://github.com/sphuber/aiida-shell/commit/161cfef271b4b97150c747447a9b51e28afd592d)

Fixes
- `ShellJob`: Do not copy contents of `nodes` to repository [[5d46235]](https://github.com/sphuber/aiida-shell/commit/5d4623504cb36387334356d5bfb131f30153efc8)

Changes
- `launch_shell_job`: Move `arguments` to be the second argument [[8957f59]](https://github.com/sphuber/aiida-shell/commit/8957f594405e05bfe87e0d285e771b30d8953b6f)
- Add top-level imports explicitly to `__all__` [[7fc9ba5]](https://github.com/sphuber/aiida-shell/commit/7fc9ba5aaa89f1f9c2595b3c35c35d16f70c3d6d)
- Move module `engine.launchers.shell_job` to `launch` [[a0dac1e]](https://github.com/sphuber/aiida-shell/commit/a0dac1e2f34db6cd13eafb4ebf4ac0ba2143ecba)

Docs
- Update the styling to custom theme [[0588076]](https://github.com/sphuber/aiida-shell/commit/0588076b13c8e4d818ded72c88cc899e77a771ac)
- Add example showcase of `pdb-tools` [[ae6b919]](https://github.com/sphuber/aiida-shell/commit/ae6b919492300091aa3fedbf061b50cbbbd2a5bf)
- Add the changelog to the documentation [[6bc435b]](https://github.com/sphuber/aiida-shell/commit/6bc435bece7c38ad0d8b555a0cebe3936382b637)
- Improve the logo [[42fd0de]](https://github.com/sphuber/aiida-shell/commit/42fd0def21ac9a9234fc136b582fef98ae1a0f7d)
- Fix outdated markdown style header [[a2a9294]](https://github.com/sphuber/aiida-shell/commit/a2a929478c2137726045e251fa47b3b09eb10ebb)

Devops
- Migrate to `ruff` and cleanup pre-commit config [[a591f2a]](https://github.com/sphuber/aiida-shell/commit/a591f2ab0f4d81d07eb617404df058ddd6a1f351)
- Update `setup-python` dependency in CI/CD to v4 [[3788672]](https://github.com/sphuber/aiida-shell/commit/37886727bf583e35ae7e9ea9db06ce2984cff5d7)
- Update dependency requirement `mypy==1.6.1` [[5ddb83e]](https://github.com/sphuber/aiida-shell/commit/5ddb83eef22d01ca98dc099635a0f63333129d03)

0.5.3

Features
- `ShellJob`: Add support for `FolderData` in `nodes` input [[9587c33]](https://github.com/sphuber/aiida-shell/commit/9587c337cd70b2dadb26a723dfa1ad4691570272)

0.5.2

Features
- `ShellJob`: Add the optional `redirect_stderr` input [[92f726b]](https://github.com/sphuber/aiida-shell/commit/92f726b5fcd631dc4aaa85505869e2dabca9b77c)

A common practice when running shell commands is to redirect the content, written to the stderr file descriptor, to stdout.
This is normally accomplished as follows:

date > stdout 2>&1

This behaviour can now be reproduced by setting the ``metadata.options.redirect_stderr`` input to ``True``:

from aiida_shell import launch_shell_job
results, node = launch_shell_job(
'date',
metadata={'options': {'redirect_stderr': True}}
)

Fixes
- `ShellJob`: Add `invalidates_cache=True` to exit codes < `400` [[4d405e1]](https://github.com/sphuber/aiida-shell/commit/4d405e168aa46a8e1d878e2e4040cc128cc651fa)

Devops
- Add the `py.typed` file following PEP 561 [[680a0e9]](https://github.com/sphuber/aiida-shell/commit/680a0e9e4a8888c6967ce7c3b531da551f210401)
- Update Python version on RTD to 3.11 [[2cfd4a2]](https://github.com/sphuber/aiida-shell/commit/2cfd4a243cf4db45800e5e84f78acec08fa9844d)

0.5.1

Fixes
- `ShellJob`: Remove `tot_num_mpiprocs` from `resources` default [[5e61c89]](https://github.com/sphuber/aiida-shell/commit/5e61c891958f705eaf56d8b590227011f16706ef)
- `launch_shell_job`: Only `which` command if code doesn't already exist [[c1c31ab]](https://github.com/sphuber/aiida-shell/commit/c1c31ab404abcad4778accc8c01c3afbb818dfc8)

0.5.0

Features
- `launch_shell_job`: Accept string for the `arguments` argument [[a8af91a]](https://github.com/sphuber/aiida-shell/commit/a8af91a5a0005233c3de4669b74bc185892a8126)

It is now possible to pass the command line arguments for the command as a string, instead of a list of individual arguments:
python
from aiida_shell import launch_shell_job
results, node = launch_shell_job(
'date',
arguments='--iso-8601 --universal',
)


- `launch_shell_job`: Accept `AbstractCode` for `command` argument [[dacfbd3]](https://github.com/sphuber/aiida-shell/commit/dacfbd3e25e9c0fd05e7d4c033f4ea092e3825fb)

It is now possible to pass a specific preconfigured code to run, instead of the command's name:
python
from aiida.orm import load_node
from aiida_shell import launch_shell_job
results, node = launch_shell_job(
load_node('datelocalhost'),
arguments='--iso-8601 --universal',
)


Fixes
- `launch_shell_job`: Fix bug in `submit=True` when used within work chain [[dbeac91]](https://github.com/sphuber/aiida-shell/commit/dbeac9161e24b2abd57f4481ef15b6bea78a8e28)

Devops
- Fix `mypy` configuration in `.pre-commit.config.yaml` [[e16ace0]](https://github.com/sphuber/aiida-shell/commit/e16ace018bd14b2112afa70d100bd8190065e2ab)
- Change PR numbers to commit hash in `CHANGELOG.md` [[71d8f2b]](https://github.com/sphuber/aiida-shell/commit/71d8f2be5a03a2d6eb59b1aaff7e478e0d7e939a)
- Update version number in `CITATION.cff` [[b3f672c]](https://github.com/sphuber/aiida-shell/commit/b3f672cdae1d6fa611356cae4e0f53fbbd0a63ce)
- Fix the `daemon_client` fixture (33) [[30a7c06]](https://github.com/sphuber/aiida-shell/commit/30a7c064b0c542b06ceb06de904534362f94a594)

Documentation
- Add skeleton of documentation [[8595c17]](https://github.com/sphuber/aiida-shell/commit/8595c176ae4380d59502c13fdc41624087b30fb5)
- Add links to docs in `README.md` and `pyproject.toml` [[d987c55]](https://github.com/sphuber/aiida-shell/commit/d987c5515a496fff972d6bddf4aca33ee55adca6)
- Add logo [[03855fa]](https://github.com/sphuber/aiida-shell/commit/03855faa5a3944fd48f39439be2056d51080ff72)
- Move examples from `README.md` to how-to guides [[e15fb53]](https://github.com/sphuber/aiida-shell/commit/e15fb53b23163a412de829a7d7fefa5947cb8a03)

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.