My experience with Java, Groovy, Grails, Python and more.
  • Home

Python

A collection of 5 posts

Python

Delete GIT tags from local and remote branch

Problem statement: Recently at work we have been playing around with the concept of automated builds and one build (master build) kicking off builds for multiple projects. The master build that kicked off

  • Ravi Hasija
    Ravi Hasija
1 min read
Python

Automating Github releases via Jenkins

Recently at work we were discussing releasing internal python artifacts to Github. Github has the concept of releases[1]. Releases are a workflow for shipping software to end users. Releases are first-class objects

  • Ravi Hasija
    Ravi Hasija
2 min read
Python

PIP install module from custom PyPi server

Once you have your packages installed to your custom pypi server, you can have your pip refer to it like so: a. If you use requirements.txt to install your module: Sample requirements.

  • Ravi Hasija
    Ravi Hasija
1 min read
Python

Bottle after_request hook does not provide correct status_code

Issue: I have a Bottle application where I raise HTTPResponse in case of an error. Simplified version of the code provided below: Now, when I hit the URL: http://localhost:8080/error I

  • Ravi Hasija
    Ravi Hasija
1 min read
Python

How to display thread id in python logs

You can automatically add thread ids to your log statements using Python's logging module with LogRecord. LogRecord provides 2 attributes for thread related information: threadName and thread. %(thread)d : Thread ID (if available)

  • Ravi Hasija
    Ravi Hasija
1 min read
My experience with Java, Groovy, Grails, Python and more. © 2025
Latest Posts Ghost