semvec/pypi-packages huggingface dataset:
tracardi-language-detection 0.6.0
This plugin detect language from given string with meaningcloud API
Requires Python: >=3.8
Keywords: tracardi,plugin

# Language detection Plugin

The purpose of this plugin is detect language from given string with meaningcloud API

# Configuration

This node requires configuration. You need have an account in meaningcloud to get access to API.

*Example*

```json
{
  "source": {
    "id": "<source-id>"
  },
  "message": "Hello world!",
  "timeout": 10
}
```

* *source.id* - enter your resource id with access token, See below for resource schema.
* *message* - enter your message.
* *timeout* - response time-out.

## Resource configuration

*Example*

```json
{
  "token": "<token>"
}
```

Please register to https://www.meaningcloud.com/developer/account/subscriptions to obtain token.

Use *Api-Token* resource template in GUI to create this kind of resource.

# Input

This node does not process input payload.

# Output

This node returns json with API response at response port if API call was successful.

*Example of successful call*

```json
{
  "status": 200,
  "body": {
    "deepTime": 0.04363226890563965,
    "language_list": [
      {
        "iso-639-1": "en",
        "iso-639-2": "eng",
        "iso-639-3": "eng",
        "language": "en",
        "name": "English",
        "relevance": 100
      }
    ],
    "status": {
      "code": 0,
      "msg": "OK",
      "credits": 1,
      "remainig_credits": 19964
    },
    "time": 0.04784107208251953
  }
}
```
tracardi-mysql-connector 0.6.0
The purpose of this plugin is to connect with mysql database and perform query.
Requires Python: >=3.8
Keywords: tracardi,plugin

# Mysql Connector

This plugin connects to Mysql and executes a SQL query.

# Configuration

*Example*

```json
{
  "source": {
    "name": "mysql",
    "id": "a8430a5c-43de-44eb-9c25-2b1426aed3a0"
  },
  "type": "select",
  "query": "SELECT * FROM user WHERE User=%s;",
  "data": [
    "root"
  ],
  "timeout": 10
}
```

* *source* this a resource with MySQL credentials. See below for credentials schema.
* *type* - type of query, possible values are ['select', 'insert', 'delete', 'update']
* *query* - this is the SQL prepared statement. It will replace %s with data provided in *data* key. This is a
  sequential order so order of %s and data matters.
* *data* - data to replace in SQL prepared statement template.
* *timeout* - query timeout.

# Output

It returns the data in JSON.

*Example*

```json
{
  "result": [
    {
      "Host": "%",
      "User": "root",
      "Select_priv": "Y",
      "Insert_priv": "Y",
      "Update_priv": "Y",
      "Delete_priv": "Y",
      "Create_priv": "Y",
      "Drop_priv": "Y"
    },
    {
      "Host": "localhost",
      "User": "root",
      "Select_priv": "Y",
      "Insert_priv": "Y",
      "Update_priv": "Y",
      "Delete_priv": "Y",
      "Create_priv": "Y",
      "Drop_priv": "Y"
    }
  ]
}
```

If the query is of insert type then the output result will have last inserted record id.

If the query is of type "delete","update", or "create" then the output result will have input payload.

# Errors

```
Not all arguments converted during string formatting
```

This error is raised when the number of %s placeholders and data do not match. That means the number of placeholders is
not equal to the number of data.