semvec/pypi-packages huggingface dataset:
posit-playground 0.1.3
Posit arithmetic library with no frills
Requires Python: >=3.6,<4.0
Keywords: posit,unum,posit-arithmetic,numeric-representation

<a href="https://github.com/urbanij/posit-playground/actions"><img src="https://github.com/urbanij/posit-playground/actions/workflows/main.yml/badge.svg"></a>
[![codecov](https://codecov.io/gh/urbanij/posit-playground/branch/main/graph/badge.svg?token=U37RUDDRN1)](https://codecov.io/gh/urbanij/posit-playground)
<!-- <a href="https://pypi.org/project/posit-playground/"><img src="https://img.shields.io/pypi/dm/posit-playground"></a> -->

# posit-playground

Goals:
- [x] output nice bit representations
- [x] build posit `from_double` and `from_bits`
- [ ] implement basic math operations
    - [ ] add/sub
    - [ ] mul
    - [ ] div


## Install

- stable

```sh
pip install posit-playground
```

<!-- - main

```sh
pip install git+https://github.com/urbanij/posit-playground.git
``` -->

## Usage

```python
from posit_playground import from_bits, from_double

p1 = from_bits(
    bits=0b000110111011101,
    size=16,
    es=3,
)

p2 = from_double(
    x=2.312,
    size=6,
    es=1,
)

p1 * p1 # implements posit multiplication
```

or better yet, launch a notebook on binder 

[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/urbanij/posit-playground/HEAD?labpath=notebooks%2F1_posit_playground_demo.ipynb)

or visit [notebooks/1_posit_playground_demo.ipynb](https://github.com/urbanij/posit-playground/blob/main/notebooks/1_posit_playground_demo.ipynb)


## Changelog

See [CHANGELOG.md](changelog.md).

## Demo

<!-- [![asciicast](https://asciinema.org/a/455652.svg)](https://asciinema.org/a/455652) -->


Screenshot of posit-playground in action, with a corner case example in which the exponent is chopped off the bit fields

![Imgur](https://imgur.com/0M8USPC.jpg)
sdc-api-py 1.3.8
An async wrapper for Server-Discord.Com API
Requires Python: >= 3.7

# sdc-api.py
* Враппер на Python для [SDC API](https://docs.server-discord.com)
* Документация к API: https://docs.server-discord.com/
* [Сервер поддержки](https://discord.gg/8epHXKA) враппера 

## Установка

```
pip install sdc_api_py
```

# Внимание!
## Враппер полностью асинхронен. Любые вызовы функций следует проводить только в асинхронных функциях

## Использование

### Враппер включает в себя 3 основных класса:



#### Monitoring

```py
import sdc_api_py

monitoring = sdc_api_py.Monitoring(SDC_TOKEN)

...
sdc_guild = await monitoring.get_guild(id)  # Использовать в асинхронной функции

sdc_guild_place = await monitoring.fetch_guild_place(id)  # Использовать в асинхронной функции

sdc_guild_rate = await monitoring.get_guild_rate(id)  # Использовать в асинхронной функции

sdc_user_rate = await monitoring.get_user_rate(id)  # Использовать в асинхронной функции
```

#### NikaWarns

```py
import sdc_api_py

Nika = sdc_api_py.NikaWarns(SDC_TOKEN)

...
warns = await Nika.fetch_warns(id)  # Использовать в асинхронной функции
```

#### Bots

```py
import sdc_api_py
from discord.ext import commands

class BotsSDC(commands.Cog):

    def __init__(self, bot):
        self.bot = bot

    @commands.Cog.listener()
    async def on_ready(self):
        bots = sdc_api_py.Bots(self.bot, SDC_TOKEN, logging) # Аргумент logging опциональный. По умолчанию True.
        bots.create_loop()  #Как аргумент можно использовать время в минутах. Раз в это количество минут будет отправляться статистика.
                            #По умолчанию 60 минут. Минимальный порог 30 минут.
bot.add_cog(BotsSDC(bot))
```
comod 0.2.1
Compartmental modelling Python package

# comod
[![Github release](https://img.shields.io/github/release/dih5/comod.svg)](https://github.com/dih5/comod/releases/latest)
[![PyPI](https://img.shields.io/pypi/v/comod.svg)](https://pypi.python.org/pypi/comod)

[![license MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/Dih5/comod/master/LICENSE.txt)

[![Build Status](https://travis-ci.org/Dih5/comod.svg?branch=master)](https://travis-ci.org/Dih5/comod)
[![Documentation Status](https://readthedocs.org/projects/comod/badge/?version=latest)](http://comod.readthedocs.io/en/latest/?badge=latest)

Compartmental modelling Python package

## Preview
![alt tag](https://raw.github.com/dih5/comod/master/imgs/motivation1.png)
![alt tag](https://raw.github.com/dih5/comod/master/imgs/motivation2.png)

Check the [docs](https://comod.readthedocs.io/en/latest/) to see more.


## Features
- Define a model with simple rules as strings or with custom functions.
- Pre-defined models like SIR, SIS, SEIR, ...
- Community-extensions of models.
- Solve numerically for fixed or time-dependent parameters.
- Best-fit to existing data, posibly using time windows.
- Create compartment graphs.
- Export LaTeX.
- Export to Wolfram Language (Mathematica).


## Installation
Assuming you have a [Python3](https://www.python.org/) distribution with [pip](https://pip.pypa.io/en/stable/installing/), the latest pypi release can be installed with:
```
pip3 install comod
```
To install the optional dependencies you can run
```
pip3 install 'comod[extras]'
```
Mind the quotes.


## Developer information
### Instalation

To install a development version, cd to the directory with this file and:

```
pip3 install -e '.[test]'
```
As an alternative, a virtualenv might be used to install the package:
```
# Prepare a clean virtualenv and activate it
virtualenv -p /usr/bin/python3.6 venv
source venv/bin/activate
# Install the package
pip3 install -e '.[test]'
```

### Documentation
To generate the documentation, the *docs* extra dependencies must be installed.

To generate an html documentation with sphinx run:
```
make docs
```

To generate a PDF documentation using LaTeX:
```
make pdf
```



### Test
To run the unitary tests:
```
make test
```