semvec/pypi-packages huggingface dataset:
rotom 0.0.2
rotom
Requires Python: >=3.6

# Custom functions <!-- omit in toc -->

## Table of contents <!-- omit in toc -->

1. [Utility](#utility)
   1. [Hash file](#hash-file)
   2. [Hash string](#hash-string)

## Utility

### Hash file

```sh
rotom hash-file [target_file]
```

Supported options included:

- algo: Type of hash algorithm [Default: md5]
- length: Length of final output, truncated by shake_256, < 0 for full hash

---

### Hash string

```sh
rotom hash-str [input_str]
```

Supported options included:

- algo: Type of hash algorithm [Default: md5]
- length: Length of final output, truncated by shake_256, < 0 for full hash

---
AutoKS 0.0.28
An easy-to-used Python package to process knowledge structure data automatically
Requires Python: >=3.6

# AutoKS

An easy-to-used Python package to process knowledge structure data automatically, including:
- Convert a variety of forms of data (e.g., concept map, essay/summary) into a graph
- Calculate graph-based features
- Similarity comparison

## Installation

Windows:

`py -m pip install --upgrade AutoKS`

Unix/macOS:

`python3 -m pip install --upgrade AutoKS`

## Import

```
import AutoKS as ks
```

## Quickstart

### Step 1: load data

For concept map data in proposition format, it should be arranged in a way like this: 

```
beeswax	minerals
bees	figure 8
nectar	bees
water	beeswax
......
```

Use `cmap2graph` to load a concept map data of propositions format (i.e., pairs), and convert it into a `networkx` graph

```
bees_student = ks.cmap2graph(filepath='bees_student_cmap_en.txt', data_type='pairs')
```

For text data, we can load it from a string object directly

The content is too much so I only show you the beginning and the end of this text

```
text = "Bees make honey to survive. ......Some of the main sources of nectar are fruit trees, clover and flowering trees."

text = text.replace('honeycomb', 'hive')  # replace synonym: honeycomb --> hive

keyterms = ['beeswax', 'sun', 'nectar', 'house bees', 'water', 'distance',
            'hive', 'shake', 'honey', 'abdomen', 'figure 8', 'minerals',
            'bees', 'evaporation', 'dry', 'fruit trees']
```

Now we can convert it into a `networkx` graph by using function `text2graph`

```
bees_text = ks.text2graph(text, keyterms, read_from_file=False)
```

### Step 2: Do some calculations

For example, we can calculate the propositional similarity between graph `bees_student` and `bees_text`, by using funciton`calc_tversky`

```
ks.calc_tversky(bees_en, bees_student_en, comparison='propositional', detailed=True)
```

### Step 3: Visualization

Use function `draw_html` to show graph, it would draw graph using `D3.js`, and display it by `pywebview`

```
ks.draw_html(bees_student)
```

result:

![alt text](https://raw.githubusercontent.com/weiziqian1996/AutoKS/c4ded85259b2e4fe1f6096497237ecb6ad29f528/example/bees_student_cmap.svg?token=AQJFWNM67YCENHNMDVWOTRDA4BYFO)

## Dependencies

`networkx`: A Python package for network analysis

`numpy`: A Python package for scientific computing

`pywebview`: A Python package for building GUI with JavaScript, HTML, and CSS

`d3.js`: A JavaScript library for manipulating documents based on data
ahdcreative-sphinx-theme 1.0.4
Sphinx AHDCreative Theme
Requires Python: >=3.7

# [Sphinx AHD theme](https://sphinx-ahd-theme.netlify.app/)

[![CI status](https://github.com/ahdcreative/sphinx_ahd_theme/workflows/CI/badge.svg)](https://github.com/ahdcreative/sphinx_ahd_theme/actions?query=workflow%3ACI) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

Sphinx AHD theme contains all files required to build a Sphinx extension that provides the theme.

-   [MIT license](https://github.com/ahcreative/sphinx_ahd_theme/blob/main/LICENSE)
-   [Repository](https://github.com/ahdcreative/sphinx_ahd_theme)
-   [Security](https://github.com/ahdcreative/sphinx_ahd_theme/blob/main/SECURITY.md)
-   [Changelog](https://github.com/ahdcreative/sphinx_ahd_theme/blob/main/CHANGELOG.md)
-   Supports Python > 3.7

## Installation

```sh
pip install sphinx-ahd-theme
```

## Usage

Select the "Sphinx AHD theme" in the `conf.py` file of a Sphinx

```python
# include the theme in the list of extensions to be loaded
extensions = ['sphinx_ahd_theme', …]

# select the theme
html_theme = 'sphinx_ahd_theme'
```

-   See the documentation for more usage instructions

## Development

### Getting started

-   [Instructions for Mac, Linux, and Windows](docs/development.rst)

### Release process

Checklist:

-   [ ] `CHANGELOG.md` is updated
-   [ ] `setup.cfg` is updated (see `version`)
-   [ ] Everything is committed, clean checkout
-   [ ] `~/.pypirc` has a username and password (token)
-   [ ] Add a git tag and a Github release once completed

With an active virtual environment:

```sh
python -m pip install --upgrade -r requirements.txt
make clean
make clean-frontend
npm ci
npm run build
prerelease
git tag -a N.N.N -m "N.N.N"
git push origin N.N.N
python -m build
python -m twine upload --repository pypi dist/*
postrelease
```

## Credits

[Sphinx AHD theme](https://github.com/ahdcreative/sphinx_ahd_theme) is based on [Sphinx Typo3 theme](https://github.com/TYPO3-Documentation/sphinx_typo3_theme) which is based on [t3SphinxThemeRtd](https://github.com/typo3-documentation/t3SphinxThemeRtd) which is based on the [Read the Docs Sphinx theme](https://github.com/readthedocs/sphinx_rtd_theme).