semvec/pypi-packages huggingface dataset:
edgeprediction 0.2.1.4
Predict missing edges in a knowledge graph
Requires Python: >=3.6

# Documentation for the EdgePrediction library

This repository contains a Python implementation of the knowledge graph edge prediction algorithm described in Bean et al. 2017, and the input drug knowledge graph used in that paper. The algorithm is a general binary classifier that leans a model to predict new members of a given class within the training data. 

# Install

The package is available through pip:

```
pip install edgeprediction
```

# Contents:

* [Introduction](docs/markdown/IntroductionDoc.md)

* [Dependencies](docs/markdown/DependenciesDoc.md)

  * Dependencies list


* [Usage example](docs/markdown/ExampleUseDoc.md)

  * Initial setup

  * Input data format

  * Load data

  * Prepare to run prediction algorithm

  * Run prediction algorithm

* [EdgePrediction class documentation](docs/markdown/EdgePredictionDoc.md)

* [Objective class documentation](docs/markdown/ObjectiveDoc.md)

* [Utils class documentation](docs/markdown/UtilsDoc.md)

* [Contributing](docs/markdown/ContributingDoc.md)

# Acknowledgements
This work is funded by the National Institute for Health Research (NIHR) Biomedical Research Centre at South London and Maudsley NHS Foundation Trust and King’s College London.

The publicly available drug data as used in Bean et al. 2017 was collected from DrugBank (www.drugbank.ca) and SIDER (http://sideeffects.embl.de).

# Documentation and testing
Documentation is built with sphinx from docs_templates with sphinx>=v3.4.3
```
sphinx-build -M markdown ./ ../docs
```

Testing with pytest
```
python -m pytest tests
```
crcmodbus 1.3
crc16

# crc16

## 介绍
查表法实现crc16算法.参数模型是CRC-16/MODBUS 多项式是8005。

## API
```python
"""
计算校验和.参数模型是CRC-16/MODBUS 多项式是8005,返回值是高字节在前的16位校验值
"""
def checksum(data: bytearray) -> int
```

## 示例
```python
class _UnitTest(unittest.TestCase):
    def test_case1(self):
        data = bytearray([1, 2, 3, 4, 5, 6, 7, 8, 9])
        self.assertEqual(crcmodbus.checksum(data), 0x0eb2)

    def test_case2(self):
        data = bytearray([3, 1, 4])
        self.assertEqual(crcmodbus.checksum(data), 0x8193)

    def test_case3(self):
        data = bytearray([0x19, 0x89, 0x56])
        self.assertEqual(crcmodbus.checksum(data), 0x47a9)


if __name__ == '__main__':
    suite = unittest.TestSuite()
    suite.addTest(_UnitTest('test_case1'))
    suite.addTest(_UnitTest('test_case2'))
    suite.addTest(_UnitTest('test_case3'))
    runner = unittest.TextTestRunner()
    runner.run(suite)
```
pip-pkg 0.0.1
A small example package
Requires Python: >=3.6

<h4 align="center"> 
	Brain - Pip-Pkg
</h4>

<p align="center">
  <a href="#-project">Pip-Pkg</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
</p>

## 💻 Project

This is a pip pkg test.
pesel 0.3.1
Polish PESEL
Keywords: pesel

# pypesel

PESEL Python module

PESEL is the national identification number used in Poland since 1979. It always has 11 digits, identifies just one person and cannot be changed to another one (except some specific situations such as gender reassignment).

[![Test](https://github.com/jsporna/pypesel/workflows/Test/badge.svg)](https://github.com/jsporna/pypesel/actions?query=workflow%3ATest)
[![codecov](https://codecov.io/gh/jsporna/pypesel/branch/develop/graph/badge.svg?token=0ZQP387S65)](https://codecov.io/gh/jsporna/pypesel)
[![PyPI version](https://badge.fury.io/py/pesel.svg)](https://badge.fury.io/py/pesel)
![GitHub](https://img.shields.io/github/license/jsporna/pypesel)
![PyPI - Downloads](https://img.shields.io/pypi/dm/pesel)

## Installation

```shell
pip install pesel
```

## Python usage

```python
from pesel import Pesel

random_pesel = Pesel.generate()
random_pesel_male = Pesel.generate(male=True)
random_pesel_2021 = Pesel.generate(year=2021)

pesel = Pesel("65432101239")
```

## Shell usage
There are 2 commands: `generate` & `validate`

```shell
❯ pesel generate --help
usage: pesel generate [-h] [--year YEAR] [--month MONTH] [--day DAY] [--male | --female]

optional arguments:
  -h, --help            show this help message and exit
  --year YEAR, -y YEAR  Year of birth
  --month MONTH, -m MONTH
                        Month of birth
  --day DAY, -d DAY     Day of birth
  --male                It is male person
  --female              It is female person
```

```shell
❯ pesel generate  
62512426682
```

```shell
❯ pesel validate --help  
usage: pesel validate [-h] pesel

positional arguments:
  pesel       PESEL number

optional arguments:
  -h, --help  show this help message and exit
```

```shell
> pesel validate 62512426682
True
```