pyenv lets you easily switch between multiple versions of Python. It’s simple, unobtrusive, and follows the UNIX tradition of single-purpose tools that do one thing well.
Use different Python version with virtualenv
<span class="pln">virtualenv </span><span class="pun">-</span><span class="pln">p </span><span class="pun">/</span><span class="pln">usr</span><span class="pun">/</span><span class="pln">bin</span><span class="pun">/</span><span class="pln">python2</span><span class="pun">.</span><span class="lit">6</span> <span class="pun"><</span><span class="pln">path</span><span class="pun">/</span><span class="pln">to</span><span class="pun">/</span><span class="pln">new</span><span class="pun">/</span><span class="pln">virtualenv</span><span class="pun">/></span>
Million requests per second with Python
Japronto is a brand new micro-framework tailored for your micro-services needs. It’s main goals include being fast, scalable and lightweight. It lets you do synchronous and asynchronous programming with asyncio and it’s shamelessly fast. Even faster than NodeJS and Go.
.. These results were obtained on AWS c4.2xlarge instance that has 8 VCPUs launched in São Paulo region with default shared tenancy
addict – the Python Dict that’s better than heroin.
addict is a Python module that gives you dictionaries whose values are both gettable and settable using attributes, in addition to standard item-syntax.
This means that you don’t have to write dictionaries like this anymore:
body = { 'query': { 'filtered': { 'query': { 'match': {'description': 'addictive'} }, 'filter': { 'term': {'created_by': 'Mats'} } } } }Instead, you can simply write the following three lines:
body = Dict() body.query.filtered.query.match.description = 'addictive' body.query.filtered.filter.term.created_by = 'Mats'