/r/pythoncoding

Photograph via snooOG

/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.

Notice:

This sub is currently being cleaned up. Please help by reporting unsuitable content!


Info:

/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


Do Post:
  • Talks
  • Presentations
  • Conferences
  • Articles
  • Research
  • Discussion of PEPs
  • Noteworthy projects
  • Interesting uses of Python

Don't post:

  • Basic tutorials
  • Basic projects
  • Requests for help understanding code
  • Requests for learning resources
  • Asking for feedback on pieces of code
  • Jokes and memes
  • Articles unrelated to Python
  • Anything you sell

Full rules: Here


Other Python subreddits:

/r/django
/r/learnpython
/r/madeinpython
/r/python
/r/pythontips

Other related subreddits:

/r/adventofcode
/r/dailyprogrammer

/r/pythoncoding

33,434 Subscribers

1

Frame - A DSL for Automata

0 Comments
2024/05/09
04:21 UTC

1

/r/PythonCoding monthly "What are you working on?" thread

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.

0 Comments
2024/05/04
00:00 UTC

2

ffmpeg takes too long on mac

1 Comment
2024/04/30
07:26 UTC

3

Achieve true parallelism in Python 3.12

0 Comments
2024/04/21
10:13 UTC

2

I implemented the Seam Carving algorithm for fun! So, I decided to create a video explaining the magic behind this image processing technique 🪄

0 Comments
2024/04/12
13:14 UTC

1

Pywayang - Apache Wayang's Python API

0 Comments
2024/04/09
08:34 UTC

1

/r/PythonCoding monthly "What are you working on?" thread

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.

4 Comments
2024/04/04
00:00 UTC

1

What's your favourite open source repo in terms of high quality Python code?

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?

5 Comments
2024/03/28
13:39 UTC

25

I made a tool to build / setup / host minecraft servers for free!

1 Comment
2024/03/23
00:18 UTC

3

Searching for a good rest-api to retrieve data from

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 :)

1 Comment
2024/03/17
20:42 UTC

4

/r/PythonCoding monthly "What are you working on?" thread

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.

7 Comments
2024/03/04
00:00 UTC

6

Creating and sharing data between Python Threads using data structures like queue, locks & events

2 Comments
2024/02/27
10:11 UTC

10

[Newbie] How do I know my code isn't garbage

Measures I take to make sure my code isn't shit :-

  • it works as intended
  • readable , documented
  • I use classes and functions for reusability
  • Use ext/standard libs instead of reinventing the wheel whenever possible

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)

25 Comments
2024/02/23
00:43 UTC

2

Command pattern

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?

4 Comments
2024/02/21
10:27 UTC

1

Hello, im doing a project with openscad and solidpython to automate creation of keychains

0 Comments
2024/02/19
08:31 UTC

2

[Video]List Comprehension in Python - What and How to use it with examples

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

1 Comment
2024/02/17
17:28 UTC

1

Any working library to get sports real-time data on Python?

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!

1 Comment
2024/02/09
19:40 UTC

7

Extracting structured tables from PDF

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.

4 Comments
2024/02/09
15:46 UTC

Back To Top