50
submitted 1 year ago* (last edited 1 year ago) by TheDude@sh.itjust.works to c/python@sh.itjust.works

With r/python out for the next 48 hours, here’s a post to promote continuing discussion a language we all love. Python.

top 50 comments
sorted by: hot top controversial new old
[-] neomis@sh.itjust.works 9 points 1 year ago* (last edited 1 year ago)

Switched jobs recently. So I'm building templates before I get bogged down. I took the opportunity to switch to poetry and pyproject.toml instead of setup.py which I'm liking. I got my file loader ETL template complete. Right now I'm trying to get a fastapi webbackend template. I'm used to nodejs & express for this and I'm finding fastapi is pretty similar. I got oauth2 working with the companies LDAP but right now I'm struggling to find good documentation for jwt with refresh tokens.

[-] notroot 9 points 1 year ago

Lots and lots at work...

But my only real side project right now is a scheduler and supervisor... "If cron and supervisord had a super-powered love child".

I'm very close to releasing v1 so I'm not gonna jinx it by revealing too much, but it's already in production use by two companies, one of which is enterprise-level, using it to process MASSIVE data somewhere in the entertainment industry... and yes, it's gonna be FOSS, with MIT license.

It emphasizes a declarative approach to reproducing clusters of orchestrated job-runners on low-cost cloud infrastructure. Makes it easy to scale and even map-reduce.

Includes 3 interfaces: CLI (for everything), API (for most things), and UI (for most things).

It's gonna be sick heheh. I'll be sure to come back here once you can pip install it.

load more comments (1 replies)
[-] x2Zero7@sh.itjust.works 8 points 1 year ago

I've been making a simple 8-bit game with the pygamer board from adafruit/digikey and CircuitPython. It's incredible to be able to run python on microcontrollers and it's a really simple workflow, though customizing your environment can be a little difficult when working on a constrained platform.

[-] zeldis@sh.itjust.works 8 points 1 year ago

I've been working on a telegram bot that lets me talk to ChatGPT

load more comments (3 replies)
[-] jo1gi@lemmy.fmhy.ml 8 points 1 year ago

I'm currently working on two book downloaders, one for audiobooks and one for ebooks.

[-] thiccdiccnicc@sh.itjust.works 4 points 1 year ago

Wicked, I'm gonna try it out! Just now restoring my old nook

[-] kakes@sh.itjust.works 7 points 1 year ago

I've been having fun making Discord bots that use ChatGPT to generate various things. Stuff like giving tarot readings, creating custom MtG cards and whatnot. Nothing too crazy, but it's been fun to play around with.

[-] brian@sh.itjust.works 3 points 1 year ago

What wrapper are you using for your bot? I dabbled with discord.py for a while, but the slash-command drama sorta killed my motivation.

load more comments (2 replies)
load more comments (2 replies)
[-] frostprophet@infosec.pub 6 points 1 year ago

I'm doing a python introduction course, I've made a hangman game and caeser cypher builder so far. It's just started getting into dictionaries so it would probably have something to do with that

load more comments (1 replies)
[-] izzel@lemmy.world 6 points 1 year ago

A desktop music player. My goal is for it to work with all kinds of sources like youtube, spotify, and soundcloud.

[-] clay_pidgin@sh.itjust.works 5 points 1 year ago

Is it gonna whip the llama's ass?

[-] izzel@lemmy.world 4 points 1 year ago

TIL. Yes, it will be whipping the llama's ass.

[-] clay_pidgin@sh.itjust.works 3 points 1 year ago

Sweet. I'd be down to test it when it's nearing readiness.

load more comments (1 replies)
[-] 0jcis@sh.itjust.works 6 points 1 year ago

I’m building a back-end for my website without a framework.

[-] Googleproof@sh.itjust.works 4 points 1 year ago

Out of interest, why are you avoiding using a framework? I use Django literally every day for web dev, so I'm curious as to what your site requirements are like.

[-] 0jcis@sh.itjust.works 3 points 1 year ago

I tried Django at the beginning, it is very nice and I will most likely use it if I need to build a professional website, I wanted to understand and learn better how it all works and for my personal not serious website it was a perfect opportunity, so I started messing around and testing without a framework. Coding my own back-end is very fun for me and I’m learning a ton this way. Currently I am making an authentication system where if a client is not authenticated, it will get redirected to a login page where a code is displayed and a user has to send that code to my server’s whatsapp. Once the server validates the matching code from whatsapp, it will authorise the client and redirect back to the original requested page. This system will be perfect for me and my friends to access my website!

[-] Googleproof@sh.itjust.works 3 points 1 year ago

Ah, cool, that makes good sense. Yeah, it'll be a good learning process, as Django does handle so many of those things basically like magic and you never really need to learn what's going on under the hood. Good luck!

[-] 0jcis@sh.itjust.works 2 points 1 year ago
[-] zeldis@sh.itjust.works 3 points 1 year ago
[-] 0jcis@sh.itjust.works 2 points 1 year ago* (last edited 1 year ago)

Python of course! I am using hypercorn ASGI server, it supports HTTPS/3.

[-] zeldis@sh.itjust.works 3 points 1 year ago

Oh of course lol, I didn't even realize where I was. And right on, sounds like a fun experience. I haven't messed with async python too much myself but it seems like a powerful way to run a webserver

[-] 0jcis@sh.itjust.works 3 points 1 year ago

Yes! Coding it is a blast! I started it just to better understand how all the HTTP communications work and I love customising my own personalised back-end, implementing new features and improving. I’m so hooked I can’t even sleep at nights, thinking about it.

[-] Michelle@sh.itjust.works 5 points 1 year ago

I've made a small python script to copy over blog posts I write from Obsidian to Hugo, and change the hyperlinks from the markdown format to the Hugo format.

