semvec/pypi-packages huggingface dataset:
mmmint-registration-recognition 2.1.1
An interface to execute Fahrzeugschein API commands using Python
Requires Python: >=3.7

# Registration Recognition Python SDK

## Registration Recognition by mmmint.ai

Visit [mmmint.ai/solutions/fahrzeugschein](https://api.mmmint.ai/fahrzeugschein/v1/docs).

### 1. Handle your credentials

Create an environment variable to store the api key - reach out to [support@mmmint.ai](mailto:support@mmmint.ai).

```bash
export API_KEY="yourapikey"
```

### 2. Use the python sdk to call the API

Create an python file and insert the following to load the credentials:

```bash
apikey = os.environ.get("API_KEY", "")
```

Create an Endpoint with your Credentials

```python
from mmmint.registration_recognition.sdk import Client
client = Client(apikey)
```

Post fahrzeugschein from local Image

```python
image_path = "4.jpg"
client.new_fahrzeugschein(image_path)
```

Alternative you can post an image url to the API with:

```python
image_url = "https://deinautoguide.de/wp-content/uploads/2020/06/Fahrzeugschein-Aventador.jpg"
client.new_fahrzeugschein_url(image_url)
```

Get Status of Calculation and Results

```python
from mmmint.registration_recognition.sdk import Client
while client.status ==  Status.STARTED.value:
    client.get_fahrzeugschein_status()
    time.sleep(2)

if client.status == Status.FINISHED.value:
    client.get_fahrzeugschein()

    for i in client.fahrzeugschein:
        print(i, ": ", client.fahrzeugschein[i])
else:
    print("Aborted")
```

Get the detections:

```python
client.get_detection_bounding_boxes()
client.get_detection_image()
client.get_detection_cropped_image()
```

## Full Example

```python
from mmmint.registration_recognition.sdk import Client, Status

apikey = os.environ.get("API_KEY", "")

# Create an Endpoint with your Credentials
client = Client(apikey)

# Post Fahrzeugschein from local Image
image_path = "4.jpg"
client.new_fahrzeugschein(image_path)
print(client.session)

# Post Fahrzeugschein from URL
image_url = "https://deinautoguide.de/wp-content/uploads/2020/06/Fahrzeugschein-Aventador.jpg"
client.new_fahrzeugschein_url(image_url)

# Or use an existing one
client.get_sessions_finished()[0]["session_id"]
client.session = client.get_sessions_finished()[0]["session_id"]


print(client.session)

# Get Status of Calculation
while client.status == Status.STARTED.value:
    client.get_fahrzeugschein_status()
    time.sleep(2)

# Get Results of Fahrzeugschein
if client.status == Status.FINISHED.value:
    client.get_fahrzeugschein()

    for i in client.fahrzeugschein:
        print(i, ": ", client.fahrzeugschein[i])

    bb = client.get_detection_bounding_boxes()
    di = client.get_detection_image()
    ci = client.get_detection_cropped_image()
    print(bb)
    print(di)
    print(ci)

client.edit_fahrzeugschein()

```
swapsub 2.0.2
a subtitle file format converter

## swapsub
这是一个字幕文件格式转换器  
支持LRC，SRT，TXT三者互转  

## 安装
推荐使用pip包管理器进行安装  
```
pip install swapsub
```  

## 使用方法

### 导入swapsub
```python
import swapsub
```  

### load()函数 
load函数用于加载并预处理字幕文件  
```python
swapsub.load(path)

#path:文件路径 
```  
load()函数将返回一个列表，里面包含里经预处理后的数据  

### convert()函数 
convert函数用于转换并将转换后的文件储存到指定位置  
```python
swapsub.convert(data,path)

#data:load()函数返回的值  
#path:文件路径
```  
 
### 示例
```python
sub = swapsub.load("a.lrc")  
swapsub.convert(sub,"/home/cybytess/b.srt")
```

**注意，路径须包含文件名及扩展名**  

## 许可证  
**GPL-3.0**
pyoccur 0.1.0
Operations with duplicates in python lists
Requires Python: >=3.7,<4.0

# pyoccur

## Python Occurrence Operations on Lists

### About Package
A simple python package with 3 functions

* has_dup(<listparam>)
* get_dup(<listparam>)
* remove_dup(<listparam>)

Currently the duplicate operation functions can operate on list of elements with below data types

* str
* int
* float
* dict
* list
* pandas.DataFrame

### Example
```
from pyoccur import pyoccur
l1 = ['abc',123,'def','abc',22,10]
l2 = [{'abc':100},'wee',123,{'abc':100},'abc',123,{'a':1,'b':2}]
pyoccur.has_dup(l1)
# Output: True
pyoccur.get_dup(l2)
# Output: [{'abc':100},123]
```

### Contributing
- Feel free to raise PR to add your contributions
- Do raise issues if found any, in the Github Issues