semvec/pypi-packages huggingface dataset:
tripperpy 0.1.0
A triplestore wrapper for Python.
Requires Python: ~=3.7
Keywords: triplestore,ontology,RDF

# Tripper

**A triplestore wrapper for Python.**

_The best ride when handling any triplestore._

## Installation

The package can be installed from [PyPI](https://pypi.org/project/tripperpy) using `pip`:

```shell
pip install tripperpy
```

## License and copyright

All files in this repository are licensed under the [MIT license](LICENSE) with copyright &copy; 2022 European Material Modelling Council.
shirkhan 0.0.28
shirkhan tools

# shirkhan

the python tool library for shirkhan
> currently using with project u-open-imla

# Usage

## 安装

```shell
pip install shirkhan
```

## 更新

```shell
 pip install --upgrade shirkhan
```

## 删除

```shell
 pip uninstall  shirkhan
```

```python
from shirkhan import decode, encode, syllabify

encode("xxxx")
decode("yyy")
word = "شىرخان"
print(syllabify(word))

```

# 功能示例：

## 分音节

    思路：
    1. 把单词向量化，按照元音，辅音 的0，1 值生成token 0100100
    2. 从后往前分析 所以需要反转 retoken 0010010
    3. 把retoken 以元音为分界分组 001 001 0
    4. 按照分音节通用算法进行给retoken 植入分隔符
        - 两个元音之间有1个辅音它属于前面的音节
        - 两个元音之间有2个辅音它一个属于前面的，一个属于后面的
        - 两个元音之间有3个辅音 第一个属于前面的，后两个属于后面的
        - 两个元音之间有4个辅音 第一个属于前面的，其后的两个一组，最后一个属于后面的   【shirkhan 给自己出的规则，目前没有任何凭据这么做，而且是不对的】
        - 两个元音之间有5个辅音 第一个属于前面的，其后的三个一组，最后一个属于后面的   【shirkhan 给自己出的规则，目前没有任何凭据这么做，而且是不对的】

    5. 把嵌入分割符的retoken分割点坐标映射到原始内容上 i -> len(word)-i
    6. 按照分割符切割

```python
from shirkhan import syllabify

print(syllabify('شىرخان'))

# output ['شىر', 'خان']
```

## 元音辅音组合的向量

```python
from shirkhan import SWord

target_word = "شىرخان"

print(SWord(target_word).tokenize())

# output 010010
```

## 组合向量分组

```python
from shirkhan import SWord

target_word = "شىرخاننىڭمۇ"
sw = SWord(target_word)
gtoken = sw.get_grouped_token()
gretoken = sw.get_grouped_retoken()

print(sw.tokenize())
print(gtoken)
print(gretoken)

# 01001001001
# [['0', '1'], ['0', '0', '1'], ['0', '0', '1'], ['0', '0', '1']]
# [['1'], ['0', '0', '1'], ['0', '0', '1'], ['0', '0', '1'], ['0']]
```

## 分音原始内容

```python
from shirkhan import SWord

target_word = "شىرخاننىڭمۇ"
sw = SWord(target_word)
print(sw.get_positional_word())
print(sw.get_positional_token())
print(sw.get_positional_retoken())

# شىرxخانxنىڭxمۇ
# 010x010x010x01
# 10x010x010x010
```

## 单词生成字单词

```python
# 第一种方式
from shirkhan import SWord

target_word = "شىرخاننىڭمۇ"
sw = SWord(target_word)
print(sw.get_similar_words())

# 第二种方式
from shirkhan import SWord

target_word = "شىرخاننىڭمۇ"
print(SWord(target_word))

# output:
# ['شىر', 'شىرخان', 'شىرخاننىڭ', 'شىرخاننىڭمۇ']

```
shop-python 0.0.5
A Shopping Python Framework
Requires Python: >=3.9

# Micro Shop Framework

[![CircleCI](https://circleci.com/bb/Qoyyuum/shoppy.svg?style=svg)](https://circleci.com/bb/Qoyyuum/shoppy)


Made in Python 3.

Welcome to the micro shopping framework, `shop-python`.

Install it with pip:

```python
python3 -m pip install shop-python --upgrade
```

You can then import the module.

This module consists of 4 other packages, namely:

- Product
- POS
- Customer
- Store

```python
from shop_python import Product, POS, Customer, Store
```

## Product

Product package class has the following attributes:

- uniqueId
- name
- price
- description
- quantity

`uniqueId` is not autogenerated for each product. Developer will have to create one, including for all other attributes.

Example usage:

```python
banana = Product(uniqueId="FRUITBANANA001", name="Yellow Sweet Banana", price=2.50, description="Sweet, yellow, ripe banana, air-flown from Australia", quantity=100)
```

## POS

POS is the Point of Sale package that operates the cash register for the clerk/teller to manage customer transactions. Currently it only checks for balance amount and movement of the transactions.

Initiate the POS instance with a starting balance amount.

```python
cashier_pos = POS(balance=100.0)
```

When performing a transaction for money coming into the cash register, use the `money_in()` function.

```python
cashier_pos.money_in(amount=24.99)
```

When performing a transaction for money coming out of the cash register, use the `money_out()` function.

```python
cashier_pos.money_out(amount=24.99)
```

To get the current balance of the POS, get its balance attribute.

```python
cashier_pos.balance
```

## Customer

// TODO

## Store

A store is one shop. A shop has a name, a list of products and a POS associated with it (TODO: Turn it into a list of POS for multiple tellers/cashiers)

Initiate a store instance with a POS and a list of Products.

```python
my_shop = Store(name="My Supermarket", pos=cashier_pos, products=[banana])
```

Display a list of products in the store:

```python
my_shop.displayProducts()
```
jnlog 1.0.2
jnlog simple colored text logger for python

jnlog
=====

**Simple to use colored text logger for python**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

How to use:
^^^^^^^^^^^

.. code:: python

   import jnlog
   name = 'MyScript' #used to identify one logger in many
   loglevel = jnlog.INFO
   logger = jnlog.jnlog(name=name, loglevel=loglevel)
   logger.info('Hello, World!')

result:
^^^^^^^

|image0|

See example.py for more

loglevels:
~~~~~~~~~~

================== ==== ======= =====
fn:raw-latex:`\ll` INFO WARNING ERROR
================== ==== ======= =====
info()             +    -       -
warn()             +    +       -
error()            +    +       +
================== ==== ======= =====

license: MIT
~~~~~~~~~~~~

.. |image0| image:: https://gitlab.com/seeklay/jnlog/-/raw/main/prev.png