semvec/pypi-packages huggingface dataset:
tmux-restore 0.0.7
A python executable that saves and restores tmux sessions across reboots
Requires Python: >=3.10

# tmux-restore

## Overview
Works with `tmux` to save and restore sessions across reboots. Sessions are stored at `~/.tmux-restore`.

## Features
- Save session windows, panes, and layouts automatically on detach/exit
- Automatically restore sessions on reboot
    - Restores windows, panes, and layout
    - Restores running processes for select programs:
        - emacs/vi/
        - vim/nvim
          - Restores cursor location
        - man
        - less/more
        - tail
        - top/htop
        - irssi/weechat/mutt
        - ssh
        - psql/mysql/sqlite3

## To Do
- Save environment variables
- Add configuration option for session file
- Add configuration option for adding running programs to save

## Set Up
To install `tmux-restore`, run the following:
```bash
pip install tmux-restore
```
Then, to restore your saved sessions on reboot, edit your `.bashrc` file with the following content:
```bash
# colors...

# tmux-restore trigger
if ! tmux info &> /dev/null; then
    if ! tmux ls &> /dev/null; then
        (python3 -m tmux-restore &)
    fi
fi

# aliases...
```
It is important that this is done above alias definition to avoid conflicts.
Finally, add the following content to either where the other aliases are defined in your `.bashrc` file or to your `.bash_aliases` file:
```bash
tmux() {
    command tmux $*
    (python3 -m tmux-restore save &)
}
```
This will ensure that your sessions save after you exit or detach from a `tmux` session. Restart your shell to apply the effects.
Your tmux sessions will now restore themselves across reboots!

## Usage
If you would like to save or restore your `tmux` sessions manually:
```bash
# Save
python3 -m tmux-restore save

# Restore
python3 -m tmux-restore
# OR
python3 -m tmux-restore restore
```
flask-orjson 2.0.0
A Flask JSON provider using the fast orjson library.
Requires Python: >=3.8

# flask-orjson

A Flask JSON provider using the fast [orjson][] library. Using this provider
will significantly speed up reading JSON data in requests and generating JSON
responses.

[orjson]: https://github.com/ijl/orjson

## Example

```python
from flask import Flask
from flask_orjson import OrjsonProvider

app = Flask(__name__)
app.json = OrjsonProvider(app)
```
aimbase 0.0.10
Declarative, instant REST APIs for base AI Models based on instarest, a FastAPI, Pydantic, SQLAlchemy, and PostgreSQL library, and MinIO.
Requires Python: >=3.11,<3.12

# Getting Started
To get started with `aimbase` for your application, visit the docs at <a href="https://aimbase.erob.io/" target="_blank">https://aimbase.erob.io/</a>

To contribute to `aimbase`, see the [contributing](#contributing) section below.

# Contributing
## Getting Started Locally
1. Launch postgres and pgadmin via docker-compose `docker-compose up --build`.

1. Keeping your containers running, open a new terminal with the root of this repo as the working directory. Install `poetry`: `pip install poetry` (or use `pipx` [on link here](https://python-poetry.org/docs/1.4#installing-with-pipx) if you prefer isolated envs, or consider using `conda`).

1. Create and enter the virtual environment: `poetry shell`

1. Install the dependencies `poetry install`

1. Start the app: `uvicorn examples.example_app:auto_app --reload`.

1. Open `localhost:8000/v1/docs` and start interacting with swagger!

1. You can shut down and your db / minio data will persist via docker volumes.

## MinIO
- The MinIO console is available at `localhost:9001`.  Login with user:`miniouser` and password:`minioadmin` if you launched the containers with `docker-compose up --build`.

## Hooks and Tests
1. Set up the precommit hook with `pre-commit install`.

1. Run tests and get coverage with `pytest --cov`, and get html reports for vs code live server (or any server) with `pytest --cov --cov-report=html:coverage_re`

1. Open a pull request against the repo!  Please write tests, your coverage will automatically be added as a comment to any PR via GH actions.

## Viewing Docs Locally
1. Install docs dependencies with `pip install -r requirements-docs.txt`.
1. Install `mkdocs` with `pip install mkdocs-material`.
1. Move into the `docs/en` directory via `cd docs/en`.
1. Run `mkdocs serve` to start a local server.