code.Antrikshy | Notes, tinkerings, experiments

Python Single-File Script Project Structure And Distribution Through PyPI/pip For Noobs


Python may be known for its ease of use, but making my pet projects available through the simple pip install petprojectinator command has been a whole different experience. The Python Package Index (PyPI) feels like an antiquated repo with longwinded documentation for developers who want to contribute.

This hasn’t changed all that much, but lately, a new pypi.io site has been in development, and with it, some of the barriers to entry has been removed from the upload process.

This post is intended to be a quick guide for organizing a tiny Python project (not much more than one script) for distribution via PyPI/pip and the new, simpler upload process.

Read more »

A Quickstart Guide To Implementing User Configuration In Your Pebble Watchapp


I recently decided to try my hand at Pebble development in C, with a native watchface. Documentation about accepting user configuration is a bit messy. This is because there is a lot of overlap between user configuration and watch-to-phone communication in general. Even after reading through it all, I needed external help and there were few resources that laid everything out in an easily digestible way.

So I decided to summarize all the components that you need to set up to allow for user configuration in a native Pebble watchapp or watchface, written in C. I really hope this helps someone out there visualize the flow better.

Read more »

Make Your Raspberry Pi Accessible Over The Web - An Arch Linux Guide


After struggling to find a good use for my Raspberry Pi for years, I finally decided to get into hardware projects. I figured I’d set up a fresh installation of Arch Linux on it to learn that as well. Two birds, one stone.

My first goal was to hook up a DHT22 temperature and humidity sensor, connect it to the Pi and somehow make its data accessible over the web. This guide will walk you through that second part.

You don’t have to be setting up any hardware to follow this guide. Even if you just want to be able to SSH into your Pi from anywhere consistently and reliably, this guide is exactly what you are looking for. None of this is really specific to the Pi. You can follow it to set up any computer running Linux.

Read more »