semvec/pypi-packages huggingface dataset:
pyaslengine 0.8.0
Python engine for Amazon States Language (ASL) specification that supports parsing and serialization of definitions, and a local interpreter to run them.
Requires Python: >=3.11,<4.0

# pyaslengine

Python engine for [Amazon States Language (ASL)](https://states-language.net/) specification that supports parsing and serialization of definitions, and a local interpreter to run them.

## Installation

### Development
```shell
git clone https://github.com/ghukill/pyaslengine
make install
```

### Use in Existing Project
```shell
pip install pyaslengine
```

## Examples

### Load simple StateMachine definition from local JSON file

```python
import logging

from pyaslengine.data import WorkflowInput
from pyaslengine.workflows import StateMachine

# turn on debug logging
logging.getLogger('pyaslengine').setLevel(logging.DEBUG)

# initialize a state machine by reading a local JSON file
sm = StateMachine.load_definition_file("tests/fixtures/state_machines/do_nothing.json")

# run the state machine by passing an initial payload
results = sm.run(
    workflow_input=WorkflowInput(data={"msg": "in a bottle"})
)
# Out[6]: WorkflowOutput(data={'msg': 'in a bottle'}, context=None)
```
fetchrepo 2.1.2
Fetches and returns required content from github repository

# Repo Fetcher
The Repo Fetcher is a versatile tool designed to extract the essential contents from GitHub repository. <br>
It seamlessly retrieves files, excluding specified patterns, to offer a concise overview of the repository's key components.<br> This tool proves invaluable for developers, project managers, and contributors seeking a quick glance at the project structure without the noise of unnecessary files <br>

If you find any noice contents getting printed, please [mail](alfareedss472@gmail.com) me.
## Example
from FetchRepo.RepoFetcher import harvest_github_repo <br>
repo_link = "https://your/github-repo/link" <br>
access_token = "your access token" #(requireed if the repository is private) <br>
code = harvest_github_repo(repo_link,branch="branch_name",access_token="access_token") <br>
print(code)

- If you don't know the branch name to be fetched from, you can also leave it empty, {branch="} it will list (display) all the branches from the repo and prompts you to enter the required feature brnach to be fetched.
- If the repo is public let the value for the  access_token be empty ; <br>
harvest_github_repo(repo_link,branch="",access_token="")