semvec/pypi-packages huggingface dataset:
codepiper 0.2.1
Tools for AWS CodePipeline.
Requires Python: ~=3.8

# codepiper 
[![PyPI version shields.io](https://img.shields.io/pypi/v/codepiper)](https://pypi.python.org/pypi/codepiper/)

This tool provides some utilities for working with AWS CodePipeline:

* `watch` - Monitor a pipeline for executions and also follow CodeBuild logs.
* `debug` - Run stage with debug mode enabled.
* `verify_clear`- Verify that a pipeline is clear, or the details if not.
* `rollback`- Rollback a stage of a pipeline to a prior execution.

![](codepiper.gif)

# Watch

To monitor all active executions for a pipeline:

`codepiper --profile toolchain --region us-west-2 watch -p my-pipeline-name` 

To monitor a pipeline along with logs from CodeBuild:

`codepiper --profile toolchain --region us-west-2 watch -p my-pipeline-name -f` 

To monitor one specific execution for a pipeline:

`codepiper --profile toolchain --region us-west-2 watch -p my-pipeline-name -e 20b20f00-f63d-4b05-8921-20a4fc16090e`

`codepiper --profile toolchain --region us-west-2 verify_clear -p my-pipeline-name` 

# Debug

[View a running build in Session Manager](https://docs.aws.amazon.com/codebuild/latest/userguide/session-manager.html)

You will need to add the `codebuild-breakpoint` command in the buildspec where you want to pause execution. When you are done debugging run `codebuild-resume` in the CLI to resume the build.

The debug option will output a codebuild URL for the build. Once the build is PROVISIONED there will be an SSM Session link to follow to get CLI access.

To run a pipeline stage in debug mode:

`codepiper --profile toolchain --region us-west-2 debug --pipeline my-pipeline-name --stage Integration`

To run a pipeline stage in debug mode with new or overridden env vars:

`codepiper --profile toolchain --region us-west-2 debug --pipeline my-pipeline-name --stage Integration --envvar JAVA_OPTS="-Xmx1g -Dproperty=value" --envvar JAVA_VAR1=new_value`

# Rollback

To rollback a pipeline stage to last successful execution:

`codepiper --profile toolchain --region us-west-2 rollback -p my-pipeline-name -s Production` 

To rollback a pipeline stage to a specific commit id:

`codepiper --profile toolchain --region us-west-2 rollback -p my-pipeline-name -s Production -c af32c18` 

To rollback a pipeline stage and watch logs

`codepiper --profile toolchain --region us-west-2 rollback -p my-pipeline-name -s Production -f`

# Verify Pipeline Clear

To verify that a pipeline is currently clear:
`codepiper --profile toolchain --region us-west-2 verify_clear --pipeline my-pipeline-name`

# Installation
Use the `upgrade` flag to ensure you have the latest version.

`pip install codepiper --upgrade`

# Limitations

* `$CODEBUILD_RESOLVED_SOURCE_VERSION` is unavailable since the CodeBuild execution is not initiated via CodePipeline. The workaround for this is to use [CodePipeline Variables](https://docs.aws.amazon.com/codepipeline/latest/userguide/reference-variables.html) to pass the `CommitId` from source stage as a user defined environment variable to your CodeBuild project.
reaction-system 0.1.4
A package for handling Reaction Systems, and RsFunctions with minimization capabilities
Requires Python: >=3.8

# Reaction System

A Python package for handling Reaction Systems and RsFunctions (partially mapped result functions) with minimization capabilities.

## Overview

Your Package Name provides functionality for working with Reaction Systems and RsFunctions. It includes methods for minimization, mapping, support analysis, and more.

## Features

- **Reaction System Handling:** Create and analyze Reaction Systems.
- **RsFunction Operations:** Perform minimization operations on RsFunctions to convert into ReactionSystems.

## Installation

```bash
pip install your-package-name
```

## Usage

Here's a quick example of using the Reaction System package:

```python
from reaction_system import ReactionSystem, RsFunction

# Create a Reaction System
reaction_system = ReactionSystem(5)
reaction_system.push([1, 2, 3], [], [4, 5])

# Minimize the Reaction System over rank, or degree
rs_rank = reaction_system.minimize_rank()
rs_rank_exact = reaction_system.minimize_rank_exact()
rs_degree = reaction_system.minimize_rank()

# Get the reactions from a reaction system
for reaction in rs_rank.reactions():
  print(reaction, reaction.enabled([1, 2, 3, 4]))

# Create an RsFunction
rs_function = RsFunction(5)
rs_function.add([1, 2], [3, 4])
rs_function.add([1, 3], [2, 4])

# Get a minimum corresponding Reaction System
rs_rank = rs_function.minimize_rank()
rs_rank_exact = rs_function.minimize_rank_exact()
rs_degree = rs_function.minimize_rank()

print(rs_rank)
```

## Contributing

Contributions are welcome! If you have suggestions, bug reports, or want to contribute code, please open an issue or submit a pull request.
kringle 0.2.1
A solution manager for Advent of Code
Requires Python: >=3.8

Kringle
=======

|PyPI Version| |PyPI - Python Version|

A solution manager for Advent of Code.

Usage 
-----

Kringle is opinionated. It expects that it is being run from within a directory with the
following structure::

    - cwd
    |
    | - solution.py
    | - input.txt

Within solution.py, it expects three functions:

``parse(data: str)``: Takes the contents of the input.txt file as a string, and returns
the parsed data.

``part_1()``: Solves part 1 of the challenge.

``part_2()``: Solves part 2 of the challenge.
    
In order to run the solution, call ``kringle`` from within the directory containing the
solution and input files.

.. |PyPI Version|
    image:: https://img.shields.io/pypi/v/kringle.svg
    :target: https://pypi.org/project/kringle

.. |PyPI - Python Version|
    image:: https://img.shields.io/pypi/pyversions/kringle.svg
    :target: https://pypi.org/project/kringle