samuelcolvin

@samuelcolvin@fosstodon.org

Python & Rust developer, maintainer of #pydantic and others. he/him.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

samuelcolvin, to random

We're live!

@pydantic Logfire is in open beta.

Since I started writing Python in 2010, I've wanted a better way to do logging.

Off the back of Pydantic's unbelievable growth, last year I started a company backed by Sequoia, and lucky enough to hire the brightest people I know.

Now we've gone and built the logging thing I always wanted.

https://pydantic.dev/logfire

samuelcolvin,

@ambv @pydantic structlog is great, we already have an integration with it.

It doesn't do tracing AFAIK, and there's no out of the box way to store, view and query the data as a managed web app.

It's a different thing, but it's part of the inspiration for logfire!

https://docs.pydantic.dev/logfire/integrations/structlog/

samuelcolvin,

@forst thanks for the feedback.

The examples rotate between OpenAI, FadtAPI, and PostgreSQL - so only 1/3 AI.

We have to have one of them first/default. I don't think AI is a bad choice right now.

samuelcolvin, to random

Big @pydantic news!

We're going into closed beta with our new platform, THIS WEEK!

If you want to join, answer the survey linked from our Roadmap:

https://blog.pydantic.dev/blog/2023/06/13/help-us-build-our-roadmap--pydantic/

samuelcolvin,

@zzzeek @pydantic feel free, but we're not building an ORM right now.

If we ever build a storage thing for/around pydantic, it'll likely be backed by object storage and/or parquet, so not really an ORM.

samuelcolvin, to random

If you're building open source, you should look at Sequoia's Open Source Fellowship.

https://sequoiacap.com/oss

Their efforts to support open source, even when it won't lead to a VC business are laudable.

Even the VC sceptics must see that 👀 😉 @hynek @carlton @webology

samuelcolvin,

@hynek @carlton @webology I saw, and I really appreciate it.

No more tongue in cheek tagging for me.

BTW - you must be thrilled with UV 😜

shaps, to python

Am I correct in thinking @pydantic settings only supports dot-env files out of the box and any other setting/source you need to provide yourself?

#python #fastapi

samuelcolvin,

@shaps @pydantic environment variables are also supported out of the box.

simon, to random
@simon@simonwillison.net avatar

Given how Pydantic 2 broke compatibility with Pydantic 1 in a way that's still shaking out - you can't use 2 in a project that has dependencies that use 1 without making changes to those dependencies...

... I wonder what the downsides of releasing Pydantic 2 as a new package called "pydantic2" such that it could be installed in the same namespace as the original pedantic would have been?

Presumably this is how Jinja ended up as "jinja2" forever?

samuelcolvin,

@simon the main reason we didn't do it was precisely to avoid everyone having to use pydantic2 for ever more.

There was (and is) definitely pain associated with the migration, for us and others. But it's some time thing that I think is worthwhile overall.

samuelcolvin,

@predrag @mistersql @simon

Ye, I too would be interested to hear what I'm being criticized for here?

samuelcolvin,

@simon @predrag @mistersql really? I expected adoption to be slower given what a big change it was

samuelcolvin,

@simon @predrag @mistersql yup, it's not ideal.

Again, most of the API changes weren't caused by the rust rewrite, but by trying fix apis that were historically ugly.

I really don't know if there was a better solution, but we definitely won't be making any more big changes like this in future.

samuelcolvin,

@simon @predrag @mistersql

Completely understandable, although there's a bit of chicken and egg problem here.

samuelcolvin,

@predrag @quentinpradet @simon @mistersql yup, I agree it's hard, and I'm sorry about that.

I think we should have built some kind of compatibility shim so v1 models could be used in v2, or visa versa, but it's too late now.

samuelcolvin, to random

I've just released the first version of FastUI! 🧵

https://github.com/samuelcolvin/FastUI

If you're a Python developer, FastUI lets you build React interfaces without writing any JS.

If you're a frontend developer, FastUI saves you from copy-pasting code for every view, letting you concentrate on building magical components.

FastUI is build on @pydantic and is great with @FastAPI although it could be used with any Python web framework.

koxudaxi, to random

I have released datamodel-code-generator version 0.21.0 for #pydantic v2.
The version can generate the #pydantic v2 models from JSONSchema/OpenAPI/JSON/YAML
Also, The version can be run in #pydantic V2.

The changes are in the link.
https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.21.0
#pydanticV2

samuelcolvin,

@koxudaxi amazing, thank you.

samuelcolvin, to random

If you're using @pydantic, you should complete our product roadmap survey ASAP! 🏃🏃🏃

We'll be making some big decisions about the priorities for what we build this week.

https://forms.gle/TpfJEvSq1qAJmPC58

samuelcolvin,

@pawamoy @pydantic @textualize maybe, definitely worth a chat when we come to build this.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • ngwrru68w68
  • everett
  • InstantRegret
  • magazineikmin
  • thenastyranch
  • rosin
  • GTA5RPClips
  • Durango
  • Youngstown
  • slotface
  • khanakhh
  • kavyap
  • DreamBathrooms
  • provamag3
  • ethstaker
  • osvaldo12
  • tester
  • cubers
  • cisconetworking
  • mdbf
  • tacticalgear
  • modclub
  • Leos
  • anitta
  • normalnudes
  • megavids
  • lostlight
  • All magazines