Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mhashemi
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
mhashemi
8y ago
Because most of these utilities were created to build things, and contributing to the stdlib has never been on one of those critical paths? But really, @marmaduke's got it right. The standard library has a MUCH higher barrier to entry
62.
▲
by
mhashemi
8y ago
Library author and lazy README updater here to report that technically as of October 09, 2018, boltons is 79 types and 146 functions, for a grand total of 225 utilities. While I'm here, here are the ones I use most: - OrderedMultiDict:
63.
▲
by
mhashemi
8y ago
Here was a recent high-profile but somewhat contentious transition: https://github.com/pypa/pipenv/issues/2191 The key here was that the rapid pace of the project kept breaking various user segments' exp
64.
▲
by
mhashemi
8y ago
They're all on the Users page: https://calver.org/users.html
65.
▲
by
mhashemi
8y ago
Added by user request 1 hour ago: https://github.com/mahmoud/calver/issues/5 It's more for the past (06) than for the future.
66.
▲
by
mhashemi
8y ago
Hehe, boltons.typeutils.make_sentinel should really be documented better for more experienced developers. A few small advantages: a nice repr, pickleability, and (back to the first advantage really) good rendering in a Sphinx autodoc contex
67.
▲
by
mhashemi
8y ago
Did you seriously just recommend Requests, a project which uses "Non-GMO", "organic", and "grass-fed" to describe itself on the very page you linked, as a good example of not using buzzwords? Come on. kreitz
68.
▲
by
mhashemi
8y ago
I wouldn't recommend dynamically generating strings. Strings are just a shorthand for Path objects, use Path instead: http://glom.readthedocs.io/en/latest/api.html#specifier-type...
69.
▲
by
mhashemi
8y ago
I think y'all might be getting a bit up in arms about a non-issue. Seasoned glommers (and experienced Pythonists), will almost always be using T: http://glom.readthedocs.io/en/latest/api.html#object-oriente...
70.
▲
by
mhashemi
8y ago
DRF still takes care of negotiating formats, etc., but it replaces the serializers. I'll see about getting an example in the repo, stay tuned.
71.
▲
by
mhashemi
8y ago
You're yellin at a tutorial man. You gotta let some flavor text slide. :) That said, I'm no liar. Kurt and I (as a team), really did write stuff leading up to glom in 2013 (years ago), and have written stuff like it enough times t
72.
▲
by
mhashemi
8y ago
The big, classical school of Python definitely prefers top-level functions. Still, I definitely understand that aesthetic, and am on board with not using functools.partial to achieve it. So: https://github.com/mahmoud/g
73.
▲
by
mhashemi
8y ago
Hey Ka-Ping! Maybe I did get carried away :) How I wish one could publish a dry document and expect people to read all the way to the bottom. I've published enough libraries to know that's not the case. glom's free software s
74.
▲
by
mhashemi
8y ago
That's a great example! Mind if I use it? ;)
75.
▲
by
mhashemi
8y ago
Filtering is supported through the OMIT value: http://glom.readthedocs.io/en/latest/api.html#glom.OMIT (another example: http://glom.readthedocs.io/en/latest/snippets.html#filtered-... )
76.
▲
by
mhashemi
8y ago
The real advantage over toolz/get_in is in the breadth of types glom can support ( http://glom.readthedocs.io/en/latest/api.html#setup-and-regi... ), the extensive fallback behavior ( http://glom.read
77.
▲
by
mhashemi
8y ago
What's really interesting is that we're approaching the same ideal state from different directions. Specter goes from Clojure's immutability to something more practical, from Python's super dynamic system to something mo
78.
▲
by
mhashemi
8y ago
From within Python, all objects are supported by default. If you can parse it, you can glom it. You can even register additional behaviors for specific types to keep your specs tight: http://glom.readthedocs.io/en/lates
79.
▲
by
mhashemi
8y ago
It depends on the complexity of the spec, but we've already done some programmatic building of glomspecs, so for many cases I think the answer is yes! Once we feel out the patterns I think glom will gain some utilities for this purpose
80.
▲
by
mhashemi
8y ago
Total coincidence! Reading the README, Nathan and I are definitely on the same wavelength though. When I get a chance I'll add it to the analogies doc: http://glom.readthedocs.io/en/latest/by_analogy.html :)
81.
▲
by
mhashemi
8y ago
glom not only supports more than string keys, it also supports assigning to non-dictionary objects. That's a part of the API we're working on right now, actually. As for the data insertion, mutation may be in the future, but for n
82.
▲
by
mhashemi
8y ago
Oh nice! Total coincidence, I assure you. Still, I should read on this and add it to the analogy doc: http://glom.readthedocs.io/en/latest/by_analogy.html Declarative data transformation generates a lot of compari
83.
▲
by
mhashemi
8y ago
Haha, I'm all for console usage, but let me tell you, there's nothing quite like that feeling of moving a working spec into a dedicated application with exception handling, logging, etc. :)
84.
▲
Glom – Restructured Data for Python
(sedimental.org)
313 points
by
mhashemi
8y ago
|
97 comments
85.
▲
by
mhashemi
8y ago
Was it the literal link to https://en.wikipedia.org/wiki/Poe%27s_law on https://0ver.org/about.html ? :P Countless people are already using 0ver, and always will. In other words, 0ver.org is descriptiv
86.
▲
ZeroVer: Cutting-edge software versioning for minimalists
(0ver.org)
29 points
by
mhashemi
9y ago
|
3 comments
87.
▲
by
mhashemi
9y ago
Ohhhh snap! I'll update the article tonight!
88.
▲
by
mhashemi
9y ago
That great! The PyPA works hard to make pip+pypi behave intuitively. That said, a lot of more applications need more machinery, yielding utilities like pip-tools[0] and conda. [0]: https://github.com/jazzband/pip-tools
89.
▲
by
mhashemi
9y ago
Absolutely! The post mentions a little bit how pip is definitely used for distributing command-line applications, from fab to pex to ansible. So much so that pipsi[0] is a thing. Even the tiny static site generator used to generate the post
90.
▲
The Many Layers of Packaging: Why PyPI Isn't an App Store
(sedimental.org)
144 points
by
mhashemi
9y ago
|
32 comments
More ›