semvec/pypi-packages huggingface dataset:
do-ddns 0.3.1
A dynamic DNS soultion for Digital Ocean useres
Requires Python: >=3.7

# DDNS

_DDNS_ is a dynamic DNS helper for Digital Ocean users to utilize their DO account as a Dynamic DNS resolver.

## Installation

Copy the ```ddns.py``` file to e.g. ```/usr/local/bin``` folder and run ```chmod +x``` to make it executable. You can remove the .py filending if you wish.

Run ```pip3 install -r requirements.txt``` to install all requirements the app needs.

## Usage

For instructions run 

```bash
ddns -h
```

The program is best suited to be executed with e.g cron or any other system that can run at intervals. To run the app every 6 hours with cron add the following line to your crontab

```bash
0 */6 * * *  /usr/local/bin/ddns
```

## Contributing

Pull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.

## Support

If you found a bug or you have sugestion for new features create an issue.

## Future development

- [ ] IPv6 support
- [ ] Add and delete non existing (new) domains to DO account

## License

[<img src="https://www.gnu.org/graphics/gplv3-with-text-136x68.png">](https://www.gnu.org/licenses/gpl-3.0.en.html)
rtp-feedback-tool 0.0.3
Robot Tasking Platform(RTP,机器人任务下发与状态同步平台)的数据反馈工具,在RTP下发的应用容器中使用
Requires Python: >=3.6

# RTP FEEDBACK TOOL(机器人任务下发与状态同步平台)的数据反馈工具

- 功能：处在KubeEdge边缘（Edge）端的机器人给云端（Cloud）反馈数据。
- 只能在robot-tasking-platform的operator下发的任务容器中使用才有效。
- `text_feedback`和`image_feedback`负责将数据发送到边缘端本地的mqtt broker，之后由KubeEdge转发到远端的数据收集器。
- 机器人任务的编写者不需要知道数据收集器具体的url，只需要调用`text_feedback`和`image_feedback`即可。数据转发的路径（route）和规则（rule）是operator在下发任务时就配置好的。

```python
def text_feedback(content: str) -> None:
    """
    机器人给云端反馈文本数据
    主要是将content发送到本地的mqtt broker, 之后kubeedge帮我们转发到云端的数据收集器
    必须在robot-tasking-platform的operator下发的任务容器中使用才有效(因为下发的任务容器里正确配置了环境变量和转发规则)
    Raises a FeedbackError if the feedback fails.
    Args:
        content (str): _description_ 要反馈的文本数据内容
    """
```

```python
def image_feedback(img_rgb8: np.ndarray) -> None:
    """
    机器人给云端反馈图片数据
    主要是将content发送到本地的mqtt broker, 之后kubeedge帮我们转发到云端的数据收集器
    必须在robot-tasking-platform的operator下发的任务容器中使用才有效(因为下发的任务容器里正确配置了环境变量和转发规则)
    Raises a FeedbackError if the feedback fails.
    Args:
        img_rgb8: 图像,必须是numpy数组,且数据类型为uint8,且shape为(height, width, 3)
    """
```

注意：当给云端反馈数据失败时，`text_feedback`和`image_feedback`会抛出FeedbackError，**需要应用开发者自行处理异常**。
letloop.py 0.1.6
A cloud for the parenthetical leaning doers
Requires Python: >=3.10,<4.0

# `letloop.py`

Client to interact with
[https://letloop.cloud](https://letloop.cloud/).

![A curl looking like a growing lemniscate](https://letloop.cloud/static/letloop.png)

Usage:

> A cloud for the parenthetical leaning doers
>
> Usage:
>
>  🌐️ letloop.py FILENAME
>
>  📜 Caveat emptor: this service is alpha, use it at your own risks
>
>  👋 For inspiration have a look at: https://github.com/letloop/letloop.cloud/

You can have your way with curl!
pytest-draw 0.1
Pytest plugin for randomly selecting a specific number of tests

# pytest-draw

Pytest plugin for randomly selecting a specific number of tests.

## Overview

`pytest-draw` is a pytest plugin that allows you to randomly select a specific number of tests from your test suite. This can be useful for running a smaller subset of your tests during development or as part of your continuous integration (CI) pipeline.

By default, `pytest-draw` selects 5 tests to run.

## Use Cases

Some potential use cases for `pytest-draw` include:

- Running a smaller subset of your tests during development to speed up iteration time
- Running a specific set of tests as part of your CI pipeline to ensure compatibility with certain environments or configurations
- Running tests randomly to catch flaky tests or race conditions

## Installation

You can install `pytest-draw` using `pip`:

` pip install pytest-draw `


## Usage

Once installed, you can use the `--draw` command-line option to specify the number of tests to randomly select. For example, to randomly select 10 tests from your test suite, you can run:

`` pytest --draw=10 ``

By default, `pytest-draw` selects 5 tests. You can specify a different number of tests using the `--draw` option. 

## Benefits

Some benefits of using `pytest-draw` include:

- Faster iteration time during development by running a smaller subset of your tests
- Improved test coverage by running tests randomly to catch flaky tests or race conditions
- Improved reliability of your CI pipeline by running a specific set of tests in certain environments or configurations

## How to Contribute

If you would like to contribute to `pytest-draw`, you can do so by opening a pull request on GitHub. We welcome contributions in the form of bug reports, feature requests, and code changes.

To get started, clone the `pytest-draw` repository and install the development dependencies:


We appreciate your contributions to `pytest-draw` and thank you for your support!

## License

`pytest-draw` is licensed under the [MIT](https://opensource.org/license/mit/) License.
glored 0.1.1
Redis client that runs as a unique global object within the library and supports asynchronous calls
Requires Python: >=3.8

# Asynchronous GLObal REDis Interface

Implements a small interface around the basic `redis.Redis()` client meant to be shared
across different files in the same process that need access to the same redis instance.
This implementation has two major goals:

1. Allow sharing the same Client object across different files without having to pass
the object itself each time.
2. Allow asynchronous calls to the redis interface, specially when submitting data to 
avoid any disruption in running code

## Usage

The usage of this library is straight forward and it implements the basic `redis.Redis()` methods:

```python
from glored import redis_client
import time

# Synchronous
redis_client.set('some_key', 'some_value')
result = redis_client.get('some_key')

# Asynchronous
redis_client.asynchronous.set('some_key', 'other_value')
time.sleep(1)
result = redis_client.get('some_key')
```
django-po-translator 1.0.1
Translate Django PO files and resolve fuzziness with ease.

# django-po-translator

Django package allows you to translate PO files automatically and fix all the fuzziness in your files ... with only one command
The package will detect all your PO files and translate or fix them based on the file language ... without any interaction by you.

You can check [pypi](https://pypi.org/project/django-po-translator/) for more information.


# Installation

### Install the package

```
pip install django-po-translator

```

### Add the package to your installed apps

```
INSTALLED_APPS = [
    ..., 
    'django_po_translator',
    ...
]
```

### Important steps

Make sure your app is ready to support localization ... you should have *locale* folder in the root of your project and **all related settings** are added.


# How to use the package?

- After installing the package and making sure that all is looking fine
- Run ` python manage.py translate ` *Extra arguments will be mentioned down*
- You will need to compile messages to reflect the new translations
- Enjoy :) 

### po-translator command arguments

- **--translate-existed**: This argument will allow the command to translate the already existed translation .. use it carefully .. as it will override all your existing translations
- **--resolve-fuzzy**: This argument will resolve all fuzzy translations in your po file

Ex: ` python manage.py translate --translate-existed --resolve-fuzzy `


### Tests

To run tests ` python manage.py test django_po_translator `

### Note

If you have any issue while using the package ... don't hesitate to report it and it will be fixed ASAP. Thank you.