Tim Smith · @tim
186 followers · 406 posts · Server mastodon.tds.xyz

One pleasant trick I adopted was using metadata to describe the structure of the records: github.com/tdsmith/sdif/blob/0

Python type hints on the fields map to the different formatting rules for SDIF field types: github.com/tdsmith/sdif/blob/0

My continued thanks to @hynek for building and maintaining attrs! 🫡

#attrs

Last updated 3 years ago

Tin Tvrtković · @tintvrtkovic
57 followers · 111 posts · Server mastodon.social

In 1.0, you can use `Final` attributes in classes and Mypy will know they are frozen instance attributes.

So if you use Mypy, this'll get you *overhead-free* frozen classes, but with a bunch of caveats:
* it doesn't work if the attribute has a default (any default), even like `attrs.field` or `attrs.Factory`
* the class won't be hashable by default

These are tricky to solve. The work continues.

#mypy #attrs #python

Last updated 3 years ago

Hynek Schlawack · @hynek
1528 followers · 622 posts · Server mastodon.social

-using friends!

Is joblib something y'all use and would be interesting in custom hashing support in like this gentleperson: stackoverflow.com/q/74975393/4 ?

I've never heard of that pkg before but 23M dl/month suggest it's popular. 😅

#numpy #python #attrs

Last updated 3 years ago

Olivia Appleton · @LivInTheLookingGlass
101 followers · 19 posts · Server tech.lgbt

It's time for a re-!

I'm a in . In my spare time, I develop such as
- a library to talk to from native
- a manager using the above
- a transpiler from a subset of Python to 's OverpassQL
- bug fixes to many other projects, including , , , , and more

I'm also a hobbyist editor on OpenStreetMap.

, , and happily dating my enby sweetheart

#introduction #mastersstudent #computerscience #opensourcesoftware #manifoldmarkets #python #predictionmarket #openstreetmaps #mypy #base58 #attrs #cpython #bi #transfem

Last updated 3 years ago

Olivia Appleton · @LivInTheLookingGlass
78 followers · 459 posts · Server mastodon.social

It's time for a re-!

I'm a in . In my spare time, I develop such as
- a library to talk to from native
- a manager using the above
- a transpiler from a subset of Python to 's OverpassQL
- bug fixes to many other projects, including , , , , and more

I'm also a hobbyist editor on OpenStreetMap.

, , and happily dating my enby sweetheart

#introduction #mastersstudent #computerscience #opensourcesoftware #manifoldmarkets #python #predictionmarket #openstreetmaps #mypy #base58 #attrs #cpython #bi #transfem

Last updated 3 years ago

Serge Matveenko ♻️☮️Ⓐ · @lig
198 followers · 2464 posts · Server fosstodon.org

`__attrs_pre_init__` and `__attrs_init__` support is comming to Python Attrs library!

See docs for `attr.s` `init` parameter here attrs.org/en/latest/api.html

@hynek@mastodon.social @hynek@twitter.activitypub.actor

#attrs #python

Last updated 5 years ago

Russell Keith-Magee · @freakboy3742
541 followers · 7078 posts · Server mastodon.social

RT @hynek
I’ve just been approved to GitHub Sponsors! I have procrastinated on it b/c I was afraid it might get embarrassing...prove me wrong if my software (or whatever else I’ve done) helped you make money? 😇

github.com/sponsors/hynek

#attrs #python #structlog

Last updated 5 years ago