semvec/pypi-packages huggingface dataset:
jinja2-ext-path 0.2.0
Filters from `os.path` for jinja2
Requires Python: >=3.0,<4.0

# jinja2-ext-path

    $ pip install jinja2-ext-path

## Usage

See [Extensions - Adding Extensions](https://jinja.palletsprojects.com/en/3.0.x/extensions/#adding-extensions).

You would be able to use it like this:

```py
jinja_env = Environment(extensions=['jinja2_ext_path.basename', 'jinja2_ext_path.dirname'])
```

Or:

```py
jinja_env.add_extension('jinja2_ext_path.dirname')
```

Then you can render like this:

```py
jinja2_env.from_string("{{ '/home/user/test.txt'| dirname }}")
```

For further reference:

- [Python 3 — os.path](https://docs.python.org/3/library/os.path.html)
- [jinja2 — Template Designer Documentation - Filters](https://jinja.palletsprojects.com/en/3.1.x/templates/#filters)

**Please note:** currently methods `os.path.dirname` and `os.path.basename` are included. Feel free to put in a PR.

## Installation

```$
$ pip install jinja2-ext-path
```

## Development

This project uses [pre-commit](https://pre-commit.com/#installation).

## License

Licensed under **GNU General Public License** (Version 3, 29 June 2007).

See [LICENSE.md](LICENSE.md).
zhTW2Num 1.0.1
Convert zh-TW numbers to Arabic numerals
Requires Python: >=3.6

# zhTW2Num

## Summary
* This tool is for converting the number texts of Traditional Chinese into float
* Float value is supported

## How to use it

```
text = '金額總共兩千零二十元'
res = zhTW2Num(text)
print(res) # 2020.0
text = '長度二點零五公分
res = zhTW2Num(text)
print(res) # 2.05

```
clld-corpus-plugin 0.0.8
A plugin providing text functionality in CLLD.
Keywords: clld,corpus linguistics

# clld-corpus-plugin

A plugin providing text functionality in CLLD.

![License](https://img.shields.io/github/license/fmatter/clld-corpus-plugin)
[![PyPI](https://img.shields.io/pypi/v/clld-corpus-plugin.svg)](https://pypi.org/project/clld-corpus-plugin)
![Versions](https://img.shields.io/pypi/pyversions/clld-corpus-plugin)
kld7 0.2.1
K-LD7 Doppler radar sensor driver
Requires Python: >=3.6
Keywords: radar,Doppler

A Python driver for the K-LD7 radar module
==========================================

This is a simple, high-level interface to the K-LD7_ radar module. It
lets the user read and set the various radar parameters as described
in the datasheet_ and fetch the various sorts of raw or processed data
frames from the sensor, either individually or as a stream. 

Tracking the distance, speed, angle and magnitude of the most
promenant moving object in range is as simple as:

.. code-block:: python

    from kld7 import KLD7
    with KLD7("/dev/tty.usbserial") as radar:
        for target_info in radar.stream_TDAT():
            print(target_info)

Documentation
-------------

The API for this module is documented on ReadTheDocs_.
            
Overview
--------

According the the datasheet:

    "The K-LD7 is a fully digital low cost Doppler radar that can
    measure speed, direction, distance and angle of moving objects in
    front of the sensor. The digital structure and wide power supply
    range make it very easy to use this sensor in any stand-alone or
    MCU based application."

The module can detect and measure multiple moving objects and provide
filtered tracking information about the most prominent one. Various
detection criteria can be stored and a set of programmable output pins
on the module can be configured to indicate detection status, allowing
for stand-alone operation once the coniguration paramters have been
set.

The K-LD7 module includes an integrated signal processor and allows
access to the radar signal at a number of levels including raw ADC
samples, FFT output, candidate targets, most significant tracked
target and flags for the tracked target relative to detection
thresholds. Each level of processing provides higher-level information
and thus reduces the volume of data that needs to be sent to the host.
This driver allows users to access each of these levels of data to be
fetched, either as a single snamshot or as a stream of data frames.

Configuration paramters
-----------------------

The K-LD7 module has 22 configurable radar paramters that can be used
to control the sensitivity, distance and speed range and detection
thresholds used during filtering, as well as for configuring the
programmable output pins. These paramters can be read and set though
a ``RadarParamProxy`` object accessible as the ``params``
attribute of the driver object.

            
.. _K-LD7: https://www.rfbeam.ch/product?id=40

.. _datasheet: https://www.rfbeam.ch/files/products/40/downloads/Datasheet_K-LD7.pdf

.. _ReadTheDocs: https://kld7.readthedocs.io/en/latest/
BulkRenamerPy 0.1.5
A simple tool to bulk rename files in a directory
Requires Python: >=3.8
Keywords: bulk rename,rename,rename files

# BulkRenamerPy

Simple bulk rename tool, rename files in a directory with a given pattern, prefix and padding.

By default, rename is incremental, so if you have a file image.png, it will rename 1.png, 2.png and so on, a prefix and padding can be specified.

Rename is made using regex, also possible to sort and limit files to rename.

Written in python with [rich_click](https://github.com/ewels/rich-click/).

## Installation

```bash
pip install BulkRenamerPy
```

## Example Usage

**Rename all files with png and jpg extension**

`bulk_rename path/to/dir/ ".*.(png|jpg)"`

**Rename all files that contain "image", add prefix "Wallpaper" with 2 padding**

`bulk_rename path/to/dir/ "image*" "Wallpaper" -p 2`

**Rename all files limited to 10, sorted by size**

`bulk_rename path/to/dir/ ".*" -l 10 -s size`

**More info using --help**

`bulk_rename --help`

## **Friendly Reminder**

This tool will rename any file that you have permissions, and can cause damage, specially on UNIX systems, so please be careful and use it with caution. I advise to run using `--dry-run` flag first.