semvec/pypi-packages huggingface dataset:
spellmatch 0.1.0
Spatial cell representation matching
License: MIT
Requires Python: <3.10,>=3.9

# spellmatch

![Python](https://img.shields.io/pypi/pyversions/spellmatch)
![PyPI](https://img.shields.io/pypi/v/spellmatch)
![Build](https://img.shields.io/github/workflow/status/BodenmillerGroup/spellmatch/build_and_deploy)
![Coverage](https://img.shields.io/codecov/c/github/BodenmillerGroup/spellmatch)
![Issues](https://img.shields.io/github/issues/BodenmillerGroup/spellmatch)
![Pull requests](https://img.shields.io/github/issues-pr/BodenmillerGroup/spellmatch)
![License](https://img.shields.io/github/license/BodenmillerGroup/spellmatch)

Spatial cell representation matching

Documentation is available at https://bodenmillergroup.github.io/spellmatch

# Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what
you would like to change. Please make sure to update tests as appropriate.

## Extending spellmatch

Spellmatch uses [pluggy](https://pluggy.readthedocs.io) to discover and interface with
plugins.

Currently, spellmatch supports the addition of custom mask matching algorithms. To add
your mask matching algorithm to spellmatch, create a Python package named
`spellmatch-youralgorithm`, configure your setuptools entrypoint for pluggy, and
implement the `spellmatch.hookspecs.spellmatch_get_mask_matching_algorithm` hook.

Please refer to the spellmatch reference documentation for further details.

# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.1.0] - 2022-05-19

Initial release

[0.1.0]: https://github.com/BodenmillerGroup/spellmatch/releases/tag/v0.1.0

MIT License

Copyright (c) 2022 University of Zurich

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
sap-rfc-data-management 1.1.3
Automate some SAP transactions
License: MIT
Keywords: sap,data,rfc,automate,ec3,pm

# SAP RFC data management

Lib to perform some SAP ERP modifications.

# Requirements

You need to install Cython before install this lib:
```
pip install Cython
```

Also need to install SAP RFC SDK.

# Install
```
pip install sap-rfc-data-management
```

# Usage
### Create PM notification:
```python
from sap_rfc_data_management.connection import SAPConnection
from sap_rfc_data_management.pm_notification import PMNotification

connection = SAPConnection(
    host=SAP_HOST,
    service=SAP_SERVICE,
    group=SAP_GROUP,
    sysname=SAP_SYSNAME,
    client=SAP_CLIENT,
    lang=SAP_LANG,
    user=SAP_USER,
    password=SAP_PASSWORD
)

runner = PMNotification(connection=connection)

number = runner.create(
    title='notification title',
    notification_type='notification type',
    priority='notification priority',
    equipment='notification equipment number',
    reported_by='notification reported user (or some other text)',
    date_malfunction='malfunction datetime',
    maintenance_plant='notification plant',
    workcenter_id='notification workcenter'
)
print(number)  # created notification's number
```

### Change PM equipment ABC code:
```python
from sap_rfc_data_management.connection import SAPConnection
from sap_rfc_data_management.pm_equipment import PMEquipment

connection = SAPConnection(
    host=SAP_HOST,
    service=SAP_SERVICE,
    group=SAP_GROUP,
    sysname=SAP_SYSNAME,
    client=SAP_CLIENT,
    lang=SAP_LANG,
    user=SAP_USER,
    password=SAP_PASSWORD
)

runner = PMEquipment(connection=connection)
runner.change(
    equipment='equipment number to be changed',
    abc_code='new abc code (1 character)'
)
```
wekan-logstash 0.1.6
Simple script that will print cards data for logstash (ELK Kibana) in JSON format
License: MIT
Requires Python: >=3.8
Keywords: wekan,logstash

# wekan-logstash

## Install

To install the package run the following command

```bash
python -m pip install wekan-logstash
```

After installed the package from [PyPi]([https://](https://pypi.org/project/wekan-logstash/)), the script **get_cards** is available and ready to be running

```bash
#get_cards --help

Usage: get_cards [OPTIONS] [BOARDSFILE]

  Script to read Wekan cards belonging to one or more boards, directly from
  Mongodb in JSON format.

  Make a request to Logstash configured to use the HTTP input plugin to ingest
  the cards into Elasticsearch.

Options:
  --boardId TEXT  Single Board ID
  --logstash      Make a HTTP request to Logstash endpoint, defined at
                  LOGSTASH SERVER environment variable
  -v, --verbose   Show cards JSON data
  -h, --help      Show this message and exit.
```

> **Warning**: It is necessary before executing the above script that we define the following environment variables used for the connection to the mongodb database and the logstash URL
>
>- **MONGODB_USER**: Database username
>- **MONGODB_PWD**: Database password
>- **MONGODB_HOST**: Database hostname
>- **MONGODB_PORT**: Database port
>- **MONGODB_DB**: Database name
>- **LOGSTASH_SERVER**: Logstash endpoint url

## Data format

To format data for logstash and ELK (Kibana) - Format below :

```json
{
  "id": "7WfoXMKnmbtaEwTnn",
  "title": "Card title",
  "storyPoint": 2.0,
  "nbComments": 1,
  "createdBy": "fmonthel",
  "labels": [
    "I-U",
    "I-Nu"
  ],
  "assignees": "fmonthel",
  "members": [
    "fmonthel",
    "Olivier"
  ],
  "boardSlug": "test",
  "description": "A subtask description",
  "startAt": "2021-06-07T20:36:00.000Z",
  "endAt": "2021-06-07T20:36:00.000Z",
  "requestedBy": "LR",
  "assignedBy": "MM",
  "receivedAt": "2021-06-07T20:36:00.000Z",
  "archivedAt": "2021-06-07T20:36:00.000Z",
  "createdAt": "2021-06-07T20:36:00.000Z",
  "lastModification": "2017-02-19T03:12:13.740Z",
  "list": "Done",
  "dailyEvents": 5,
  "board": "Test",
  "isArchived": true,
  "dueAt": "2021-06-07T20:36:00.000Z",
  "swimlaneTitle": "Swinline Title",
  "customfieldName1": "value1",
  "customfieldName2": "value2",
  "boardId": "eJPAgty3guECZf4hs",
  "cardUrl": "http://localhost/b/xxQ4HBqsmCuP5mYkb/semanal-te/WufsAmiKmmiSmXr9m",
  "checklists": [
      {
          "name": "checklist1",
          "items": [
              {"title": "item1", "isFinished": true},
              {"title": "item2", "isFinished": false}
            ]
      },
      {
          "name": "checklist2",
          "items": [
              {"title": "item1", "isFinished": true},
              {"title": "item2", "isFinished": true}
            ]
      }
  ]
}
```

Goal is to export data into Json format that we can be used as input for Logstash and ElastisSearch / Kibana (ELK)

Import in logstash should be done daily basic (as we have field daily event)
redisplus 0.0.1
Redis操作工具。
License: MIT
Requires Python: >=3


### 使用手册

**快速开始**

```python
import redisplus

# 获取原生的Redis对象
# redis = redisplus.getRedis(host="docker.kancy.top", password="root123")

# 获取SimpleRedis对象，不支持的的value会自动实现序列化
redis = redisplus.getSimpleRedis(host="docker.kancy.top", password="root123")

# 设置属性
redis.set("name", "kancy")

# 查询
redis.get("name")

# 删除
redis.delete("name")

# 设置过期时间
redis.setex("name", "kancy", 0.01)

# 设置，当key不存在时
redis.setnx("name", "kancy")
```