Built something? We create video reels & spotlights for GitHub projects.Promote your project →
Catalog / Xion / contracts
Public GitHub Catalog Discovered Sep 25, 2026

Xion / contracts

PyContracts is a Python package that allows to declare constraints on function parameters and return values. Contracts can be specified using Python3 annotations, or inside a docstring :type: and :rtype: tags. PyContracts supports a basic type system, variables binding, arithmetic constraints, and has several specialized contracts (notably for Numpy arrays), as well as an extension API.

View repository on GitHub ↗ View creator profile Browse directory

About this discovery

This repository is cataloged as part of our automated global GitHub synchronization. Full telemetry, velocity snapshots, and code summaries are scheduled for continuous enrichment.

#4923121GitHub System ID
XionOrganization / User
PublicVisibility
ActiveCatalog Status

More from Xion

↗

Xion/flask-restless

A Flask extension for creating simple ReSTful APIs from SQLAlchemy models.

Discovered
↗

Xion/shoo

Process killer & resource reclaimer

Discovered
↗

Xion/taipan

General purpose toolkit for Python

Discovered
↗

Xion/mocktest

powerful mock, expectation and unit test helpers for python

Discovered
FOR MAINTAINERS

Built something? Put it in front of millions of developers.

We make a short reel about your project and post it across YouTube, Instagram, Threads, and X. Send a link, we do the rest.