python

Python and Ruby Development Tools: A Quick Reference

Python and Ruby Development Tools: A Quick Reference

Purpose Python Tool Ruby Tool Use Case Python Installation Method Ruby Installation Method Package Manager pip gem Installing packages pip install <package> gem install <gem_name> Dependency Management pipenv, poetry bundler Managing dependencies pip install pipenv / pip install poetry bundle install Environment venv, Conda rbenv, RVM, chruby Isolating project environments python -m venv <env_name> / conda create -n <env_name> rbenv install <version> / rvm install <version> Version Management pyenv, Conda rbenv, RVM, chruby Managing Python/Ruby versions pyenv install <version> / conda install python=<version> rbenv install <version> / rvm install <version> Combined (Version + Environment) pyenv-virtualenv RVM Version + env management…
Read More
First fully multi-GPU supporting and very advanced batch image captioner APP with Gradio interface published

First fully multi-GPU supporting and very advanced batch image captioner APP with Gradio interface published

Multi-GPU batch caption with JoyCaption. JoyCaption uses Meta-Llama-3.1–8B and google/siglip-so400m-patch14–384 and a fine tuned image captioning neural network. Link : https://www.patreon.com/posts/110613301 Link for batch caption editor : https://www.patreon.com/posts/108992085 Coding multi-gpu in Python and Torch and bitsandbytes was truly a challange. Our APP uses JoyCaption image captioning fine tuned model. Our APP supports bitsandbytes 4bit model loading as well even in multi GPU mode (9.5 GB VRAM) Tested on 8x RTX A6000 (cloud) and RTX 3090 TI + RTX 3060 (my PC) 1-click to install on Windows, RunPod and Massed Compute Excellent caption quality, automatically distributes images into each GPU, lots…
Read More
PgQueuer: Transform Your PostgreSQL into a Powerful Job Queue

PgQueuer: Transform Your PostgreSQL into a Powerful Job Queue

Introducing PgQueuer: Efficient Job Queuing with PostgreSQL Hello Dev.to community! I’m excited to share a project that I believe can significantly streamline how developers handle job queues when working with PostgreSQL databases. Meet PgQueuer, a Python library crafted to utilize PostgreSQL’s robust features for efficient job management. Let’s dive into what makes PgQueuer not just another queuing solution. What is PgQueuer? PgQueuer is a lean Python library designed specifically to manage job queues using PostgreSQL. By leveraging PostgreSQL's native LISTEN/NOTIFY capabilities and advanced locking mechanisms, PgQueuer facilitates real-time job processing, high concurrency, and reliable task execution. This is all achieved…
Read More
Machine Learning in Python Using Scikit-Learn: A Beginner’s Guide

Machine Learning in Python Using Scikit-Learn: A Beginner’s Guide

Are you interested in learning about machine learning using Python? Look no further than the Scikit-Learn library! This popular python library is designed for efficient data mining, analysis, and model building. In this guide, we will introduce you to the basics of Scikit-Learn and how you can start using it for your machine learning projects. What is Scikit-Learn?Scikit-Learn is a powerful and easy-to-use tool for data mining and analysis. It is built on top of other popular libraries like NumPy, SciPy, and Matplotlib. It is open-source and has a commercially available BSD license, making it accessible for anyone to use.…
Read More
Creating and Managing Tasks with Asyncio

Creating and Managing Tasks with Asyncio

Asyncio allows developers to write asynchronous programs in Python without hassle. The module also provides many ways asynchronous tasks and with the multitude of ways to do it, it can become confusing on which one to use. In this article, we will discuss the many ways you can create and manage tasks with asyncio. What is an asyncio task? In asyncio, a task is an object that wraps a coroutine and schedules it to run within the event loop. Simply put, a task is a way to run a coroutine concurrently with other tasks. Once a task is created, the…
Read More
Understanding Your Data: The Essentials of Exploratory Data Analysis.

Understanding Your Data: The Essentials of Exploratory Data Analysis.

What is EDA(Exploratory Data Analysis)? It refers to the critical process of performing initial investigations on data so as to discover patterns,to spot anomalies,to test hypothesis and to check assumptions with the help of summary statistics and graphical representations. EDA makes it easier for data scientists to find patterns, identify anomalies, test hypotheses, and verify assumptions by assisting in the best way to alter data sources to achieve the answers they require. EDA offers a better knowledge of data set variables and the interactions between them and is mainly used to examine what data might disclose beyond the formal modelling…
Read More
Python Packaging is Great Now: `uv` is all you need

Python Packaging is Great Now: `uv` is all you need

The title of this post is a reference to Glyph's Python Packaging is Good Now. I think it's safe to say that, in these 8 years, we've gone from "Good" to "Great". Keep reading for my reasoning. What makes Python packaging hard for beginners? I contend that the two main difficulties for Python packaging are Bootstrapping, i.e. how to even get started! Activation, i.e. how venvs in Python work (see my Mastodon thread it's just so difficult to explain!) Bootstrapping was an often neglected problem. Should we tell people to install Python from https://python.org? The Anaconda distribution? How do we…
Read More
July 8, 2024 Python Meet & Greet – Part 2

July 8, 2024 Python Meet & Greet – Part 2

This is a series of Python learning blog from parottosalna community by kaniyam foundation This blog is based on this video "Python Meet & Greet - Part 2 | Parotta Salna" - Day 1 of Python learning Introduction class To watch the full series check this youtube playlist Objectives Introduction to Python Program About Linux user groups and their activites in Tamilnadu Contact numbers and links Forum questions asking methods Today Tasks Linux groups and meetups in tamilnadu Kanchi linux user group FSHM - Pondicheery Chennaipy - Chennai Monthly meetup having Mailing list To get updates for the linux meetups…
Read More
Building a Personalized Gift Assistant using Lyzr SDK

Building a Personalized Gift Assistant using Lyzr SDK

Finding the perfect gift can be challenging, especially when considering the recipient’s unique interests, the occasion, and your budget. The Personalized Gift Assistant app is here to make this process easier and more enjoyable. Leveraging the power of Lyzr Automata and OpenAI’s GPT-4 Turbo, this app helps you curate personalized gift recommendations that are sure to delight any recipient. Setting Up the Environment First, let’s import the necessary libraries and set up our environment. import streamlit as st from lyzr_automata.ai_models.openai import OpenAIModel from lyzr_automata import Agent, Task from lyzr_automata.pipelines.linear_sync_pipeline import LinearSyncPipeline from PIL import Image from lyzr_automata.tasks.task_literals import InputType, OutputType…
Read More
Function Decorators in Python

Function Decorators in Python

Writing dry code is important. DRY is a handy acronym meaning Don't Repeat Yourself. Dry code is more legible and easily understood by others, making you a better developer! Dry code avoids boilerplate code, which is code that is written again and again without much change. Decorators are a powerful resource for developers wanting to write dry code in Python. A decorator is a way to package code into a reusable function. They can be used before functions, classes, or methods. In this post, we'll be covering function decorators. A decorator is a function that takes another function as an…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.