infinity
All-in-one infinity value for Python. Can be compared to any object.
Decision gist · record as of 2026-08-14
No. The package is abandoned (last release 2020-06-03, no commits since) and high install friction makes it a poor choice for new projects. Modern Python versions have better alternatives: use float('inf') for numeric comparisons, or implement a custom comparable wrapper for your specific type. Only consider it if you have legacy code already depending on it.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- High install friction due to source distribution format.
- Package is abandoned—last release was 2020-06-03 with no maintenance activity since.
- Use only if you cannot migrate to a maintained alternative.
License · maintenance · safety
BSD (permissive) — BSD license is permissive, allowing commercial and private use with minimal restrictions.
last release 2020-06-03 (2263 days) · last repo commit 2020-06-03 · 20 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 182,955 downloads/mo, #10,077 on PyPI
Alternatives
Verify before relying
pip install infinity
from infinity import inf
print(3 < inf) # True
print(inf + 5) # inf
print(float(inf) == float('inf')) # True- Whether the package works reliably with Python versions beyond 3.5, given its abandoned status and age
- Whether arithmetic behavior matches mathematical conventions in all edge cases
What it is and what it does
infinity provides a single Infinity class that represents an infinity value comparable to any object in Python, addressing limitations of the built-in float('inf'). Unlike float infinity, the Infinity class supports rich comparisons with arbitrary types (e.g., datetime objects) and enforces mathematically correct behavior—for instance, pow(1, inf) raises TypeError rather than returning 1.
The package supports arithmetic operations (addition, subtraction, multiplication, division, exponentiation) with sensible semantics: inf + 3 returns inf, 5 / inf returns 0, but undefined operations like inf - inf or pow(1, inf) raise TypeError. It also coerces to float, string, and boolean types. However, the package has been abandoned since 2020 with no active maintenance.
Use it for
- Implementing algorithms that need a universal upper or lower bound comparable to any type, not just numbers
- Creating priority queues or sorting logic where infinity must compare correctly with dates, strings, or custom objects
- Building mathematical or constraint-solving code that requires strict handling of undefined operations like inf - inf
- Replacing ad-hoc sentinel values (e.g., sys.maxsize) with a proper infinity abstraction
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned (last release 2020-06-03, no commits since) and high install friction makes it a poor choice for new projects. Modern Python versions have better alternatives: use float('inf') for numeric comparisons, or implement a custom comparable wrapper for your specific type. Only consider it if you have legacy code already depending on it.
Install
infinity on PyPI
Before you install
High install friction due to source distribution format. Package is abandoned—last release was 2020-06-03 with no maintenance activity since. Use only if you cannot migrate to a maintained alternative.
License in practice
BSD license is permissive, allowing commercial and private use with minimal restrictions.
Quickstart
pip install infinity
from infinity import inf
print(3 < inf) # True
print(inf + 5) # inf
print(float(inf) == float('inf')) # True
Verify before relying
- Whether the package works reliably with Python versions beyond 3.5, given its abandoned status and age
- Whether arithmetic behavior matches mathematical conventions in all edge cases
Package facts
| License | BSD permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Abandoned 2,263 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 182,955 / month, #10,077 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Environment :: Web EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Internet :: WWW/HTTP :: Dynamic ContentTopic :: Software Development :: Libraries :: Python Modules |
Evidence: infinity-1.5.tar.gz
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “infinity value comparison”
- infinityProvides an Infinity class that can be compared to any object and…
- DataPropertyExtracts and classifies properties from individual data values and…
- lovely-numpyProvides a human-readable summary of NumPy arrays with shape, dtype,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also intervals · trampoline · maybe-else · python-ranges · portion · ordered-enum · typepy · fastnumbers · fixedint · cons