• PyByte
  • Posts
  • The framework I use for improving my relationships

The framework I use for improving my relationships

PyByte 0.4

from PyByte import whats_new, trick_of_the_week, get_inspired, fun_or_funny

# Welcome to the PyByte!

šŸ‘‹ Hey, and thanks for joining PyByte, a quick way to inject Python & inspiration into your week!

whats_new()

Not to be outdone by Excel, you can now write Python inside your Google Sheets!

While it’s not officially supported (c’mon Google!), you can now run Python in Sheets thanks to a plug-in from Neptyne.

As someone who uses Sheets more than Excel (because it’s what my company has) I’m thrilled.

Check out how to install and use it in the article below:

trick_of_the_week()

Imagine spending hours, day after day, clicking through the same sequence of buttons, navigating tedious dropdowns, and inputting the same data across multiple programs….

Bored Monsters Inc GIF

What if the software you're working with doesn't have a native Python library for automation?

Do you resign yourself to misery?

Or do you learn Robotic Process Automation, also known as GUI automation?

RPA programs automate tasks on your computer by sending virtual keystrokes and mouse clicks to applications, as if you were interacting with them yourself.

Implementing this into your workflow is powerful because you don’t need a specific library to control every aspect of your computer.

One program to rule them all.

To get started, install pynput with

pip install pynput

Now import your keyboard and mouse controllers.

from pynput.keyboard import Key, Controller as KeyboardController
from pynput.mouse import Button, Controller as MouseController

keyboard = KeyboardController()
mouse = MouseController()

We can use the keyboard to type entire sentences…

keyboard.type('Hello world')

Or press individual keys (even combining them!)

with keyboard.pressed(Key.shift):
    keyboard.press('a')
    keyboard.release('a')

The mouse controller is super helpful for moving your mouse around…

mouse.move(150,-100)

And of course doing what it does best. Clicking!

mouse.click(Button.left)

Use this knowledge wisely šŸ˜‰ 

get_inspired()

I read this quote this week and literally stopped in my tracks because of how true it is.

ā

Your relationships will rarely be healthier than your self-esteem.

James Clear

This idea of relationships and how we view ourselves also ties in with something Alex Hormozi once said about humility.

ā

Humility does not come from lowering your regard for yourself, but increasing your regard for others.

Alex Hormozi

You can only pull people up to your level, and the only way to do this is if you are ahead of them. Otherwise, you’re dragging them down.

Do the work on yourself first, earn your own respect, and you’ll be a positive influence on everyone around you.

fun_or_funny()

Apparently ChatGPT is having a hard time spelling the word Canada.

So of course I tried it for myself.

It’s an interesting mistake, and I’ll add it to my list of things it struggles with: 1) math and 2) spelling.

Does this mean I’ll stop using it every single day?

Absolutely not šŸ˜‰ 

See you next week šŸ‘‹

Joel