|
| 1 | +staged-script |
| 2 | +============= |
| 3 | + |
| 4 | +.. toctree:: |
| 5 | + :hidden: |
| 6 | + :maxdepth: 2 |
| 7 | + :caption: Contents |
| 8 | + |
| 9 | + motivation |
| 10 | + examples |
| 11 | + reference |
| 12 | + |
| 13 | +|Code lines| |
| 14 | +|codecov| |
| 15 | +|CodeFactor| |
| 16 | +|CodeQL| |
| 17 | +|conda-forge Version| |
| 18 | +|conda-forge Downloads| |
| 19 | +|Continuous Integration| |
| 20 | +|Contributor Covenant| |
| 21 | +|GitHub Contributors| |
| 22 | +|Documentation Status| |
| 23 | +|License| |
| 24 | +|Merged PRs| |
| 25 | +|OpenSSF Best Practices| |
| 26 | +|OpenSSF Scorecard| |
| 27 | +|Platforms| |
| 28 | +|pre-commit| |
| 29 | +|pre-commit.ci Status| |
| 30 | +|PyPI Version| |
| 31 | +|PyPI Downloads| |
| 32 | +|Python Version| |
| 33 | +|Ruff| |
| 34 | + |
| 35 | +.. |Code lines| image:: https://sloc.xyz/github/sandialabs/staged-script/?category=code |
| 36 | +.. |codecov| image:: https://codecov.io/gh/sandialabs/staged-script/branch/master/graph/badge.svg?token=FmDStZ6FVR |
| 37 | + :target: https://codecov.io/gh/sandialabs/staged-script |
| 38 | +.. |CodeFactor| image:: https://www.codefactor.io/repository/github/sandialabs/staged-script/badge/master |
| 39 | + :target: https://www.codefactor.io/repository/github/sandialabs/staged-script/overview/master |
| 40 | +.. |CodeQL| image:: https://github.com/sandialabs/staged-script/actions/workflows/github-code-scanning/codeql/badge.svg |
| 41 | + :target: https://github.com/sandialabs/staged-script/actions/workflows/github-code-scanning/codeql |
| 42 | +.. |conda-forge Version| image:: https://img.shields.io/conda/v/conda-forge/staged-script?label=conda-forge |
| 43 | + :target: https://anaconda.org/conda-forge/staged-script |
| 44 | +.. |conda-forge Downloads| image:: https://img.shields.io/conda/d/conda-forge/staged-script?label=conda-forge%20downloads |
| 45 | +.. |Continuous Integration| image:: https://github.com/sandialabs/staged-script/actions/workflows/continuous-integration.yml/badge.svg |
| 46 | + :target: https://github.com/sandialabs/staged-script/actions/workflows/continuous-integration.yml |
| 47 | +.. |Contributor Covenant| image:: https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg |
| 48 | + :target: https://github.com/sandialabs/staged-script/blob/master/CODE_OF_CONDUCT.md |
| 49 | +.. |GitHub Contributors| image:: https://img.shields.io/github/contributors/sandialabs/staged-script.svg |
| 50 | + :target: https://github.com/sandialabs/staged-script/graphs/contributors |
| 51 | +.. |Documentation Status| image:: https://readthedocs.org/projects/staged-script/badge/?version=latest |
| 52 | + :target: https://staged-script.readthedocs.io/en/latest/?badge=latest |
| 53 | +.. |License| image:: https://anaconda.org/conda-forge/staged-script/badges/license.svg |
| 54 | + :target: https://github.com/sandialabs/staged-script/blob/master/LICENSE.md |
| 55 | +.. |Merged PRs| image:: https://img.shields.io/github/issues-pr-closed-raw/sandialabs/staged-script.svg?label=merged+PRs |
| 56 | + :target: https://github.com/sandialabs/staged-script/pulls?q=is:pr+is:merged |
| 57 | +.. |OpenSSF Best Practices| image:: https://bestpractices.coreinfrastructure.org/projects/8864/badge |
| 58 | + :target: https://bestpractices.coreinfrastructure.org/projects/8864 |
| 59 | +.. |OpenSSF Scorecard| image:: https://api.securityscorecards.dev/projects/github.com/sandialabs/staged-script/badge |
| 60 | + :target: https://securityscorecards.dev/viewer/?uri=github.com/sandialabs/staged-script |
| 61 | +.. |Platforms| image:: https://anaconda.org/conda-forge/staged-script/badges/platforms.svg |
| 62 | +.. |pre-commit| image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit |
| 63 | + :target: https://github.com/pre-commit/pre-commit |
| 64 | +.. |pre-commit.ci Status| image:: https://results.pre-commit.ci/badge/github/sandialabs/staged-script/master.svg |
| 65 | + :target: https://results.pre-commit.ci/latest/github/sandialabs/staged-script/master |
| 66 | +.. |PyPI Version| image:: https://img.shields.io/pypi/v/staged-script?label=PyPI |
| 67 | + :target: https://pypi.org/project/staged-script/ |
| 68 | +.. |PyPI Downloads| image:: https://img.shields.io/pypi/dm/staged-script?label=PyPI%20downloads |
| 69 | +.. |Python Version| image:: https://img.shields.io/badge/Python-3.8|3.9|3.10|3.11|3.12-blue.svg |
| 70 | +.. |Ruff| image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json |
| 71 | + :target: https://github.com/astral-sh/ruff |
| 72 | + |
| 73 | +INSERT INTRODUCTION HERE. |
| 74 | + |
| 75 | +Installation |
| 76 | +------------ |
| 77 | + |
| 78 | +To get up and running with ``staged-script``, simply |
| 79 | + |
| 80 | +.. code-block:: bash |
| 81 | +
|
| 82 | + python3 -m pip install staged-script |
| 83 | +
|
| 84 | +Usage |
| 85 | +----- |
| 86 | + |
| 87 | +Once the package is installed, you can simply |
| 88 | + |
| 89 | +.. code-block:: python |
| 90 | +
|
| 91 | + from staged_script import StagedScript |
| 92 | +
|
| 93 | + class MyScript(StagedScript): |
| 94 | + @StagedScript.stage("greet") |
| 95 | + def say_hello(self) -> None: |
| 96 | + print("Hello world") |
| 97 | +
|
| 98 | + # COMPLETE THIS EXAMPLE. |
| 99 | +
|
| 100 | +For more detailed usage information, see the :doc:`examples` page. For |
| 101 | +implementation details, see the :doc:`reference documentation <reference>`. |
| 102 | + |
| 103 | +Contributing |
| 104 | +------------ |
| 105 | + |
| 106 | +The source repository for this module is `on GitHub`_. See the project's |
| 107 | +README and contributing guidelines for details on how to interact with the |
| 108 | +project. |
| 109 | + |
| 110 | +.. _on GitHub: https://github.com/sandialabs/staged-script |
0 commit comments