passagemath-database-cunningham 10.6.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of passagemath-database-cunningham might be problematic. Click here for more details.

@@ -0,0 +1,95 @@
1
+ Metadata-Version: 2.4
2
+ Name: passagemath-database-cunningham
3
+ Version: 10.6.5
4
+ Summary: passagemath: List of the prime numbers occuring in the Cunningham table
5
+ Author-email: The Sage Developers <sage-support@googlegroups.com>
6
+ Maintainer: Matthias Köppe, passagemath contributors
7
+ License-Expression: GPL-2.0-or-later
8
+ Project-URL: release notes, https://github.com/passagemath/passagemath/releases
9
+ Project-URL: repo (upstream), https://github.com/sagemath/sage
10
+ Project-URL: repo, https://github.com/passagemath/passagemath
11
+ Project-URL: documentation, https://passagemath.org/docs/latest
12
+ Project-URL: homepage (upstream), https://www.sagemath.org
13
+ Project-URL: discourse, https://passagemath.discourse.group
14
+ Project-URL: tracker (upstream), https://github.com/sagemath/sage/issues
15
+ Project-URL: tracker, https://github.com/passagemath/passagemath/issues
16
+ Classifier: Development Status :: 6 - Mature
17
+ Classifier: Intended Audience :: Education
18
+ Classifier: Intended Audience :: Science/Research
19
+ Classifier: Operating System :: POSIX
20
+ Classifier: Operating System :: POSIX :: Linux
21
+ Classifier: Operating System :: MacOS :: MacOS X
22
+ Classifier: Programming Language :: Python :: 3 :: Only
23
+ Classifier: Programming Language :: Python :: 3.10
24
+ Classifier: Programming Language :: Python :: 3.11
25
+ Classifier: Programming Language :: Python :: 3.12
26
+ Classifier: Programming Language :: Python :: 3.13
27
+ Classifier: Programming Language :: Python :: Implementation :: CPython
28
+ Classifier: Topic :: Scientific/Engineering :: Mathematics
29
+ Requires-Python: <3.14,>=3.10
30
+ Description-Content-Type: text/x-rst
31
+ Requires-Dist: passagemath-environment~=10.6.5.0
32
+
33
+ =========================================================================
34
+ passagemath: List of the prime numbers occuring in the Cunningham table
35
+ =========================================================================
36
+
37
+ `passagemath <https://github.com/passagemath/passagemath>`__ is open
38
+ source mathematical software in Python, released under the GNU General
39
+ Public Licence GPLv2+.
40
+
41
+ It is a fork of `SageMath <https://www.sagemath.org/>`__, which has been
42
+ developed 2005-2025 under the motto “Creating a Viable Open Source
43
+ Alternative to Magma, Maple, Mathematica, and MATLAB”.
44
+
45
+ The passagemath fork uses the motto "Creating a Free Passage Between the
46
+ Scientific Python Ecosystem and Mathematical Software Communities."
47
+ It was created in October 2024 with the following goals:
48
+
49
+ - providing modularized installation with pip,
50
+ - establishing first-class membership in the scientific Python
51
+ ecosystem,
52
+ - giving `clear attribution of upstream
53
+ projects <https://groups.google.com/g/sage-devel/c/6HO1HEtL1Fs/m/G002rPGpAAAJ>`__,
54
+ - providing independently usable Python interfaces to upstream
55
+ libraries,
56
+ - offering `platform portability and integration testing
57
+ services <https://github.com/passagemath/passagemath/issues/704>`__
58
+ to upstream projects,
59
+ - inviting collaborations with upstream projects,
60
+ - `building a professional, respectful, inclusive
61
+ community <https://groups.google.com/g/sage-devel/c/xBzaINHWwUQ>`__,
62
+ - `empowering Sage users to participate in the scientific Python ecosystem
63
+ <https://github.com/passagemath/passagemath/issues/248>`__ by publishing packages,
64
+ - developing a port to `Pyodide <https://pyodide.org/en/stable/>`__ for
65
+ serverless deployment with Javascript,
66
+ - developing a native Windows port.
67
+
68
+ `Full documentation <https://doc.sagemath.org/html/en/index.html>`__ is
69
+ available online.
70
+
71
+ passagemath attempts to support and provides binary wheels suitable for
72
+ all major Linux distributions and recent versions of macOS.
73
+
74
+ For the Linux aarch64 (ARM) platform, some third-party packages are still missing
75
+ wheels; see the `instructions for building them from source <https://github.com/passagemath/passagemath?tab=readme-ov-file#full-installation-of-passagemath-from-binary-wheels-on-pypi>`__.
76
+
77
+ Binary wheels for native Windows (x86_64) are are available for a subset of
78
+ the passagemath distributions. Use of the full functionality of passagemath
79
+ on Windows currently requires the use of Windows Subsystem for Linux (WSL)
80
+ or virtualization.
81
+
82
+ The supported Python versions in the passagemath 10.6.x series are 3.10.x-3.13.x.
83
+
84
+
85
+ About this pip-installable distribution package
86
+ -----------------------------------------------
87
+
88
+ This pip-installable distribution ``passagemath-database-cunningham`` is a
89
+ distribution of the list of the prime numbers occuring in the Cunningham table.
90
+
91
+
92
+ What is included
93
+ ----------------
94
+
95
+ - Wheels on PyPI include the cunningham_tables files
@@ -0,0 +1,96 @@
1
+ Metadata-Version: 2.4
2
+ Name: passagemath-database-cunningham
3
+ Version: 10.6.5
4
+ Summary: passagemath: List of the prime numbers occuring in the Cunningham table
5
+ Author-email: The Sage Developers <sage-support@googlegroups.com>
6
+ Maintainer: Matthias Köppe, passagemath contributors
7
+ License-Expression: GPL-2.0-or-later
8
+ Project-URL: release notes, https://github.com/passagemath/passagemath/releases
9
+ Project-URL: repo (upstream), https://github.com/sagemath/sage
10
+ Project-URL: repo, https://github.com/passagemath/passagemath
11
+ Project-URL: documentation, https://passagemath.org/docs/latest
12
+ Project-URL: homepage (upstream), https://www.sagemath.org
13
+ Project-URL: discourse, https://passagemath.discourse.group
14
+ Project-URL: tracker (upstream), https://github.com/sagemath/sage/issues
15
+ Project-URL: tracker, https://github.com/passagemath/passagemath/issues
16
+ Classifier: Development Status :: 6 - Mature
17
+ Classifier: Intended Audience :: Education
18
+ Classifier: Intended Audience :: Science/Research
19
+ Classifier: Operating System :: POSIX
20
+ Classifier: Operating System :: POSIX :: Linux
21
+ Classifier: Operating System :: MacOS :: MacOS X
22
+ Classifier: Programming Language :: Python :: 3 :: Only
23
+ Classifier: Programming Language :: Python :: 3.10
24
+ Classifier: Programming Language :: Python :: 3.11
25
+ Classifier: Programming Language :: Python :: 3.12
26
+ Classifier: Programming Language :: Python :: 3.13
27
+ Classifier: Programming Language :: Python :: Implementation :: CPython
28
+ Classifier: Topic :: Scientific/Engineering :: Mathematics
29
+ Requires-Python: <3.14,>=3.10
30
+ Description-Content-Type: text/x-rst
31
+ Requires-Dist: passagemath-conf~=10.6.5.0; sys_platform != "win32"
32
+ Requires-Dist: passagemath-environment~=10.6.5.0
33
+
34
+ =========================================================================
35
+ passagemath: List of the prime numbers occuring in the Cunningham table
36
+ =========================================================================
37
+
38
+ `passagemath <https://github.com/passagemath/passagemath>`__ is open
39
+ source mathematical software in Python, released under the GNU General
40
+ Public Licence GPLv2+.
41
+
42
+ It is a fork of `SageMath <https://www.sagemath.org/>`__, which has been
43
+ developed 2005-2025 under the motto “Creating a Viable Open Source
44
+ Alternative to Magma, Maple, Mathematica, and MATLAB”.
45
+
46
+ The passagemath fork uses the motto "Creating a Free Passage Between the
47
+ Scientific Python Ecosystem and Mathematical Software Communities."
48
+ It was created in October 2024 with the following goals:
49
+
50
+ - providing modularized installation with pip,
51
+ - establishing first-class membership in the scientific Python
52
+ ecosystem,
53
+ - giving `clear attribution of upstream
54
+ projects <https://groups.google.com/g/sage-devel/c/6HO1HEtL1Fs/m/G002rPGpAAAJ>`__,
55
+ - providing independently usable Python interfaces to upstream
56
+ libraries,
57
+ - offering `platform portability and integration testing
58
+ services <https://github.com/passagemath/passagemath/issues/704>`__
59
+ to upstream projects,
60
+ - inviting collaborations with upstream projects,
61
+ - `building a professional, respectful, inclusive
62
+ community <https://groups.google.com/g/sage-devel/c/xBzaINHWwUQ>`__,
63
+ - `empowering Sage users to participate in the scientific Python ecosystem
64
+ <https://github.com/passagemath/passagemath/issues/248>`__ by publishing packages,
65
+ - developing a port to `Pyodide <https://pyodide.org/en/stable/>`__ for
66
+ serverless deployment with Javascript,
67
+ - developing a native Windows port.
68
+
69
+ `Full documentation <https://doc.sagemath.org/html/en/index.html>`__ is
70
+ available online.
71
+
72
+ passagemath attempts to support and provides binary wheels suitable for
73
+ all major Linux distributions and recent versions of macOS.
74
+
75
+ For the Linux aarch64 (ARM) platform, some third-party packages are still missing
76
+ wheels; see the `instructions for building them from source <https://github.com/passagemath/passagemath?tab=readme-ov-file#full-installation-of-passagemath-from-binary-wheels-on-pypi>`__.
77
+
78
+ Binary wheels for native Windows (x86_64) are are available for a subset of
79
+ the passagemath distributions. Use of the full functionality of passagemath
80
+ on Windows currently requires the use of Windows Subsystem for Linux (WSL)
81
+ or virtualization.
82
+
83
+ The supported Python versions in the passagemath 10.6.x series are 3.10.x-3.13.x.
84
+
85
+
86
+ About this pip-installable distribution package
87
+ -----------------------------------------------
88
+
89
+ This pip-installable distribution ``passagemath-database-cunningham`` is a
90
+ distribution of the list of the prime numbers occuring in the Cunningham table.
91
+
92
+
93
+ What is included
94
+ ----------------
95
+
96
+ - Wheels on PyPI include the cunningham_tables files
@@ -0,0 +1,9 @@
1
+ sage/all__sagemath_database_cunningham.py,sha256=CoWbYl8ZEAk9nsWxuzJ4tO6y176wm2OuOdP0nKA6PGM,58
2
+ sage/databases/all__sagemath_database_cunningham.py,sha256=a0ffe6RHqSHSiYy5wwHKNGdeeL4PVdVuv252-ABu7vg,199
3
+ sage/databases/cunningham_tables.py,sha256=emYJJyWGodjEKuZRhe5NbnxXR50W6anz8sIHoEQzXKg,1699
4
+ sage_wheels/share/cunningham_tables/cunningham_prime_factors.sobj,sha256=BnHzdiKXdPh91ZVVG3XR20CwuEBdEwezSFSvB52sP1g,484967
5
+ passagemath_database_cunningham-10.6.5.dist-info/METADATA,sha256=EnWl4PVra0bzuxs9FwlKgREB6NWiesB_ue6sKxjvuoY,4554
6
+ passagemath_database_cunningham-10.6.5.dist-info/METADATA.bak,sha256=KHqoM74JZKEKu7DXFICSDZfq98gcmaTo-0I2MjE-lmc,4621
7
+ passagemath_database_cunningham-10.6.5.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
8
+ passagemath_database_cunningham-10.6.5.dist-info/top_level.txt,sha256=hibFyzQHiLOMK68qL1OWsNKaXOmSXqZjeLTBem6Yy7I,5
9
+ passagemath_database_cunningham-10.6.5.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (78.1.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ # sage_setup: distribution = sagemath-database-cunningham
@@ -0,0 +1,7 @@
1
+ # sage_setup: distribution = sagemath-database-cunningham
2
+
3
+ from sage.misc.lazy_import import lazy_import
4
+
5
+ lazy_import('sage.databases.cunningham_tables', 'cunningham_prime_factors')
6
+
7
+ del lazy_import
@@ -0,0 +1,54 @@
1
+ # sage_setup: distribution = sagemath-database-cunningham
2
+ r"""
3
+ Cunningham tables
4
+
5
+ This module provides :func:`cunningham_prime_factors`, which lists the prime
6
+ numbers occurring in the factorization of numbers of type `b^n+1` or `b^n-1`
7
+ with `b \in \{2,3,5,6,7,10,11,12\}`. For an introduction to Cunningham prime
8
+ factors, see :wikipedia:`Cunningham_Project`. The data becomes available if you
9
+ install the optional :ref:`cunningham_tables <spkg_cunningham_tables>` package by
10
+ the command ::
11
+
12
+ sage -i cunningham_tables
13
+
14
+ AUTHORS:
15
+
16
+ - Yann Laigle-Chapuy (2009-10-18): initial version
17
+ """
18
+
19
+ import os
20
+ from sage.misc.cachefunc import cached_function
21
+ from sage.rings.integer import Integer
22
+ from sage.misc.persist import load
23
+ from sage.env import SAGE_SHARE
24
+
25
+
26
+ @cached_function
27
+ def cunningham_prime_factors():
28
+ r"""
29
+ List of all the prime numbers occurring in the so called Cunningham table.
30
+
31
+ They occur in the factorization of numbers of type `b^n+1` or `b^n-1` with `b \in \{2,3,5,6,7,10,11,12\}`.
32
+
33
+ EXAMPLES::
34
+
35
+ sage: # optional - cunningham_tables
36
+ sage: from sage.databases.cunningham_tables import cunningham_prime_factors
37
+ sage: cunningham_prime_factors()
38
+ [2,
39
+ 3,
40
+ 5,
41
+ 7,
42
+ 11,
43
+ 13,
44
+ 17,
45
+ ...
46
+ """
47
+ file = os.path.join(SAGE_SHARE,'cunningham_tables','cunningham_prime_factors.sobj')
48
+ if os.path.exists(file):
49
+ return [Integer(_) for _ in load(file)]
50
+ else:
51
+ from warnings import warn
52
+ warn("You might consider installing the optional package for factoring Cunningham numbers"
53
+ " with the following command: ``sage -i cunningham_tables``")
54
+ return []