this post was submitted on 12 Jun 2023
16 points (100.0% liked)

Python

1921 readers
1 users here now

A community for talking about the Python programming language.

founded 1 year ago
MODERATORS
 

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

all 39 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 1 year ago (1 children)

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

[–] [email protected] 1 points 1 year ago

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

[–] [email protected] 4 points 1 year ago (1 children)

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

[–] [email protected] 1 points 1 year ago (1 children)

What's the cost for chatgpt's API? I'd love to make my own chatgpt bot

[–] [email protected] 2 points 1 year ago

Very low if you're just using it yourself and if you're just chatting with it. You're charged per token (roughly a word). They just decreased the prices a bit as well. I haven't paid more than like $5 in a month, usually less than $2. If you use things like autogpt and whatnot that automate and repeatedly call chatgpt, you can use up a lot of tokens though.

[–] [email protected] 3 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.

[–] [email protected] 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.

[–] [email protected] 3 points 1 year ago (1 children)

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.

[–] [email protected] 1 points 1 year ago

ah yes, i have been trying to configure my crons and supervisord the right way and its such a pain in the butt. I would be EXTREMELY interested in trying/using it out. Also if you need any help let me know : )

[–] [email protected] 2 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.

[–] [email protected] 2 points 1 year ago (2 children)

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

[–] [email protected] 2 points 1 year ago (1 children)

Is it gonna whip the llama's ass?

[–] [email protected] 3 points 1 year ago (1 children)

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

[–] [email protected] 3 points 1 year ago

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

[–] [email protected] 1 points 1 year ago

Dang, I had an idea much like this but kept getting turned off by the GUI design and lost interest. I would be very interested in this if you're ever up for sharing it.

[–] [email protected] 2 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.

[–] [email protected] 2 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.

[–] [email protected] 2 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.

[–] [email protected] 2 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.

[–] [email protected] 2 points 1 year ago (1 children)

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.

[–] [email protected] 4 points 1 year ago (1 children)

I'm not even a dev

Said every developer

[–] [email protected] 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.

[–] [email protected] 1 points 1 year ago

Currently extracting data visualizations for Tournesol project (project aiming to evaluate youtube videos by the community, giving his data open (when user allows it))

[–] [email protected] 1 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.

[–] [email protected] 1 points 1 year ago

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

[–] [email protected] 1 points 1 year ago

I made a script using flask to generate an Opening and a Closing report based on stuff i did through chatgpt, then if i like it i can send it to our slack channel with one click. I am a very introverted person and hate communicating lol.

On the main "script" i have lots of microservices, including an overview of my stocks (gain,price, and return in euros instead of dollars) and a location updater for people at work since again i hate talking to people and they can see what i am up to.

[–] [email protected] 1 points 1 year ago

I'm working in a personal project to create a Nitter scrapper now that twitter free api is very limited.

[–] [email protected] 0 points 1 year ago (1 children)

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.

[–] [email protected] 0 points 1 year ago (1 children)

This is really cool! Do you have you code on github? How are you handling pictures? I noticed that the way obsidian and hugo do it are different (obsidian adds it in the same working folder while hugo has a specific folder to store images)

[–] [email protected] 0 points 1 year ago (1 children)

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

[–] [email protected] 1 points 1 year ago (1 children)

I'd be interested in the github repo. I don't even know where to start with algo trading. I know there were some specific subreddits dedicated to it, but understanding the best strategy would be cool. Would be interesting to dissect what you're doing.

Have you used it in a live environment?

[–] [email protected] 2 points 1 year ago (1 children)

Yes, I've used it live. I ended up coming to the conclusion that Binance was rigged and that they were forward trading me.

If you want to learn a bit about algo-trading, a good place to start is John Ehler's books. Caveat: You'll need to have a decent foundation of maths under your belt, or be prepared to learn it.

There are a few repo's that are more mature than mine. Jesse and SuperAlgos spring to mind. Also, peruse https://github.com/topics/trading-algorithms

I'm in the process of documenting mine, and cleaning up the code so that it's more generic and neat. It's at https://github.com/noenfugler/algo-weaver

[–] [email protected] 1 points 1 year ago

Thanks I'll look into it.

[–] [email protected] 0 points 1 year ago (1 children)

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.

[–] [email protected] 0 points 1 year ago (1 children)

How did you get into that? Are you freelance?

[–] [email protected] 1 points 1 year ago

Nah, been at the company over a decade. Started as tech support, worked myself up to server/database admin, and slowly automated my work away :P