Metadata-Version: 2.4
Name: oeis-code
Version: 0.1.0
Summary: Mini OEIS in Python with PARI/GP support
Author-email: Enrique Pérez Herrero <energycode.org@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/oeistools/oeis-code
Project-URL: Bug Tracker, https://github.com/oeistools/oeis-code/issues
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Scientific/Engineering :: Mathematics
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: pari
Requires-Dist: cypari2<2.2,>=2.1.4; extra == "pari"
Provides-Extra: test
Requires-Dist: pytest>=7; extra == "test"
Requires-Dist: pytest-cov>=4; extra == "test"
Provides-Extra: dev
Requires-Dist: pytest>=7.4; extra == "dev"
Requires-Dist: pytest-cov>=4.1; extra == "dev"
Requires-Dist: ruff>=0.6; extra == "dev"
Requires-Dist: build>=1.2; extra == "dev"
Requires-Dist: twine>=5.1; extra == "dev"
Requires-Dist: pre-commit>=3.7; extra == "dev"
Provides-Extra: docs
Requires-Dist: mkdocs-material>=9.5; extra == "docs"
Requires-Dist: mkdocstrings[python]>=0.26; extra == "docs"
Dynamic: license-file

# oeis-code

[![CI](https://github.com/oeistools/oeis-code/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/oeistools/oeis-code/actions/workflows/tests.yml?query=branch%3Amain)
[![codecov](https://codecov.io/gh/oeistools/oeis-code/graph/badge.svg)](https://codecov.io/gh/oeistools/oeis-code)
[![PyPI version](https://img.shields.io/pypi/v/oeis-code.svg?cacheSeconds=60)](https://pypi.org/project/oeis-code/)
[![Python versions](https://img.shields.io/pypi/pyversions/oeis-code.svg)](https://pypi.org/project/oeis-code/)
[![Package format](https://img.shields.io/pypi/format/oeis-code.svg)](https://pypi.org/project/oeis-code/)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)

Mini OEIS in Python with PARI/GP support.

## Installation

```bash
pip install oeis-code
```

### PARI/GP Support (Optional)

To use the PARI/GP backend, you need `cypari2`. Note that this requires PARI/GP development headers installed on your system.

**Debian/Ubuntu:**
```bash
sudo apt install build-essential python3-dev libgmp-dev libpari-dev pari-gp
pip install cypari2
```

**Fedora:**
```bash
sudo dnf install pari-devel
pip install cypari2
```

**macOS (using Homebrew):**
```bash
brew install pari
pip install cypari2
```

## Usage

```python
from oeis_code import get

# Get the 10th Fibonacci number
get("A000045", 10)  # Returns 55
```

## Contributing

- Create a new file in `oeis_code/sequences/`
- Use the `@register("Axxxxxx")` decorator
- Implement the `sequence(n)` function
