semvec/pypi-packages huggingface dataset:
basicldap3 0.1.2
Provides basic authentication using the ldap3 library
License: MIT
Requires Python: >=3.6,<4.0

# Basic LDAP3

Basic LDAP is a small package that uses the ldap3 library. It can be used to authenticate a user against an LDAP server and can check whether the users is in a specific group. In addition it is possible to get user attributes if the authentication is successful.

## Basic example

### Import basicldap and define the server
```python
from basicldap import Ldap

LDAP_HOST = 'ldap.server.com'
LDAP_BASE_DN = 'DC=example,DC=com'

conn = Ldap(LDAP_HOST, LDAP_BASE_DN)

# Using SSL
ssl = {"port": 636, "use_ssl": True}
conn = Ldap(LDAP_HOST, LDAP_BASE_DN, ldap3_args=ssl)
```
### Authenticate the user
```python
conn.authenticate(user_name, password)
```

### Get user attributes (requires successful authentication)
```python
# To get all attributes
conn.get_attributes()

# To get specific attributes
conn.get_attributes(['mail', 'cn])
```
macos-tags 1.5.1
Use tags to organize files on Mac from Python
License: MIT
Requires Python: >=3.6,<4.0
Keywords: macos,tags

# Use tags to organize files on Mac from Python

![Release](https://github.com/dmkskn/macos-tags/workflows/Release/badge.svg)
[![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)

## Installation

```bash
pip install macos-tags
```

Works since Python 3.7.

## Tutorial

Get all tags:

```python
>>> import macos_tags


>>> macos_tags.tags()
[Tag(name='design', color=<Color.NONE: 0>), ..., Tag(name='python', color=<Color.GREEN: 2>]
```

Get files by tag name:

```python
>>> macos_tags.find("design")
['/Users/home/apple.jpg', '/Users/home/WEB_POSTERS.png']
```

Count files by tag name:

```python
>>> macos_tags.count("design")
2
```

List the tags on the file:

```python
>>> path = "/path/to/file"

>>> macos_tags.get_all(path)
[Tag(name='design', color=<Color.NONE: 0>), Tag(name='python', color=<Color.GREEN: 2>]
```

Add a tag to file:

```python
>>> macos_tags.add("design", file=path)
```

> When using `str` objects to define a tag, if a tag does not exist in the system, it will be added without a color label.

Add a new color tag by using `Tag` data class and `Color` enumeration:

```python
>>> from macos_tags import Tag, Color


>>> tag = Tag(name="python", color=Color.GREEN)

>>> macos_tags.add(tag, file=path)
```

Add a new color tag using the `str` object, where the tag name and color number (from 1 to 7) are separated by the literal `\n`:

```python
>>> tag = f"python\n{Color.GREEN}"  # == "python\n2"

>>> macos_tags.add(tag, file=path)
```

> If the tag already exists in the system with a different color, the new color will be ignored.

Remove tag from file:

```python
>>> macos_tags.remove(tag, file=path)
```

Remove all tags from a file at once:

```python
>>> macos_tags.remove_all(path)
```

Change all tags in the file:

```python
>>> macos_tags.get_all(path)
[Tag(name='design', color=<Color.NONE: 0>), Tag(name='python', color=<Color.GREEN: 2>]

>>> new_tags = [Tag("book"), Tag("programming", Color.BLUE)]

>>> macos_tags.set_all(new_tags, file=path)

>>> macos_tags.get_all(path)
[Tag(name="book", color=<Color.NONE: 0>), Tag("programming", <Color.BLUE: 4>]
```

❤️
icv 0.0.1.7.1
some common code and tools for computing version
License: MIT
Requires Python: >=3.5.0

# icv

## 包含的功能
+ 数据、预处理、增广、格式转换、制作tfrecord
+ 模型预测（多进程、切图）、评估
+ 工具：合并图片、切图、制作html展示图片、NMS、IOU
+ .....
coco-rasa 0.0.3
CoCo(Conversational Components) SDK for using components in Rasa
License: MIT
Requires Python: >=3.6


# A Toolkit to work with components in rasa

### Installation (We recommend using a virtualenv):
```
pip install coco-rasa
```

### Setup:
#### Setting up CoCo actions
in actions.py
```python
from coco_rasa import GenericCoCoAction

class OneLiners(GenericCoCoAction):
    # component name is the component_id from CoCo marketplace
    component_name = "generic_oneliners_vp3"

class Namer(GenericCoCoAction):
    component_name = "namer_vp3"
```

in domain.yml
```yaml
actions:
    - generic_oneliners_vp3
    - namer_vp3
```

#### to enable multi-turn capabilities for CoCo actions
in your rasa bot config.yml
```yaml
policy:
  - name: "coco_rasa.CoCoContextPolicy"
```

#### triggering actions (and CoCo actions)
* MappingPolicy

``` yaml
# config.yml:
policies:
    - name: MappingPolicy
```

```yaml
# domain.yml
intents:
    - greet:
        triggers: namer_vp3
    - someotherintent
```
* Fallback policy

``` yaml
# config.yaml
policies:
    - name: "FallbackPolicy"
        nlu_threshold: 0.4
        core_threshold: 0.3
        fallback_action_name: "generic_oneliners_vp3"
```

#### using context transfer
in domain.yml declare the keys you want the use(from CoCo context transfer protocol). data will be transferred automatically between components.
```yaml
slots:
  user.firstName:
    type: text
  user.lastName:
    type: text
```