django-guid
pydantic
django-guid | pydantic | |
---|---|---|
6 | 181 | |
470 | 24,969 | |
0.2% | 1.0% | |
5.0 | 9.7 | |
about 1 month ago | 5 days ago | |
Python | Python | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
django-guid
- GitHub - snok/django-guid: Inject an ID into every log message from a Django request. ASGI compatible, integrates with Sentry, and works with Celery
- Inject a correlation-ID into every log message from a request. Tracing and trouble shooting made easy!
-
Ask HN: How do you manage to do FOSS personal projects?
By doing it with friends. We’ve written a bunch of Python packages, such as Django-GUID[1], ASGI-Correlation-ID[2], install-poetry GitHub action[3] etc... We’re a organization on GitHub with friends who do this together. Helps when multiple can answer GitHub issues etc.
I do write some open source for work, but that too is mostly done at my spare time.
No income, but I sponsor others. FOSS is mostly to learn and do something a bit different.
[1] https://github.com/snok/django-guid
[2] https://github.com/snok/django-guid
[3] https://github.com/snok/install-poetry
- Logging in Python Like a Pro
- Ask HN: Good Python projects to read for modern Python?
- Tips for Making a Popular Open-Source Project in 2021 [Ultimate Guide]
pydantic
- Dict Unpacking in Python
-
A Practical Guide on Structuring LLM Outputs with Pydantic
The solution? Leverage Pydantic, a Python library that enables runtime data validation using type annotations.
-
Loading Pydantic models from JSON without running out of memory
Pydantic author here. We have plans for an improvement to pydantic where JSON is parsed iteratively, which will make way for reading a file as we parse it. Details in https://github.com/pydantic/pydantic/issues/10032.
Our JSON parser, jiter (https://github.com/pydantic/jiter) already supports iterative parsing, so it's "just" a matter of solving the lifetimes in pydantic-core to validate as we parse.
This should make pydantic around 3x faster at parsing JSON and significantly reduce the memory overhead.
-
Advanced Pydantic: Generic Models, Custom Types, and Performance Tricks
Across this five-post series, we’ve journeyed from Pydantic’s basics—type validation and nested models—to advanced integrations with FastAPI, SQLAlchemy, and scalable techniques. You’ve learned how to build declarative, type-safe models, handle complex APIs, and optimize performance. To deepen your knowledge, explore the Pydantic documentation, contribute to the open-source project, or experiment with real-world use cases. Check out our GitHub repo for code samples and a Pydantic cheat sheet. Thank you for joining us—happy coding!
-
Getting Started with Pydantic: Type-Safe Data Models in Python
To dive deeper, check out the Pydantic documentation for advanced features like nested models, custom validators, and settings management. Happy coding!
- Resumindo características da linguagem Python
-
FastAPI, Pydantic, Psycopg3: the holy trinity for Python web APIs
Pydantic is bundled with FastAPI and is excellent for modelling, validating, and serialising API responses.
-
Pydantic Settings + AWS the easy way
Pydantic Settings is a python library that extends 🚀 Pydantic for dealing with settings management.
-
Understanding FastAPI: How OpenAPI works
And here is where FastAPI ✨ shines: It leverages Pydantic powerful data validation to offer out of the box JSON Schema and OpenAPI specs via Swagger and Redoc.
-
Checkbox Extraction from PDFs - A Tutorial
If you carefully think about it, the system that extracts raw text from the PDF needs to both detect and render PDF form elements like checkboxes and radiobuttons in a way that LLMs can understand. In this example, we’ll use LLMWhisperer to extract PDF raw text representing checkboxes and radiobuttons. You can use LLMWhisperer completely free for processing up to 100 pages per day. As for structuring the output from LLMWhisperer, we’ll use GPT3.5-Turbo and we’ll use Langchain and Pydantic to help make our job easy.
What are some alternatives?
asgi-correlation-id - Request ID propagation for ASGI apps
msgspec - A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML
newscatcher - Programmatically collect normalized news from (almost) any website.
typeguard - Run-time type checker for Python
python-logfmter - Add logfmt structured logging using the stdlib logging module and without changing a single log call.
Lark - Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity.