semvec/pypi-packages huggingface dataset:
rwkv-simple 0.1.1
Easy-to-use RWKV-6 (x060) implementation
Requires Python: >=3.10

# rwkv_simple

`rwkv_simple` is an easy-to-use implementation of RWKV-6 (x060). We support
multiple WKV kernels (a Triton-based one from Flash Linear Attention, the official
CUDA kernel, and a pure-PyTorch one).

## Flash Linear Attention

We use the WKV6 kernel from the Flash Linear Attention (FLA) project by default,
so for best performance, please install FLA directly from its repository:

```
pip install -U git+https://github.com/sustcsonglin/flash-linear-attention
```

See: <https://github.com/sustcsonglin/flash-linear-attention>.

## License

Copyright © 2024 Ronsor Labs. Licensed under the Apache License, version 2.0.
mcc.py 0.0.23
Python bindings for controlling the Minecraft Console Client Websocket bot
Requires Python: >=3.8


# mcc.py

A Python module for controlling Minecraft Console Client Webhook bots

## Getting started

Beforehand note that this library only provides bindings/ for the Minecraft Console
Client WebSocket bot, it does not provide the functionality to connect to a minecraft
server on its own.

You will need to have Minecraft Console Client setup with the "Websocket" bot enabled.
[Installation](https://mccteam.github.io/guide/installation.html)
[Usage](https://mccteam.github.io/guide/usage.html)
It is recommended to run MCC without config, so that the default config file gets
created where you can then set the server ip that you want, and enable the Websocket bot
(at the bottom of the config).

Install this module via pip: `pip install mcc.py`

An example of the usage of this library can be found in the file `example.py`.

For more advanced usage, there are a number of scenarios in the `tests` folder,
including end to end tests which show server, Minecraft Console Client and a Robot
Framework library, which uses mcc.py to control a player on the server that is hosted.
These are run on Github Actions.

## Design

Interface roughly based on [MCC.JS](https://github.com/milutinke/MCC.js)

### Additions to the base design

There are effectively two queues, one for sending messages and one for receiving them
They are not designed to be directly accessed, and have methods to allow for
interacting with them in a way that is easier to use.

## EXPERIMENTAL

This library is currently purely experimental, as it relies on experimental
features of Minecraft Console Client. It may break with no warning due to
changes that are not under the control of the maintainer.

## Useful links

Documentation that proved useful:
[https://websockets.readthedocs.io/en/stable/index.html](https://websockets.readthedocs.io/en/stable/index.html)
nosaastrust 1.0
Backup manager to fetch suppliers backups and store
Requires Python: >=3.11

# noSaasTrust

noSaasTrust is a multimodal backup framework

Because no provider should ever be trusted, people should manage their own
backups.

It uses a yaml description to launch various synchronizations and run a backend
(defaults to borg) to encrypt and store the data.

## License

BSD-2-Clause-Patent

## Requirements

- python-yaml
- python-cryptography
- (optional) rsync
- (optional) borg
- (optional) git

## Installation

```
python -m build
python -m installer dist/*.whl
```

## Usage

``` bash
nost sync <desc.yaml>
nost list
nost retrieve [ARCHIVE_ID]
nost delete [ARCHIVE_ID]
```

## Configuration

### Global configuration

The framework requires a Toml configuration file named ``nost.toml``.

The framework will look by order in :

1. in the environment ``NOSTDIR`` if defined
1. ``~/.config``
1. ``/etc``
1. ``/usr/share/nost``

A configuration template can be found in <resources/nost-user.toml>.

### Backup description

The Yaml backup description is used to describe the required backup
fetch. Options are desribed in <docs/backup_description.md>

## Prerequisites

The framework may require a group nosaastrust. Add your user to this group to
gain permissions to backups.

All path given in the TOML configuration must be created. As per default:

- `/usr/backup` for backup storage
- `/var/cache/nosaastrust` for cached date and vaults
- `/var/lib/nosaastrust` for sensitive permanent data such as SSH and Fernet keys

## Daemon mode

A systemd service is provided as an example to use in daemon mode. If the
backend is borg, a passphrase may be given using the environment variable
BORG_PASSPHRASE, or more securely, one shall use the systemd-creds:

```
# systemd-ask-password -n | systemd-creds encrypt --name=borgpw -p - -
```

and create the systemd config file `nost.service.d/borg.conf` with the result:

```
[Service]
SetCredentialEncrypted=borgpw: \
        k6iUCUh0RJCQyvL8k8q1UyAAAAABAAAADAAAABAAAABODbSDtNZ8+PtlN3IAAAAAgAAAA \
        AAAAAALACMA8AAAACAAAAAAngAgRKW32QRYMvWeTcwb4SbbvK/QDF4tihGlL8OHlLKa86 \
        AAEHwr8IDsdxBmuRIXWSBGoFu8la+lTclW0/GN3OZwbvfeymJhqSoa3+76kJ1aRumQVul \
        Wvc9KxykzPhVoqFN3adVujhUkfeUmD/IMwzscsOh0hsOd8d1r2v3K8WyVv9ebk0hS1mVC \
        UzSTCNMsuKrPF2wXUP2QK5+WIjL1AE4ACAALAAAAEgAgY9RHOefBR+mMgV/Frr+UzQX1S \
        IsLFItIbfB6Ep76It0AEAAgNyMB30ZJ2HiqikmhgZfvFRZqxNRhXluH/cxMiohBDKRj1E \
        c558FH6YyBX8Wuv5TNBfVIiwsUi0ht8HoSnvoi3QAAAADffR0SV5WlPlCnJtJrhVnIXp3 \
        IO36xjF4iBmXjBfjaWhpFJ6yyY0HzHF9O1J7eNgls5aJX6Skh
Environment=BORG_PASSCOMMAND="cat %d/borgpw"
```

## Testing

Run `tox` to run all tests. Non installed python versions shall be skipped.

Run `tox -e py3xx` to run tests for a specific python version

Run `tox -e lint` for code formating check

## Contribute

Before submitting, please run `flake8 src/nost`. One can also use pre-commit:
`pre-commit install`.

## Auto generated documentation

Install dependency `pip install sphinx`.

Run `sphinx-build noSaasTrust/docs path/to/doc`.
ensure-file 1.1.2
An easy way to manage file creation.
Requires Python: >=3.6

# Ensure File
An easy way to manage file creation

Example usage:
```py
from ensure_file import ensure_file as ef

# This will create a file in the user directory under the `.example` folder
# if the file doesn't already exist. If the file does exist, nothing happens.
# Along with that, it will return true if a file is created, and false if
# nothing happens. This applies to everything else going forward.
ef("~/.example/foo.txt")

# Using the `default_value` parameter, you can set the default value to be
# written to the file. If the file already exists, nothing happens.
import json
ef("./bar.json", default_value=json.dumps({
  "foo": "bar"
}))

# If you want to create a folder, you can set the `folder` parameter to true.
ef("/tmp/foo", folder=True)

# If there is already a folder with the same name as a file you want to create,
# the folder will be deleted and overwritten. This can be disabled by setting
# the `auto_correct_type` to false. In this function call, nothing would happen
# because of the folder created on the previous line.
ef("/tmp/foo", folder=False, auto_correct_type=False)

# If you want to not actually create any files or folders and instead throw an
# error if a file or folder doesn't exist, you can easily do so by setting the
# `throw_error` parameter to true. By default, this will also throw an error
# if the file or folder is the wrong type, such as checking if the file you're
# checking has the same name as a folder in the same directory. The type
# checking can be disabled by setting the `throw_check_type` parameter to
# false.
try:
    ef("./some/file.css", folder=False, throw_error=True)
    print("The file exists!")

except FileNotFoundError:
    print("The file doesn't exist!")
except FileExistsError:
    print("A folder exists where there should be a file!")
```