Type hints and utility objects for Python and Django projects.
Project description
Typelets for Python
Typelets is a Python typing utility module designed to augment some of the types provided in Python and third-party libraries. It was built to help develop Review Board, our premier code review product from Beanbag, and we're making it available for use in other projects.
This includes general Python additions, including:
-
typelets.funcs: Typing for general keyword arguments in functions.
-
typelets.json: Typing for JSON structures, and for application-defined data that can be serialized to JSON.
-
typelets.symbols: Symbols for marking types as unset/unsettable.
Plus typing useful for Django developers:
-
typelets.django.auth: Types for accepting users.
-
typelets.django.forms: Types for forms and form fields.
-
typelets.django.json: Types for Django's JSON serialization.
-
typelets.django.models: Types for working with Django models.
-
typelets.django.strings: Types for localized strings.
-
typelets.django.urls: Types for URL management.
Installation
To install typelets, run:
$ pip install typelets
Typelets follows semantic versioning, meaning no surprises when you upgrade.
Documentation
See the Typelets documentation for usage.
License
Typelets is available under the MIT license.
Contributing
Contributions to Typelets can be made on our Review Board server at https://reviews.reviewboard.org/.
To post a change for review:
-
Download RBTools:
$ pip install rbtools
-
Create a branch in your Git clone and make your changes.
-
Post the change for review:
$ rbt post
To update your change:
$ rbt post -u
Our Other Projects
-
Review Board - Our open source, extensible code review, document review, and image review tool.
-
Djblets - Our pack of Django utilities for datagrids, API, extensions, and more. Used by Review Board.
-
Housekeeping - Deprecation management for Python modules, classes, functions, and attributes.
-
kgb - A powerful function spy implementation to help write Python unit tests.
-
Registries - A flexible, typed implementation of the Registry Pattern for more maintainable and extensible codebases.
You can see more on github.com/beanbaginc and github.com/reviewboard.
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
File details
Details for the file typelets-1.0.1.tar.gz
.
File metadata
- Download URL: typelets-1.0.1.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 011062f3e01608fb103c415260dc01d3f92ac191fd592c6aec6fd7dba521cfd3 |
|
MD5 | b923b5b3d7039b97b4a7ad150fe9f68a |
|
BLAKE2b-256 | dbe507684cdd92c12a1a9cfaa6ff7c2a12ff02ceaf7d86d2c6a397c10e4d93a5 |
File details
Details for the file typelets-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: typelets-1.0.1-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a267db7ab28d5e3998432f7ba29e44956fdc1d7233ffb51472ffe3c14f761a65 |
|
MD5 | c21c0d23e3cc175a9defb2c2c554f1bc |
|
BLAKE2b-256 | ffa7a4bc023067e951e5088347de2431ebd777a8926ddcd4b465fb3ce8f93ab9 |