semvec/pypi-packages huggingface dataset:
fractionalstd2inner 1.0.5
the cython-based fractions system used for td2inner(an internal part of timediffz)
Requires Python: >=3.10

# fractionalstd2inner

A **high-performance Cython + GMP**, very basic and custom implementation of Python’s built-in `fractions` library.  
It is **~1.5× to 4× faster** than the standard Python implementation and was made to be used internally by  
[`td2inner`](https://pypi.org/project/td2inner/).

> ⚠️ **This package must be compiled locally.**  
> **No prebuilt wheels are provided.**

---

## ⚠️ Important Notice (Read This First)

`fractionalstd2inner` contains a **native Cython extension** that depends on  
**GMP (GNU Multiple Precision Arithmetic Library)**.

Because of this:

- ❌ **No prebuilt wheels**
- ✅ **Development tools are required**
- ✅ **Compilation occurs during `pip install`**

This is **intentional**.

---

## 🧩 Requirements

### General
- Python **≥ 3.10**
- C / C++ compiler
- **Cython ≥ 3.2**
- **GMP development headers**

---

## INSTALLMENT STEPS

### 1 INSTALL DEPENDENCIES ASSUMING YOU ALREADY HAVE PYTHON AND PIP

#### Arch Linux
```bash
sudo pacman -S gmp base-devel cython
```

#### Ubuntu/Debian/Mint
```bash
sudo apt update
sudo apt install -y libgmp-dev build-essential python3-dev cython3
```

#### Fedora
```bash
sudo dnf install -y gcc gcc-c++ make automake gmp-devel python3-devel cython
```

#### CentOS/ RHEL
```bash
sudo yum groupinstall "Development Tools" -y
sudo yum install -y gmp-devel python3-devel cython
```

#### openSUSE
```bash
sudo zypper install -y gcc gcc-c++ make gmp-devel python3-devel cython
```

#### Windows(YOU NEED TO DOWNLOAD MSYS2) THEN
```bash
pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-make mingw-w64-x86_64-gmp mingw-w64-x86_64-python3-cython
```

#### MacOS(YOU NEED TO DOWNLOAD Homebrew(brew)) THEN
```bash
xcode-select --install
brew install gmp cython python
```
### 2 INSTALL THE LIBRARY ITSELF VIA PIP

```bash
python3 -m pip install fractionalstd2inner
```
### 3 VERIFY INSTALLATION VIA

```bash[dist](dist)
python3 -c "import fractionalstd2inner; print(fractionalstd2inner.__version__)"
```
nextdns 5.0.0
Python wrapper for NextDNS API.
Requires Python: >=3.13

[![GitHub Release][releases-shield]][releases]
[![PyPI][pypi-releases-shield]][pypi-releases]
[![PyPI - Downloads][pypi-downloads]][pypi-statistics]
[![Buy me a coffee][buy-me-a-coffee-shield]][buy-me-a-coffee]
[![PayPal_Me][paypal-me-shield]][paypal-me]
[![Revolut.Me][revolut-me-shield]][revolut-me]

# nextdns

Python wrapper for [NextDNS](https://nextdns.io/?from=u4xqh6ud) API.


## How to use package

```python
"""Example of usage."""
import asyncio
import logging

from aiohttp import ClientSession

from nextdns import ApiError, InvalidApiKeyError, NextDns

API_KEY = "xxx"

logging.basicConfig(level=logging.DEBUG)


async def main():
    """Main function."""
    async with ClientSession() as websession:
        try:
            nextdns = await NextDns.create(websession, API_KEY)
            profile_id, profile_name = nextdns.profiles[2]
            profile = await nextdns.get_profile(profile_id)
            status = await nextdns.get_analytics_status(profile_id)
            dnssec = await nextdns.get_analytics_dnssec(profile_id)
            encryption = await nextdns.get_analytics_encryption(profile_id)
            ip_versions = await nextdns.get_analytics_ip_versions(profile_id)
            protocols = await nextdns.get_analytics_protocols(profile_id)
        except InvalidApiKeyError:
            print("Invalid API Key")
        except ApiError as error:
            print(f"API Error: {error.status}")
        else:
            print(f"Profile: {profile_name} ({profile_id})")
            print(profile)
            print(status)
            print(dnssec)
            print(encryption)
            print(ip_versions)
            print(protocols)


loop = asyncio.new_event_loop()
loop.run_until_complete(main())
loop.close()
```

[releases]: https://github.com/bieniu/nextdns/releases
[releases-shield]: https://img.shields.io/github/release/bieniu/nextdns.svg?style=popout
[pypi-releases]: https://pypi.org/project/nextdns/
[pypi-statistics]: https://pepy.tech/project/nextdns
[pypi-releases-shield]: https://img.shields.io/pypi/v/nextdns
[pypi-downloads]: https://pepy.tech/badge/nextdns/month
[buy-me-a-coffee-shield]: https://img.shields.io/static/v1.svg?label=%20&message=Buy%20me%20a%20coffee&color=6f4e37&logo=buy%20me%20a%20coffee&logoColor=white
[buy-me-a-coffee]: https://www.buymeacoffee.com/QnLdxeaqO
[paypal-me-shield]: https://img.shields.io/static/v1.svg?label=%20&message=PayPal.Me&logo=paypal
[paypal-me]: https://www.paypal.me/bieniu79
[revolut-me-shield]: https://img.shields.io/static/v1.svg?label=%20&message=Revolut&logo=revolut
[revolut-me]: https://revolut.me/maciejbieniek