Earlier quoted context omitted.
For those of us more dictionary oriented, there is https://pypi.python.org/pypi/voluptuous (which is OK for the most part, as long as you are only trying to do validation, and nothing too crazy)
Huh, voluptuous looks pretty much exactly the same as schema. Or at least a subset of it, as it doesn't have And/Or/Use, as far as I can see.
'New' Python modules of 2015
71–80 of 137 posts
Re: 'New' Python modules of 2015
#72I am using Scrapy a lot. http://scrapy.org/ It is very well designed web crawling library.
I found out, through reddit a couple of days ago, about Pomp: https://bitbucket.org/estin/pomp It looks like a much cleaner Scrapy-inspired spider framework, without the twisted dependency. And it's python 2+3 compatible. I'm very excited to try it out.
Re: 'New' Python modules of 2015
#73I'm feeling a lot of love for Pandas. Any (biology related) project I work on starts with multi-headered dataframes and ends in beautiful Seaborn graphs. In combination with Jupyter notebook I breeze through large data sets while leaving a perfect trail of what goes on in the data pipeline. Python is great.
Re: 'New' Python modules of 2015
#74Earlier quoted context omitted.
Optional being an attribute of the key rather than the value is pretty bizarre to me, I've seen that patten a couple times. Feels like the wrong way to go about it
I see what you mean, but it's the key that's optional, not the value.
I have yet to find a validation library that supports all the sorts of things I expect it to. One place they tend to fail is the ways they can fulfill default values.
Say a field has an error and I want to just give it a default value when it's broken? That particular feature doesn't exist in any library i've found so far (for python) =/
Granted, this sort of blends into the usual "It's a validation library not a serialization library". But they all make a half-assed attempt at the other side in my experience.
Re: 'New' Python modules of 2015
#75Re: 'New' Python modules of 2015
#76Are there any ruby alternatives to tqdm?
or node?
Re: 'New' Python modules of 2015
#77Obiwan pypi.python.org/pypi/obiwan/ validating JSON also: type checking on function signatures
Using JSON Schema with Python to validate JSON data: http://jugad2.blogspot.in/2015/12/using-json-schema-with-pyt...
Re: 'New' Python modules of 2015
#78Hands down, my favorite new library is schema: https://pypi.python.org/pypi/schema Here's a schema I use in production, see how readable it makes the parameters of the API and how quick all the validation and normalization is: https://www.pastery.net/mhwwnv/ At the end, you get an object called data, and you can do data.title, data.language, etc, and be sure that everything is as you expect.
For those of us more dictionary oriented, there is https://pypi.python.org/pypi/voluptuous (which is OK for the most part, as long as you are only trying to do validation, and nothing too crazy)
Re: 'New' Python modules of 2015
#79Earlier quoted context omitted.
It takes precedence in the path over everything...and in the last version I used (before I upgraded to OS X El Capitain and wiped out everything), things like `curl` were provided [1] ...which I completely understand for Anaconda's use case, but it caused a lot of confusing grief to me when I hadn't expected that and OpenSSL was having its rough times. I don't know if that's the case (curl being part of the package)…
> And finally...well, I have to admit it, but I use Python like a goddamned moron in that I still don't know how to use virutalenv/venv to do proper dev isolation. I was the same way for quite a while, until I bumped into pyenv-virtualenv[1]. Just install that plugin, and you can do, eg, pyenv virtualenv 3.5.1 my-project to get a virtual environment called `my-project` based off of Python 3.5.1 (assuming that you've…
Re: 'New' Python modules of 2015
#80Hands down, my favorite new library is schema: https://pypi.python.org/pypi/schema Here's a schema I use in production, see how readable it makes the parameters of the API and how quick all the validation and normalization is: https://www.pastery.net/mhwwnv/ At the end, you get an object called data, and you can do data.title, data.language, etc, and be sure that everything is as you expect.
For those of us more dictionary oriented, there is https://pypi.python.org/pypi/voluptuous (which is OK for the most part, as long as you are only trying to do validation, and nothing too crazy)
I've used it for parsing various network protocols to good effect.