oeis-code
Mini OEIS in Python with PARI/GP support.
Installation
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:
sudo apt install build-essential python3-dev libgmp-dev libpari-dev pari-gp
pip install cypari2
Fedora:
sudo dnf install pari-devel
pip install cypari2
macOS (using Homebrew):
brew install pari
pip install cypari2
Usage
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
Release files for oeis-code 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| oeis_code-0.1.0.tar.gz | 7.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| oeis_code-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.9 kB
Release files / oeis_code-0.1.0.tar.gz
| Download URL | oeis_code-0.1.0.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb86023e475513721a485caaa1e82266f9652e788ab65080f5a0df1192aef4a1
|
|
BLAKE2b-256 checksum How to use checksums |
9cebd95361693e5788ab047d0e1ba81b38c6f25b2b771f7ea4397dc23d23db4a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 28, 2026.
Transparency logRelease files / oeis_code-0.1.0-py3-none-any.whl
| Download URL | oeis_code-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d6cf07b935beaa2bf6d39a0853256221f953db777892a77c14f8813c5ba05ce
|
|
BLAKE2b-256 checksum How to use checksums |
2392f9f80656755fc890e3f374cf9bff87e1d1fcdee1c90cdcedf83c9d09e233
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 28, 2026.
Transparency log