/r/pythoncoding
/r/Pythoncoding is a subreddit for advanced Python content. Developers can share articles and news about the Python ecosystem, deep dives into Python intricacies, or showcase advanced projects they are working on.
This sub is currently being cleaned up. Please help by reporting unsuitable content!
/r/PythonCoding a subreddit for advanced Python content. Python developers can share articles and discuss things relevant to the Python programming language, while avoiding chaff like tutorials, courses, books, and blog spam.
In turn, this subreddit has a strict moderation policy for submissions.
For general or beginner content, see /r/Python or /r/LearnPython instead.
If you have an issue with the moderation policy, please send us a message
Don't post:
Full rules: Here
Other Python subreddits:
/r/django
/r/learnpython
/r/madeinpython
/r/python
/r/pythontips
Other related subreddits:
/r/pythoncoding
Share what you're working on in this thread. What's the end goal, what are design decisions you've made and how are things working out? Discussing trade-offs or other kinds of reflection are encouraged!
If you include code, we'll be more lenient with moderation in this thread: feel free to ask for help, reviews or other types of input that normally are not allowed.
Share what you're working on in this thread. What's the end goal, what are design decisions you've made and how are things working out? Discussing trade-offs or other kinds of reflection are encouraged!
If you include code, we'll be more lenient with moderation in this thread: feel free to ask for help, reviews or other types of input that normally are not allowed.
We often encounter awful code in our working lives, but have you encountered code that you thought was really high quality?
My slightly odd choice is the impacket library which makes a concerted effort make Windows network protocols Pythonic: https://github.com/fortra/impacket
What's your shining example of high quality Python code?
Hello all,
I'm creating a project for university about machine learning and finding correlations between different mobile phones and their architectures, features and abilities.
I am currently focusing on samsung as a start, later on I'll add all Android and Ios available to reach out to and gather information about.
I took the data out of GSMArena by RapidAPI paid custom-api.
I am searching for a real-time updating site / bot / api I could scrape or retrieve data from about phones and their specifications and properties etc.. preferably free.
I took a look on twitter, telegram, google and chatGPT but could not find anything reliable, free and up-to-date (but to GSM which currently doesn't hold a free API)
I am sure people from gaming, cyber and networks companies would be able to give me good resources to relay on which are up-to-date and constantly updating in order to make this project a blast.
​
Thanks for the recommendations and help :)
Share what you're working on in this thread. What's the end goal, what are design decisions you've made and how are things working out? Discussing trade-offs or other kinds of reflection are encouraged!
If you include code, we'll be more lenient with moderation in this thread: feel free to ask for help, reviews or other types of input that normally are not allowed.
Measures I take to make sure my code isn't shit :-
But this isn't always enough to write good code and I don't have anyone to review my code. What other measures can I take to make sure my code isn't shit?
Stack exchange has a code review page but it is notorious for deleting posts and not being very friendly to newbies so I'm not sure as to how to proceed? (P.S I don't know how to use a debugger and don't know how to write test cases yet)
Hello,
I wanna implement a configurationpage with Flask so I can configure specific LED effects. What i wanna do is writing specific effects-methods in different files and the methods will be loaded to the mainpage. So I dont need to manually add new methods and an new if..else. I saw this on DiscordJS which implements the command handler pattern. I read somethinge about command pattern in python but it seems to that is more difficult to implement than in javascript. How would you implement this or does someone know a good tutorial about this task?
List comprehension is a super handy technique in Python that allows you to create lists more concisely and elegantly.
Here's a detailed video on list comprehension👇👇👇
Video: https://youtu.be/a3eE5kslhek
Hello everyone, I am looking for a python library that allows to fetch data from sports like football, NBA, crickets etc in real-time. I actually need only result. If I can get more stats, better. Thank you all!
As title says, I am working on a task to extract the contents of tables from a PDF. I am able to extract all of the text from the PDF using Fitz, which includes the headers and data from the table. The issue arises when I try to build some logic or pipeline to extract the table data from the text as there is no semantics or metadata denoting the difference between text & table.
Has anyone encountered this task before?
Things i’ve tried: OCR - Tabletransformer GPT4 - Actually performed quite well but not 100% reliable Rules based logic - pdfs reference tables differently or not at all.
Edit: SOLVED, tried 4/5 packages and found pdfplumber to be the best at extracting the table in a structured format. The flexibility of the extraction function is very useful too.