I really love working on small projects in python, such a great language.

load more comments (4 replies)
[-] bngo@sh.itjust.works 5 points 1 year ago

I've been using scanpy in my biomedical engineering research! Basically allows me to analyze the RNA expressed in single cells and see things like what functional phenotype these cells can be, how they have developed, in addition to spatial information on their arrangement.

[-] TheDude@sh.itjust.works 5 points 1 year ago

Throughout my IT career when it came to troubleshooting mail delivery problems I typically always started with this website over the years some of the servers stopped working for me which lead me to start looking to create something similar but with python (and potentially incorporate it pyscript). I've only gotten about 25% done and now always I don't seem to have as much time to wire in and continue working on it but eventually I'm hoping to get something like this going again and potentially host it for the world to use.

[-] Barbarian@sh.itjust.works 4 points 1 year ago

I write a lot of Python code for work. Mainly small utility scripts to link different APIs together, or trigger something to happen via API when a database table entry has certain columns with certain values.

Not terribly complex work, but it pays well and takes very little time.

load more comments (2 replies)
[-] Bluetreefrog@lemmy.world 4 points 1 year ago

An algorithmic trading platform. Let me know if anyone wants a link to the Github repo.

load more comments (5 replies)
[-] dirtyrig 4 points 1 year ago

I am scheduled to present at Python Frederick in August. It is a Practical Business Python styled talk showing the utility of automating complex reporting with Jinja2 and docx templates. This annual report is a real world example using Jinja2.

[-] magmaus3@szmer.info 3 points 1 year ago* (last edited 1 year ago)

not exactly working on (it's mostly complete), but I made an online level browser for I Wanna Maker game.

[-] true_blue@sh.itjust.works 3 points 1 year ago

I haven't decided if I'll actually go through with it, but as a learning experience, I've been thinking about making little rewrites of some command line utilities (and maybe some original ones if I get any ideas) that output NestedText, instead of normal unstructured text. NestedText looks like a really cool data format. It's basically exactly what I wished Yaml was, and the reference implementation is in Python so maybe it could be fun. Plus it'd give me a reason to try out the really cool looking Typer library.

[-] csm10495@sh.itjust.works 3 points 1 year ago

I just made a PR to fix an issue with yt-dlp where Chrome now locks its Cookies file while running.

Learned about a thing called "Shadow Copies". Basically Windows allows you to sort-of snapshot files in a volume even while in use.

[-] sugar_in_your_tea@sh.itjust.works 3 points 1 year ago* (last edited 1 year ago)

I use it at work doing work stuff, but I've been meaning to dig into pygame to make stuff with my kids. I might already try a QT app for desktop, IDK.

I mostly use it at home for one off scripts, so nothing really complex enough to discuss.

[-] Mohkia@lemmy.world 3 points 1 year ago* (last edited 1 year ago)

Hello all. I am new to lemmyband to python. I am currently just learning and have an interest in AI so figured it would be nice to understand some of programming behind it. I also just have always wanted to learn but fear of it won out until now. I am just doing the intro stuff but hopefully I can contribute more to the conversation in the future. For now I learn!

Edit: I deleted my prior post as I thought I was in the wrong thread. Woops. Sorry about thT.

[-] Sevryn@sh.itjust.works 3 points 1 year ago

I have a few projects going on but my main python project right now is training a somatic mutation filtering model for tumor-normal cancer pairs.

[-] clay_pidgin@sh.itjust.works 3 points 1 year ago

I'm rewriting a site of single-page tools from Flask to Django. I need user roles management as I plan to open the site up to customers/vendors. It's nothing fancy, mostly calling and processing other peoples' APIs. I'm not a SysAdmin at all, and the most basic AWS set up stuff is taking up way more of my time than I'd anticipated! lol.

One-man operation, so there's no DevOps to help or anything. I'm not even a dev, I just make tools to do what I need.

[-] dirtyrig 6 points 1 year ago

I'm not even a dev

Said every developer

[-] clay_pidgin@sh.itjust.works 3 points 1 year ago

I develop things, but I'm not paid specifically to do it or trained in it, is what I mean. Plus I'm bad at it.

Imposter syndrome is too real, though.

[-] Dogeek@sh.itjust.works 3 points 1 year ago

Currently working on a massive cookiecutter template to scaffold into all kinds of python projects, including ML, API/backend work, GUIs, python SDKs and such. The fun part is actually about configuring all of the dependencies and make it as modular as possible, giving the choice between poetry and pdm for the dependency management, black and yapf for the formatting, pyflakes, ruff and pylama for the linting etc.

[-] LimeScoot@sh.itjust.works 3 points 1 year ago

Currently working on the backend for an RSS news feed web app. It's been interesting building xml and html parsers to extract news article content.

[-] imperator@sh.itjust.works 2 points 1 year ago

For work I do a lot of ETL and data matching from multiple different sources (mostly text files extracted out of databases). St home built a library for the ebay api to pull significant others sales data so she can use it for taxes.

load more comments (4 replies)
[-] Mohkia@lemmy.world 2 points 1 year ago

Just doing the rounds as I'm nee to lemmy and finding groups to join. Decided to learn python just because so figured I'd jump in here and maybe learn something in the process. So hello all, perhaps after I learn a bit more I will be able to contribute more bit for now I am a wee beginner.

[-] Implant@sh.itjust.works 2 points 1 year ago

Personal static site generator. My aim with it is to double click a file and have everything ready to publish

load more comments
view more: next ›
this post was submitted on 12 Jun 2023
50 points (100.0% liked)

Python

1921 readers
1 users here now

A community for talking about the Python programming language.

founded 2 years ago
MODERATORS