semvec/pypi-packages huggingface dataset:
starbear 0.2.10
Framework for easy small local web apps or programs
Requires Python: >=3.11


# Starbear

[Documentation](https://starbear.readthedocs.io/en/latest/)

[Tutorial](https://starbear.readthedocs.io/en/latest/tutorial.html#tutorial)

Starbear allow creating interactive local web applications in Python very easily.

* The entire app is a single async function.
* Call Python functions from JS, call JS functions from Python.
* No subroutes: starbear automatically creates the endpoints you need.

**Be careful about using this in production:** Starbear is a beta, experimental framework. It is not highly efficient and may not scale very well, therefore you should use this for small apps that you want to run locally or that don't need high uptime and reliability.


## Install

```bash
pip install starbear
```


## Example


```python
from hrepr import H
from pathlib import Path
from starbear import bear, Queue

@bear
async def app(page):
    # Events coming from the webpage will be added to this Queue
    q = Queue()

    # You can print to any part of the page using a CSS selector, for
    # example we can add stuff to the <head> element:
    page["head"].print(
        # Use H.xyz to create a <xyz> node
        H.title("Clicking game!"),
        # If you give a Path object, Starbear will serve the corresponding
        # file for you.
        H.link(rel="stylesheet", href=Path("path/to/style.css"))
    )

    # page.print prints to <body> by default
    page.print(
        # If you give a Queue as an onclick handler, the events will be
        # accumulated in that queue. You can also give a Python function
        # as a handler.
        H.button("Click me!", onclick=q),
        H.div(
            # This is the span we want to update, so we put it in a variable
            target := H.span("0", id=True),
            " clicks"
        )
    )

    i = 0
    # And now we can simply loop over the event queue. Be careful to use *async* for,
    # which will yield to the event loop between each iteration.
    async for event in q:
        i += 1
        # We can index the page using any node we created and set its contents
        # to whatever we desire.
        page[target].set(str(i))
```
vsi-cli 1.0.5
vsi cli | aws cli wrapper
Requires Python: >=3.7

# vsi-cli 1.0.4

a vsi cli wrapper built on top of aws cli to simplify aws operations.
non-stable, wip.

## Installation

```bash
pip install vsi-cli==1.0.5
```
*requirements: latest aws cli, aws ssm plugin

## Supported features

supported commands:
    -sso to aws account
    -set up sso profile
    -list configured sso profiles
    -tunnel to bastion
    -port forward to resources
    -install latest aws cli
hcgatewood_coda 1.0.0
Personal Lodash-style utility library
Requires Python: <4.0,>=3.10

# Coda

Coda is a personal Lodash-style utility library.

## Installation

```bash
pip install hcgatewood_coda
```

## Usage

```python
import coda
```

## Features

- Env variable loading
  - `must_getenv` get env variable or raise
  - `getenv_bool` get env variable and coerce to bool
- Immutability
  - `ConstDict` immutable dictionary returning mutable copies of its values
- Logging
  - `set_log_level` set log level for root logger based on `LOG_LEVEL` env variable
- Rate limiting
  - `RateLimiter` basic SQLite-backed sliding window rate limiter