SaaSHub helps you find the best software and product alternatives Learn more →
Top 19 Python Type Projects
Optional static typing for PythonProject mention: It's Time for a Change: Datetime.utcnow() Is Now Deprecated | news.ycombinator.com | 2023-11-19
It's funny you should say this.
Reading this article prompted me to future-proof a program I maintain for fun that deals with time; it had one use of utcnow, which I fixed.
And then I tripped over a runtime type problem in an unrelated area of the code, despite the code being green under "mypy --strict". (and "100% coverage" from tests, except this particular exception only occured in a "# pragma: no-cover" codepath so it wasn't actually covered)
It turns out that because of some core decisions about how datetime objects work, `datetime.date.today() < datetime.datetime.now()` type-checks but gives a TypeError at runtime. Oops. (cause discussed at length in https://github.com/python/mypy/issues/9015 but without action for 3 years)
One solution is apparently to use `datetype` for type annotations (while continuing to use `datetime` objects at runtime): https://github.com/glyph/DateType
A static type analyzer for Python codeProject mention: A Tale of Two Kitchens - Hypermodernizing Your Python Code Base | dev.to | 2023-11-12
Pyre from Meta, pyright from Microsoft and PyType from Google provide additional assistance. They can 'infer' types based on code flow and existing types within the code.
Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.
Collection of library stubs for Python, with static typesProject mention: What's the point of using `Any` in Union, such as `str | Any` | /r/learnpython | 2023-08-17
"csv.pyi is from VS Code Pylance extension" is misleading. Yes, it's included in the code base of the extension, but it's likely originally from python/typeshed. I diffed csv.pyi in the extension and the repository, and they're exactly the same.
Python Data Structures for Humans™.
Python static typing home. Hosts the documentation and a user help forum.Project mention: Writing Python like it’s Rust | /r/programming | 2023-05-21
Simple and powerful factories for mock data generationProject mention: Announcing Polyfactory - a powerful mock data generator for dataclasses, Pydantic and more | /r/Python | 2023-04-16
If you'd like to contribute, check out the project on GitHub, and if you want to chat you're welcome to join us on the Litestar Discord!
Mypy plugin and stubs for SQLAlchemy
Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.
Observable typed attributes for Python classes (by enthought)
Typed argument parser for PythonProject mention: I am sick of writing argparse boilerplate code, so I made "duckargs" to do it for me | /r/Python | 2023-03-03
Hmm… did you try such approaches, as [click](https://github.com/pallets/click) or[tap](https://github.com/swansonk14/typed-argument-parser)?
A Python type checkerProject mention: GitHub - quora/pyanalyze: A Python type checker | /r/Python | 2023-05-24
Python library to load dynamically typed data into statically typed data structuresProject mention: Show HN: Up to 100x Faster FastAPI with simdjson and io_uring on Linux 5.19 | news.ycombinator.com | 2023-03-06
Author of typedload here!
FastAPI relies on (not so fast) pydantic, which is one of the slowest libraries in that category.
Don't expect to find such benchmarks on the pydantic documentation itself, but the competing libraries will have them.
📦 Autowiring dependency injection container for python 3 (by meadsteve)
Functional, composable, asynchronous, type-safe Python.
:seedling: Type stubs for Celery and its related packages
Validation and transformation library powered by deductive ascending parser. Made to be extended for any kind of project.Project mention: [Guide] A Tour Through the Python Framework Galaxy: Discovering the Stars | /r/coder_corner | 2023-04-29
Try msgspec | Maat | turbo for fast serialization and validation
Lossless in-memory compression of pandas DataFrames and Series powered by the visions type system. Up to 10x less RAM needed for the same data.
thsl: A typed configuration language.Project mention: Is there any interest in a typed configuration language? | /r/Python | 2023-02-15
I call it thsl for Typed Human-readable Serialization Language. The main idea is to be a configuration language similar to yaml but with advanced type support. This is to avoid the problem of a config file getting deserialized into inconsistent data types. See The Norway Problem.
Dead simple way to create shared type definitions between applications
This is a CLI tool that can introspect MySQL or Postgres databases and generate a python file that contains TypedDict definitions for the tables and columns in the provided database schema.Project mention: First Rust CLI Project, would love some feedback | /r/rust | 2023-08-26
Here's the link to the source: https://github.com/sesgoe/db-introspector-gadget
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Python Types related posts
Mypy 1.6 Released
5 projects | news.ycombinator.com | 17 Oct 2023
What's the point of using `Any` in Union, such as `str | Any`
1 project | /r/learnpython | 17 Aug 2023
Importing python libraries "Cannot find implementation or library stub for module named ..."
1 project | /r/neovim | 5 Jul 2023
Writing Python like it's Rust
10 projects | news.ycombinator.com | 21 May 2023
Extend Python VENV: Organize Dependencies Your Way
2 projects | dev.to | 11 May 2023
The different uses of Python type hints
6 projects | news.ycombinator.com | 15 Apr 2023
Why Type Hinting Sucks!
7 projects | /r/Python | 10 Feb 2023
A note from our sponsor - #<SponsorshipServiceOld:0x00007f0fa1581418>
www.saashub.com | 1 Dec 2023
What are some of the best open-source Type projects in Python? This list will help you: