$npx skillfedfor your agent

nulltype

Null values and sentinels like (but not) None, False & True

With conditionsPyPI Python ModulesReleased Jun 20183.2M downloads / moApache License 2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — nulltype-2.3.1-py2.py3-none-any.whl
v2.3.1 · released 2018-06-03

Yes, if you are working with nested data structures (APIs, XML, JSON) and want cleaner, more readable code for handling missing values. No, if you require active maintenance—the package is abandoned as of 2018-06-03. For new projects, verify compatibility with your Python version and consider whether a modern alternative better fits your codebase.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low friction: pure Python wheel with no runtime dependencies.
  • Maintenance status is abandoned (last release 2018-06-03, 2994 days ago), so no active bug fixes or Python version updates should be expected.

License · maintenance · safety

Apache License 2.0 (permissive) — Apache License 2.0 (permissive): you may use, modify, and distribute this package freely in commercial and private projects, provided you include a copy of the license and state any changes made.

last release 2018-06-03 (2994 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,233,025 downloads/mo, #2,691 on PyPI

Verify before relying

pip install nulltype

from nulltype import Empty, Nothing

results = {"threads": None}
for thread in results.get("threads", Nothing):
    print(thread)
  • Whether the package remains compatible with Python versions released after 2018 despite no recent maintenance.
  • Real-world adoption rate and whether it is still actively used in production codebases.
Same gist for agents: .md · .json

What it is and what it does

nulltype lets you create custom null-like sentinel values—instances of NullType or NonNullType—that behave like empty containers (falsy, iterable, indexable) but carry semantic meaning distinct from None. Instead of overloading None to mean "not present," "undefined," "prohibited," or "end of data," you can define separate sentinels like Empty, Nothing, or Passthrough, each with a clear purpose.

The main use case is simplifying nested data access patterns common in REST API responses, XML trees, and other deeply nested structures. Instead of writing guard clauses at each level, you can chain .get() calls with a Nothing sentinel as the fallback, and the sentinel will safely absorb further operations (attribute access, iteration, indexing, calls) without raising exceptions. The package is pure Python with no dependencies, tested against Python 2.6, 2.7, 3.3, 3.4, 3.5, 3.6, and 3.7, and distributed under Apache License 2.0.

Use it for

  • Parsing REST API responses where nested keys may be absent, replacing repeated if-checks with chainable .get() calls using Nothing as a default.
  • Traversing XML or JSON parse trees where intermediate nodes might not exist, using a single sentinel to represent all missing branches.
  • Creating domain-specific sentinel values (e.g., Prohibited, Undefined, Passthrough) to distinguish different kinds of emptiness in business logic.
  • Replacing ad-hoc sentinel classes or magic values with named, printable NullType instances for clarity.
  • Implementing the null object pattern in Python without overloading None or False, making code intent explicit.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are working with nested data structures (APIs, XML, JSON) and want cleaner, more readable code for handling missing values.

No, if you require active maintenance—the package is abandoned as of 2018-06-03. For new projects, verify compatibility with your Python version and consider whether a modern alternative better fits your codebase.

Install

nulltype on PyPI

Before you install

Low friction: pure Python wheel with no runtime dependencies. Maintenance status is abandoned (last release 2018-06-03, 2994 days ago), so no active bug fixes or Python version updates should be expected.

License in practice

Apache License 2.0 (permissive): you may use, modify, and distribute this package freely in commercial and private projects, provided you include a copy of the license and state any changes made.

Quickstart

pip install nulltype

from nulltype import Empty, Nothing

results = {"threads": None}
for thread in results.get("threads", Nothing):
    print(thread)

Verify before relying

  • Whether the package remains compatible with Python versions released after 2018 despite no recent maintenance.
  • Real-world adoption rate and whether it is still actively used in production codebases.

Package facts

LicenseApache License 2.0 permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAbandoned 2,994 days since the last release
First released
Downloads3,233,025 / month, #2,691 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python Modules

Evidence: nulltype-2.3.1-py2.py3-none-any.whl

Tags

Capabilities
null sentinel valuescustom none alternativeempty object patternplaceholder values pythonmultiton singleton patternfalsy sentinelnull type implementation
Topics
sentinel-valuesnull-object-patterndata-parsing
PyPI keywords
nullnonenothingEmptyFalseTruesingletonsentinel

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 › “null sentinel values”

  • nulltypeDefines custom null and sentinel values that behave like empty…
  • niltypeProvides a `Nil` singleton object to represent missing or undefined…
  • sentinelsProvides singleton sentinel objects with special meanings—distinct…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

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.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

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.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

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.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

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…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also empty-files · func_args · sentinel · niltype · sentinels · pytest-reraise · pytest-race · Redis-Sentinel-Url · coredis · iterators