Natural-Intelligence

u/Natural-Intelligence


r/Python•

Hi all!

I'm creating a library + service to create Python web apps and I'm looking for some feedback and ideas. This is still in alpha so if something breaks, sorry!

What my project does?

Create Python web apps:

  • with 0 config
  • with interactive UI
  • using real-time websockets

Core features:

  • Run anywhere: on a laptop, a Raspberry Pi or a server
  • Pure Python: No Vue/React needed
  • Full control on what to show, when and who

Demo

Pip install miniappi and run this code:

from miniappi import App, content

app = App()

@app.on_open()
async def new_user():
    # This runs when a user joins
    # We will show them
04

r/tifu•

This happened 2 years ago during pandemic and I thought it's actually a funny story to share.

A bit of context. I work in the headquarters of a mid-size bank and during the pandemic I was working 100% from home. And to the day of the fuck-up: I just had some days off and as I was starting my day of work I realized my password had expired during my holidays. I couldn't change it from home anymore and I needed to connect my laptop to our internal network. I texted my boss what to do as I was not allowed to go to the office either. He said I could try to go to a physical location of ours with my laptop and see if I could log in to the network from there, and then change the password. We had a

52

r/dataengineering•

Hi all!

I'm the developer behind Rocketry, a Pythonic scheduling engine. I originally developed it for other needs than data engineering but as some have said they have started to replace Airflow with it, I thought perhaps some of you might like it as well. I'm also interested in your opinions.

A bit about the framework, it is quite minimal:

from rocketry import Rocketry
from rocketry.conds import daily

app = Rocketry()

@app.task(daily.at("10:00"))
def do_daily():
    ... # This function runs once a day at 10 AM

if __name__ == "__main__":
    app.run()

It has bunch of features: logical scheduling syntax,

127

r/Python•

Hi all!

It's the creator of Rocketry, Red Mail and Red Box again. This week I thought to make it easier to integrate command-line programs to your Python applications.

I came up with Scriptor:

>>> from scriptor import Program
>>> python = Program("python3")
>>> python('myscript.py', report_date="2022-11-12")
"printed values"

What happened? The above ran the command:

python3 myscript.py --report_date 2022-11-12

and it returned whatever the program printed (in standard output aka. stdout).

So S

2910

r/Python•

Hi all!

Some of you might know my other project, Red Mail, advanced email sender. This time I have quite a similar library to show, I just released a sister library for it: Red Box, the advanced email reader.

Working with imaplib is quite a pain and I have not found any satisfying libraries on PyPI for the problem. So I thought I'll solve this problem for us all as well. It turns out it only took a weekend.

So what it has:

  • Intuitive email search
  • Intuitive email manipulation
  • Intuitive mailbox manipulation (partially done)

Example

Here is an example of what Red Box looks like:

from redbox import Em
3410