GitHub Trends
10.1K subscribers
15.3K links
See what the GitHub community is most excited about today.

A bot automatically fetches new repositories from https://github.com/trending and sends them to the channel.

Author and maintainer: https://github.com/katursis
Download Telegram
#python #hints #json_schema #parsing #pydantic #python #python310 #python311 #python312 #python37 #python38 #python39 #validation

Pydantic is a tool that helps you check if your data is correct using Python type hints. It's fast, easy to use, and works well with your coding tools. You can define how your data should look in simple Python code and then use Pydantic to validate it. This makes sure your data is consistent and accurate, which is very beneficial for keeping your programs stable and reliable. You can install it easily using `pip install -U pydantic` or `conda install pydantic -c conda-forge`.

https://github.com/pydantic/pydantic
👏1
#go #error_handling #translation #validation

The `validator` package helps you check if the data in your Go structs and fields are correct. It has many useful features like validating across different fields and structs, checking complex data types, and handling custom validation rules. You can also customize error messages and use it with popular frameworks like Gin. This makes it easier to ensure your data is valid and consistent, saving you time and reducing errors in your code. To use it, you just need to install the package with `go get` and import it into your project.

https://github.com/go-playground/validator
🔥1