Links tagged with “python”
-
UV with Django
Very useful, by Anže Pečar.
-
UV — I am (somewhat) sold – Oliver Andrich
I’m trying to switch to uv entirely and am eager for examples of real-world usage like this. (via Simon Willison)
-
astral-sh/uv: An extremely fast Python package installer and resolver, written in Rust.
Sounds good. Replacement for pip, pip-tools and virtualenv, with plans to replace more like pipx and pyenv. (via @frabcus@mastodon.social)
-
Timezones in Python - Benjamin “Zags” Zagorsky (PDF)
I keep referring to bits of this, so I should save it. Handy examples of right and wrong ways to do times. (via Simon Willison)
-
shot-scraper: automated screenshots for documentation, built on Playwright
Very clever and useful-looking, from Simon Willison.
-
Best Practices Around Production Ready Web Apps with Docker Compose — Nick Janetakis
Such a good, detailed explanation of how and why things are done in Docker, in his several example GitHub repos.
-
RhetTbull/osxphotos
“Python app to export pictures and associated metadata from Apple Photos on macOS. Also includes a package to provide programmatic access to the Photos library, pictures, and metadata.” (via Colin Devroe)
-
Python in GitHub Actions
More useful tips on getting all this working well.
-
Switching to GitHub Actions - Random notes from mg
Some handy practical tips for using GitHub Actions with Python projects.
-
Homebrew Python Is Not For You // Justin Mayer
I think I’ve escaped this by using pyenv (and/with pipenv) but it’s such a mess. (via @simonw)
-
My Python Development Environment, 2020 Edition | Jacob Kaplan-Moss
As the previous edition, interesting. I’ll stick with pipenv instead of poetry for now, as I’m happy with it. I should use pipx but not sure how to go from my current mess to that. (via Simon Willison)
-
The best of Python: a collection of my favorite articles from 2017 and 2018 (so far)
Some useful stuff for me. But also, more generally, a great example of a useful collection of recent articles around one topic. Lovely. (via @simonw)
-
GitHub - kennethreitz/requests-html: HTML Parsing for Humans™
Python web requests and page scraping. Looks like it might be a bit easier than BeautifulSoup. (via @simonwillison)
-
ftfy - fix unicode that’s broken in various ways
Shows you how to fix “broken” encoded text using python.
-
Pipenv: Python Dev Workflow for Humans — pipenv 8.1.4 documentation
I really don’t want to learn yet another way to manage python virtual environment but this does sound like it might finally be The One. (via @simonw)
-
Cheat Sheet: Writing Python 2-3 compatible code — Python-Future documentation
Because this is usually where I end up when googling for this stuff.
-
Test A Reusable Django Application For Support Of Multiple Django Releases With Tox And Travisci | Joe Bergantine
A clear description of how to do something that pretty much worked. Always a pleasure.
-
A Modern Python Development Toolchain · Chris Krycho
Nice clear summary. I’ve never used pyenv but looks like I should. (via Tom Taylor)
-
Flask Web Development - O’Reilly Media
This book was really good for helping to structure a slightly larger Flask site than I was previously used to. I’m liking Flask, but it does require piecing together lots of knowledge to sew parts together.
-
How To Structure Large Flask Applications | DigitalOcean
Always a pleasure to find useful tutorials that step though things clearly and Just Work.
-
Host, run, and code Python in the cloud: PythonAnywhere
Free, and upwards, hosting of Python code/sites, with what sound like great facilities for teachers and their classes.
-
Gemnasium
“Parses your project’s dependencies and notifies you when new versions are released or they need to be updated.” For python, ruby, node, php, etc. (via @dracos)
-
requires.io | Monitor your dependencies
“Monitors the requirements of your project and notify you whenever a dependency is outdated.” (via @mrchrisadams)
-
Twython — Twython 3.1.2 documentation
“Actively maintained, pure Python wrapper for the Twitter API. Supports both normal and streaming Twitter APIs” Probably more up to date than whatever I was using before. For future reference.
-
How best to store local copies of third-party Django applications and python modules? : django
I asked this on /r/django - anyone reading this have any thoughts?
-
straup/tiny-letter-tools
Of course Aaron has made a handy (python command line) tool for making an RSS feed out of a Tiny Letter archive page.
-
Isso – a commenting server similar to Disqus
Open source, self-hosted commenting system. Lovely idea, although my heart sank at the thought of installing a python web application. I can’t help thinking PHP would be more useful for people making otherwise-static web sites. (via Brett Terpstra)
-
jeffknupp/sandman · GitHub
Python thing that takes an existing database, creates a REST API for it, and provides you with a nice web admin interface. Handy. (via Infovore)
-
TextBlob: Simplified Text Processing — TextBlob 0.8.0 documentation
For breaking text down into parts.
-
What are the best resources ( sites or books or tutorials ) for learning programming ?
For future reference when someone asks this question, mainly for the first couple of answers.
-
Django 1.3 vs Rails 3: A not so final showdown - (think)
A couple of years old, but a pretty good comparison (from a limited field).
-
Testing and Django by Carl Meyer — Marc’s PyCon 2012 Notes 1.0 documentation
Good, useful, notes on a presentation about testing in Django. (Actually, go up to all of Marc’s PyCon 2012 notes for loads more good stuff.)
-
Sycorax: Bring Fictional Characters to Life on Twitter
“Sycorax is a Twitter client, written in Python, that choreographs the online behavior of fictional characters.” Very nice. Introduces slight randomness, characters interacting, etc. (via Infovore)
-
Pinboard/Fandom OTP - Renaming tags
A way to rename any/all of your tags on Pinboard using Python. (via @pinboard)
-
Scripting Languages: PHP, Perl, Python, Ruby - Hyperpolyglot
Handy comparison of features of Perl, PHP, Python and Ruby, for when my brain has trouble switching. (via Kottke)
-
Html2text: THE ASCIINATOR (aka html2txt)
Turns a web page into Markdown-formatted ASCII. (via Preoccupations)
-
Pattern, a Python module for mining web data
Lovely looking module for grabbing data from a variety of web sources, analysing it, and displaying results in different ways. (via Waxy)
-
How do I force Python to be 32-bit on Snow Leopard and other 32-bit/64-bit questions - Stack Overflow
The post from “cogg” about virtualenv saved my sanity. Thanks cogg.
-
The OS X Spatial Stack :: Drive-by Digressions
Looks very handy, if my OS X system wasn’t already a complete mess of historic and forgotten installs of various things.
-
Annotator | Open Knowledge Foundation
Looks good. jQuery and python (or other backend) for annotating HTML pages. (via Infovore)
-
Philgyford’s mytweets at master - GitHub
I updated Simon Willison’s “Script for saving a JSON archive of your tweets”, which Blech and others have added to since, to use OAuth.
-
Setting Up Twitter Bots with OAuth | maSnun’s logs
Least baffling description I’ve read. Phew. (via Infovore)
-
I have tried to be happy with django, I really have. : django
I’m finding this quite reasoned discussion about what’s good/bad about Django really interesting.
-
Charles leifer | Using virtualenv, pip and django-site-gen to quickly start new Django projects
Another article about setting up and managing Django projects.
-
Crowd-sourcing the office stereo, using Twitter and Spotify
Python script to enable sending Spotify URLs @ a Twitter account which then queue and play, and also scrobble to Last.fm.
-
Robhudson’s django-debug-toolbar at master - GitHub
Looks very handy for showing what’s happening under the hood on your Django pages.
-
Notes on using pip and virtualenv with Django « SaltyCrane Blog
A handy guide. What am I getting into…
-
Tools of Pro Django developer – aka What powers dinette and almost every app we write.
Some useful things to have a look into.
-
Duct Tape And Turing Machines » python-mysql under Snow Leopard
Might need this soon.