semvec/pypi-packages huggingface dataset:
stream-wars 0.1.0
Streamlit component to generate the Star Wars crawl text.
License: MIT
Requires Python: >=3.8, !=2.7.*, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*, !=3.7.*
Keywords: streamlit-components,streamlit,react

<p align="center">
  <a href="https://github.com/murilo-cunha/stream-wars"><img width="50%" alt="logo" src="https://raw.githubusercontent.com/murilo-cunha/stream-wars/main/images/stream-wars-logo.png"></a>
</p>
<p align="center">
  <a href="https://pypi.org/project/stream-wars/"><img alt="Python versions" src="https://img.shields.io/pypi/pyversions/stream-wars" /></a>
  <a href="https://pypi.org/project/stream-wars/"><img alt="PiPy" src="https://img.shields.io/pypi/v/stream-wars" /></a>
  <a href="https://pepy.tech/project/stream-wars"><img alt="Downloads" src="https://pepy.tech/badge/stream-wars" /></a>
  <a href="https://github.com/psf/black"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg" /></a>
  <a href="http://mypy-lang.org/"><img alt="Mypy checked" src="https://img.shields.io/badge/mypy-checked-1f5082.svg" /></a>
</p>

> A Star Wars crawl component for Streamlit apps!

A wrapper around [`star-wars-crawl-greensock-with-hooks`](https://github.com/mandiwise/star-wars-crawl-greensock-with-hooks)
by [@mandiwise](https://github.com/mandiwise), using the
[`streamlit-component-template-react-hooks`](https://github.com/whitphx/streamlit-component-template-react-hooks)
by [@whitphx](https://github.com/whitphx) (credits to them! 👏👏).

## Details

This is a small project putting together a "Star Wars" crawl component written in React and a React hooks-based template for Streamlit apps.

Why? The official documentation lists the class based components for React. React has released the hook-based API, which is arguably simpler and generally preferred over the class based components. Personally, I also prefer hook-based components over class-based ones. The project also uses `poetry` over the official documentation's `setup.py` and `MANIFEST.in` files - another personal decision.

## Features

- [x] Custom button
- [x] Custom intro
- [x] Custom episode text
- [x] Custom episode title
- [x] Custom crawl content
- [ ] Available on `wide` layout
changetools 0.1.0
Change evaluation functions and decorators
License: MIT
Requires Python: <4.0,>=3.7

# ChangeTools (Python)

Change evaluation functions and decorators.

## Direct example:

```
>>> from pathlib import Path
>>> from functools import partial
>>> from changetools import ChangeEvaluator
>>> hello_path = Path('hello.txt')
>>> _ = hello_path.write_text('hello')
>>> change_evaluator = ChangeEvaluator(partial(hello_path.read_text))
>>> change_evaluator.changed
True
>>> change_evaluator.changed
False
>>> _ = hello_path.write_text('hi')
>>> change_evaluator.changed
True
>>> change_evaluator.changed
False
```

## While example:

```
>>> hello_path = Path('hello.txt')
>>> change_evaluator.changed
KeyboardInterrupt
>>> _ = hello_path.write_text('hello')
>>> change_evaluator = ChangeEvaluator(partial(hello_path.read_text))
>>> while change_evaluator.changed:
...   _ = hello_path.write_text('hi')
...
```

## For example using `cycle`:

```
>>> hello_path = Path('hello.txt')
>>> change_evaluator = ChangeEvaluator(partial(hello_path.read_text))
>>> _ = hello_path.write_text('hello')
>>> for i in change_evaluator.cycle(10):
...   print(i)
...   _ = hello_path.write_text('hi')
...
0
1
```