Skip to Content Skip to Navigation
Profile image for Patrick

Patrick

@patrick@patrick.wtf

Python / GraphQL

50 Posts Posts & Replies 273 Following 190 Followers Search
Patrick boosted

🐀 Ratatui (best name ever?) is a lightweight library that provides a set of widgets and utilities to build complex Rust TUIs

🔗 ratatui.rs/

@webology I'll open source it when I've tested it more (and wrote docs) 😊

@carlton why not!

@carlton would love to eventually chat with you about what I have in mind, but I need to make a POC first 😊

@carlton tldr: I want something like webc for Django :D

Patrick boosted

Our Grants are open until the 14th of January 2024 AoE!

If you always wanted to attend PyCon Italia but couldn’t make it work, our grant program can help!

More info on pycon.it/grants-info!

Just sent these talks to PyCon US 😊 Is anyone here interested in any of them?

I wrote a tool to create REST APIs (with OpenAPI spec) from a Strawberry schema, and it's becoming my favourite tool to create plugins for ChatGPT (along side with ) 😊

@simon I think you can only follow some users, like: @mosseri

Patrick boosted

It's rare, but sometimes the Orange Site is... good?

Patrick boosted

🚨 Don't miss out! Early Bird tickets are still available!

The tickets are limited in quantity and, like hot pizza slices, won't last long! 🍕

Grab yours ASAP at pycon.it/tickets 🎟️

@tintvrtkovic @carlton thanks! I really wanted to avoid having to pass str, but maybe that's fine 😊

@slott56 thanks! I'll think about it, I'm not sure the register pattern solves my problem 😊

@slott56 mmh, maybe the design I have is bad, basically I'm writing a tool that supports plugins (which are Python classes), these plugins can be configurable (there's a base class that has the validation for the config.

I basically wanted to make sure that a plugin's configuration was properly typed without having to define the configuration type (since we are defining the configuration class already)

@orsinium @slott56 there's a PEP for implementing type checking for dataclasses like tools: peps.python.org/pep-0681/

@carlton this would be amazing, I wonder if that something the typing people would consider 🤔

@slott56 yes, I'd love for that to be possible 😊

I've been trying to do something like this with TypeScript but doesn't seem to be possible there either

Does anyone know how if in it is possible to define a generic class that infers the type of the generic from an attribute?

Something like this:

```
T = TypeVar("T")
class Example(Generic[T]):
Config: type[T]
configuration: T

class SubExample(Example):
Config = str

reveal_type(SubExample().configuration)
```

currently Pylance and Mypy complain about Example not being passed the TypeVar, I wonder if there's a different way to achieve this 👀

Edited 346d ago
Patrick boosted

Congratulations to the new Python Steering Council for 2024!

* Pablo Galindo Salgado
* Gregory P. Smith @gpshead
* Barry Warsaw @flufl
* Emily Morehouse
* Thomas Wouters @Yhg1s

discuss.python.org/t/steering-

hugovk.github.io/python-steeri

@astro is quickly becoming my favourite framework 🥰

Patrick boosted

🚨 You can now buy your PyCon Italia ticket! 🚨

Early Bird tickets are now available on pycon.it! And they won’t be around for long, as they are limited in quantity!

Get them now! ⚡

PyCon Italia needs you!

Got an innovative talk or workshop idea? Our call for proposals is now open!

Bleeding edge or well-known tech, first-time or experienced speakers, everything and everyone is welcome! 🙌

PyCon Italia is your conference! pycon.it/call-for-proposals

Edited 357d ago
Patrick boosted

🚉More sustainable travel options for you soon.

Earlier this year, we announced we’re supporting ten pilot cross-border rail services, connecting more cities and shaping the future of train mobility, including:

🚆 Connecting 🇭🇺 Hungary, 🇦🇹 Austria and 🇷🇴 Romania;
🚆 New night train service 🇫🇷 Paris – 🇮🇹 Milan – 🇮🇹 Venice;
🚆 New service 🇩🇪 Munich – 🇨🇭 Zurich;
🚆 New night train service 🇳🇱 Amsterdam – 🇪🇸 Barcelona.

More: europa.eu/!v6b776

Edited 361d ago