semvec/pypi-packages huggingface dataset:
softheap 0.2
Python Soft Heap Implementation
License: MIT

Soft Heap in Python
==

This library is a full python implementation of Bernard Chazelle's soft heap [1].

The soft heap is a heap-like data structure which gives all heap operations a constant runtime, with the exception of insert. However, in order to maintain this seemingly impossible runtime, some of the data is "corrupted". The result of this is that insert takes O(log 1/e) where e is the rate of corruption.


[1] http://www.cs.cmu.edu/afs/cs/academic/class/15859-f05/www/documents/p1012-chazelle.pdf

### Usage

To get started, import the module. We'll also import random for this example.
```
from softheap import *
import random
```

The soft heap requires one input, the error rate r. The number of corrupted nodes in the heap is inversely proportional to r.

```
s = SoftHeap(2)
```

We can test the heap by randomly inserting 100 elements into the heap.

```
arr = list(range(100))
random.shuffle(arr)

for a in arr:
  s.insert(a)
```


Now when we deletemin repeatedly, the output will be approximately sorted.

```
output = []

for b in range(len(arr))
  output.append(s.deletemin())

print(output)

```

This takes O(n log 1/e) time.


### Installation

Use pip to install softheap. Via the command line:

``
pip install softheap
``
py-fortune 0.9.4
scraping support tool
License: MIT

# pyfortune

Fortune Musicをスクレイピングして情報を取得するためのライブラリ

# Install

## RequirePackage

* python3 (>=3.2)

## install command

```
$ python3 setup.py install
```

or

```
$ pip install .
```

PyPIには登録していないしする予定もない

# Usage

## クイックスタート

```
>>> from pyfortune.session import Session
>>> s = Session()
>>> s.status()
'logout'
>>> s.login('username', 'password')
'username'
>>> s.status()
'login'
```
table-schema-resource-template 0.1.3
Generate a resource file template from a Table Schema JSON file
License: MIT

# Table Schema resource template

Generate an empty resource file template from a [Table Schema](https://frictionlessdata.io/specs/table-schema/) JSON file.

Supported output formats:

- Microsoft Excel XLSX

## Install

```bash
pip install table-schema-resource-template
```

## Usage

Table Schema JSON can be given as file or URL:

```bash
table-schema-resource-template --format xlsx schema.json template.xlsx
table-schema-resource-template --format xlsx https://git.opendatafrance.net/scdl/subventions/raw/master/schema.json template.xlsx
```