Mini OEIS in Python with PARI/GP support
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oeis_code-0.1.0.tar.gz.
File metadata
- Download URL: oeis_code-0.1.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb86023e475513721a485caaa1e82266f9652e788ab65080f5a0df1192aef4a1
|
|
| MD5 |
28126194c79584ae7c4bd7399f2e92c4
|
|
| BLAKE2b-256 |
9cebd95361693e5788ab047d0e1ba81b38c6f25b2b771f7ea4397dc23d23db4a
|
Provenance
The following attestation bundles were made for oeis_code-0.1.0.tar.gz:
Publisher:
publish.yml on oeistools/oeis-code
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oeis_code-0.1.0.tar.gz -
Subject digest:
fb86023e475513721a485caaa1e82266f9652e788ab65080f5a0df1192aef4a1 - Sigstore transparency entry: 1397853996
- Sigstore integration time:
-
Permalink:
oeistools/oeis-code@56d13562298b4d80391166b900c8c78658af6204 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/oeistools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@56d13562298b4d80391166b900c8c78658af6204 -
Trigger Event:
release
-
Statement type:
File details
Details for the file oeis_code-0.1.0-py3-none-any.whl.
File metadata
- Download URL: oeis_code-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d6cf07b935beaa2bf6d39a0853256221f953db777892a77c14f8813c5ba05ce
|
|
| MD5 |
66c355d7452c50e0186ccc9fc9f8eadf
|
|
| BLAKE2b-256 |
2392f9f80656755fc890e3f374cf9bff87e1d1fcdee1c90cdcedf83c9d09e233
|
Provenance
The following attestation bundles were made for oeis_code-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on oeistools/oeis-code
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oeis_code-0.1.0-py3-none-any.whl -
Subject digest:
8d6cf07b935beaa2bf6d39a0853256221f953db777892a77c14f8813c5ba05ce - Sigstore transparency entry: 1397854026
- Sigstore integration time:
-
Permalink:
oeistools/oeis-code@56d13562298b4d80391166b900c8c78658af6204 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/oeistools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@56d13562298b4d80391166b900c8c78658af6204 -
Trigger Event:
release
-
Statement type: