pfctdayelise + python   178

icecream Sweet and creamy print debugging.
IceCream is a little library for sweet and creamy debugging.

Do you ever use print() or log() to debug your code? Of course you do. IceCream, or ic for short, makes print debugging a little sweeter.

IceCream is well tested, permissively licensed, and supports Python 2, Python 3, PyPy2, and PyPy3.
Ice Cream with Toppings (Arguments)

Have you ever printed variables or expressions to debug your program? If you've ever typed something like


or the more thorough

print("foo('123')", foo('123'))

then ic() is here to help. With arguments, ic() inspects itself and prints both its own arguments and the values of those arguments.

from icecream import ic

def foo(i):
return i + 333



ic| foo(123): 456


d = {'key': {1: 'one'}}

class klass():
attr = 'yep'


ic| d['key'][1]: 'one'
ic| klass.attr: 'yep'

Just give ic() a variable or expression and you're done. Easy.
python  debugging 
20 days ago by pfctdayelise
"An étude (a French word meaning study) is an instrumental musical composition, usually short, of considerable difficulty, and designed to provide practice material for perfecting a particular musical skill." — Wikipedia

This project contains pytudes—Python programs for perfecting programming skills.

Some are in Jupyter (IPython) notebooks, some in .py files.
programming  python  practice 
february 2018 by pfctdayelise
walrus — walrus 0.5.1 documentation
Python utilities for working with Redis:

container classes
full-text search
graph store
rate limiting
active-record models (secondary indexes, full-text search)
more? more!

My hope is that walrus saves you time developing your application by providing useful Redis-specific components. If you have an idea for a new feature, please don’t hesitate to tell me about it.
python  redis 
february 2018 by pfctdayelise
Deploying Python Web Applications with nginx and uWSGI Emperor | Chris Warrick
You’ve just written a great Python web application. Now, you want to share it with the world. In order to do that, you need a server, and some software to do that for you.
The following is a comprehensive guide on how to accomplish that, on multiple Linux-based operating systems, using nginx and uWSGI Emperor. It doesn’t force you to use any specific web framework — Flask, Django, Pyramid, Bottle will all work. Written for Ubuntu, Debian, Fedora, CentOS and Arch Linux (should be helpful for other systems, too). Now with an Ansible Playbook.
python  ansible  ubuntu  debian  nginx  uwsgi  webdev 
may 2017 by pfctdayelise
Sentry Server – Sentry Documentation
Stop hoping your users will report errors
Sentry’s real-time error tracking gives you insight into production deployments and information to reproduce and fix crashes.

You can pay for or you can also set up the server yourself for "on premises" use.
python  monitoring 
may 2017 by pfctdayelise
The Book
"Test-Driven Web Development with Python" aims to teach TDD for web programming. It uses a concrete example -- the development of a website, from scratch -- to explain the TDD metholology and how it applies to building web applications. It covers the Selenium browser-automation tool, unit testing, mocking, and interacting with Web technologies from the basics of static content, database integration, throught the inescapable JavaScript, and onto more advanced (and trendy) topics like NoSQL, websockets and Async programming.
python  django  testing 
march 2017 by pfctdayelise
mnot/redbot @ GitHub
"RED checks HTTP resources to see how they use HTTP, makes suggestions, and finds common protocol mistakes."

Public instance, can also be installed locally.
python  http 
may 2016 by pfctdayelise
Pgcli is a command line interface for Postgres with auto-completion and syntax highlighting.
postgres  python  opensource 
november 2015 by pfctdayelise
Open Soure Data Collaboration Platform
Connect to any data source, visualize your data and share it with anyone!
opensource  python  datavis 
november 2015 by pfctdayelise
Oops! by Curtis Maloney
easy errors to make in python/django
python  django 
september 2015 by pfctdayelise
Somewhat weird license choice - AGPL. currently english only.
python  NLP  nltk 
august 2015 by pfctdayelise
Matplotlib tutorial
esp the line style/color table etc reference at the end
matplotlib  python  tutorial  useful 
september 2013 by pfctdayelise
"Simple, Pythonic, text processing--Sentiment analysis, POS tagging, noun phrase extraction, and more." - curious about what the relationship between this library and NLTK is.
python  NLP  nltk  compling 
august 2013 by pfctdayelise
open source alternative to disqus, comment server
python  opensource  blog  comments 
july 2013 by pfctdayelise
Python Data. Leaflet.js Maps. Folium builds on the data wrangling strengths of the Python ecosystem and the mapping strengths of the Leaflet.js library. Manipulate your data in Python, then visualize it in on a Leaflet map via Folium. Concept Folium makes it easy to visualize data that's been manipulated in Python on an interactive Leaflet map. It enables both the binding of data to a map for choropleth visualizations as well as passing Vincent/Vega visualizations as markers on the map. The library has a number of built-in tilesets from OpenStreetMap, Mapbox, and Stamen, and supports custom tilesets with Mapbox or Cloudmade API keys. Folium supports both GeoJSON and TopoJSON overlays, as well as the binding of data to those overlays to create choropleth maps with color-brewer color schemes.
python  maps  leaflet 
may 2013 by pfctdayelise
Iterables, iterators, generators
january 2013 by pfctdayelise
« earlier      
per page:    204080120160

related tags

abc  android  ansible  apache  api  async  AWS  blog  books  briannalaugher  bugtracker  bzr  caching  cc-by-sa  celery  cffsw  charts  client  code  comments  compare  compling  conference  conferences  contracttesting  cool  data  database  datavis  debian  debugging  decorators  deployment  developers  django  docker  documentation  dreamhost  eclipse  education  emacs  email  emoji  evaluation  events  examples  fabric  flask  forms  funny  games  garmin  geekculture  geekfeminism  generators  geo  geospatial  github  graphite  graphs  gui  hg  howto  html  http  hypothesis  i18n  identica  interesting  internode  ironpython  jaiku  javascript  jupyter  language  languages  LCA  LCA2010  leaflet  linguistics  linter  linux  literateprogramming  machinelearning  mailman  maps  matplotlib  mediawiki  melbourne  metrics  microservices  mod_wsgi  monitoring  mono  nginx  NLP  nltk  notebook  ocr  opendap  opensource  oracle  packaging  perl  php  pip  podcast  postgres  practice  pretty  profiling  programming  prolog  PSI  pyblosxom  pyconau  pydap  pygame  pylint  pyqt  pytest  python  python3  quality  redis  regexp  rest  restructuredtext  rss  ruby  rust  screencast  screenscraping  search  security  shiny  site  software  softwaredev  spain  spanish  sqlite  static  statsd  swagger  t10n  teaching  testing  text  tutorial  twitter  ubuntu  unicode  useful  uwsgi  versioncontrol  video  weatherforecasts  web  web-based  web2.0  web2py  webaccess  webdesign  webdev  websockets  wiki  wikipedia  women  xml  Y  zookeepr 

Copy this bookmark: