semvec/pypi-packages huggingface dataset:
wagtail-editable-help 0.2.0
Make help text editable in the Wagtail admin
Requires Python: >=3.8

# Wagtail Editable Help

Make help text editable in the Wagtail admin


[![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)

[![PyPI version](https://badge.fury.io/py/wagtail-editable-help.svg)](https://badge.fury.io/py/wagtail-editable-help)
[![Editable Help CI](https://github.com/wagtail/wagtail-editable-help/actions/workflows/test.yml/badge.svg)](https://github.com/wagtail/wagtail-editable-help/actions/workflows/test.yml)

## Links

- [Documentation](https://github.com/wagtail/wagtail-editable-help/blob/main/README.md)
- [Changelog](https://github.com/wagtail/wagtail-editable-help/blob/main/CHANGELOG.md)
- [Contributing](https://github.com/wagtail/wagtail-editable-help/blob/main/CHANGELOG.md)
- [Discussions](https://github.com/wagtail/wagtail-editable-help/discussions)
- [Security](https://github.com/wagtail/wagtail-editable-help/security)

## Supported versions

- Python 3.8 - 3.12
- Django 3.2 - 4.2
- Wagtail 4.1 - 5.2

## Installation

- Run `pip install wagtail-editable-help`
- Add `"wagtail_editable_help"` to INSTALLED_APPS
- For Wagtail 5.1 and below: add `"wagtail.contrib.modeladmin"` to INSTALLED_APPS if not already present
- Run `./manage.py migrate`
- Optional: add `"wagtail_editable_help.middleware.EditableHelpMiddleware"` to the MIDDLEWARE setting, somewhere below `"django.contrib.auth.middleware.AuthenticationMiddleware"`. Enabling this middleware will add an "Edit" link at the point the help text is shown, to allow superusers and other users with the appropriate permission to edit the help text.

## Usage

For any `help_text` argument that you wish to make editable:

    from wagtail_editable_help.models import HelpText

then replace `help_text="Some help text"` with `help_text=HelpText("model", "identifier", default="Some help text")`. The model and identifier strings serve as a unique identifer for the help text string and to organise the strings in the admin interface - they do not need to exactly match the model or field name. `HelpText` is valid within any definition that supports help text strings, not just model fields - such as form fields and StreamField blocks.

For example:

    class HomePage(Page):
        tagline = models.CharField(max_length=255, help_text="Write something snappy here")

could be rewritten to:

    from wagtail_editable_help.models import HelpText

    class HomePage(Page):
        tagline = models.CharField(max_length=255, help_text=HelpText("Home page", "tagline", default="Write something snappy here"))

The help text string will then be made available for editing within the Wagtail admin under Settings -> Help text, under the heading "Home page tagline".
sh-copilot 0.1.0
Copilot for shell
Requires Python: >=3.11.0

# Shell Copilot

## Description

Shell Copilot is a set of tools to help you in your daily shell usage.

## Installation

To install Shell Copilot, simply run the following command:

```bash
pip install --user sh-copilot
```

or with an isolated environment:

```bash
python -m venv ~/bin/sh_copilot_venv
~/bin/sh_copilot_venv/bin/pip install sh-copilot

ln -s ~/bin/sh_copilot_venv/bin/sh_copilot ~/bin/sh_copilot
ln -s ~/bin/sh_copilot_venv/bin/sc ~/bin/sc
```

## Usage

To use Shell Copilot, simply run the following command :

```bash
sh_copilot --help
```

or with the alias :

```bash
sc --help
```

## Contributing

To contribute to Shell Copilot, simply fork the repository and create a pull request. Please make sure to include a detailed description of your changes. Here are the things I will check during the review :

- Is CHANGELOG.md have been updated (**required**)
- Is the lint score did not decrease (**required**)
- Is the test coverage did not decrease (**required**)
- Is the documentation have been updated (**if required**)
- If tests have been added (**optional**)

### Development

This repository uses [Taskfile](https://taskfile.dev) to manage the development tasks. To see the available tasks, run the following command:

```bash
task --list
```
granica-sdk 2.2.0
Granica Python SDK
Requires Python: >=3

# Granica SDK

This SDK provides an authentication solution for programatically interacting with Granica. It wraps the boto3 interface so project wide integration is as easy as refactoring `import boto3` to `import granica as boto3`.

The package affects the signing and routing protocol of the boto3 S3 client, therefore any non S3 clients created through this SDK will be un-affected by the wrapper.

## Prerequisites

The minimum supported version of Python is version 3.

## Installation

```bash
python3 -m pip install granica-sdk
```

## Usage

In order to use this package, you need to set the following environment variables where your application will be running

```bash
export GRANICA_CUSTOM_DOMAIN=<YOUR_CUSTOM_DOMAIN>
export GRANICA_REGION=<YOUR_GRANICA_CLUSTER_REGION>
# Optional if not running on an ec2 instance to force read from a read-replica in this az
export GRANICA_AZ_ID=<AZ_ID>
```

For backwards compatibility, the following environment variables are supported

```
BOLT_CUSTOM_DOMAIN --> GRANICA_CUSTOM_DOMAIN
BOLT_REGION --> GRANICA_REGION
BOLT_AZ_ID --> GRANICA_AZ_ID
```

If the region and AZ environment variables aren't specified when running on an EC2 instance, the SDK will use the ec2 metadata api to fetch the instance's region and availability zone id.

## Example S3 GetObject

```python
import granica as boto3

s3_client = boto3.client('s3')
s3_client.put_object(Body="data", Bucket="BUCKET_NAME", Key="key")
response = s3_client.get_object(Bucket="BUCKET_NAME", Key="key")
obj = response['Body'].read()
```

## Debugging

Import the default logger and set its level to DEBUG

`logging.getLogger().setLevel(logging.DEBUG)`

## Tests

Basic integration tests are provided for the modified Session/Client interfaces. They must be run in an environment with a properly configured Granica deployment accessible.

```bash
python3 tests/tests.py
```