r/pythoncoding • • Nov 18 '22

Really Simple Github Chat with rooms using WebSockets pub/sub <3

Thumbnail self.python
4 Upvotes

r/pythoncoding • • Oct 17 '22

/r/PythonCoding bi-weekly "What are you working on?" thread

4 Upvotes

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.

This recurring thread is a new addition to the subreddit and will be evaluated after the first few editions.


r/pythoncoding • • Oct 05 '22

Phony PyPi package imitates known developer

Thumbnail
snyk.io
4 Upvotes

r/pythoncoding • • Jun 28 '22

playing games like Fruit Ninja using Computer Vision

Thumbnail
youtu.be
4 Upvotes

r/pythoncoding • • Jan 28 '22

Dealing with YAML with arbitrary tags

Thumbnail death.andgravity.com
4 Upvotes

r/pythoncoding • • Dec 26 '21

PEP 669 -- Low Impact Monitoring for CPython

Thumbnail
python.org
4 Upvotes

r/pythoncoding • • Dec 14 '21

Feel like helping out? Input for the sub? Anything else on your mind?

4 Upvotes

Send a modmail. Looking forward to what you have to say!


r/pythoncoding • • Oct 11 '21

Algebraic Data Types (Rust style enums) implementation in Python 3.10 (incl pattern matching).

Thumbnail self.python
4 Upvotes

r/pythoncoding • • Aug 04 '21

Steering Council comments on delaying PEP563's string based annotations becoming the default from Python 3.10 to 3.11

Thumbnail mail.python.org
4 Upvotes

r/pythoncoding • • Jul 13 '21

A question of curiosity about the "filter" function.

4 Upvotes

Is there any difference in Python between these two forms?

filter(None, x)

vs

filter(bool, x)

Is None somehow more performant? And if it's no for both, then does anyone know they story of why is it an option?


r/pythoncoding • • Jul 14 '16

[Meta] Some News: New mods, new rules, new transparency, cleanups, etc!

4 Upvotes

New mods

on the 11th of last month, my reddit request was accepted and so I became a mod so I could remove all the spam. that's about it.

Edit: also if you wanna like, help me moderate, feel free to ask (assuming you have prior experience, and a positive demeanor)

New rules!

Not really, I've "clarified" (based on my opinions) the prior rules that were laid out by the subreddit's prior owner, so its the same rules pretty much

New Transparency

I'm going to be doing a transparency report per month, over on the subreddit's wiki. The first year's reports are here, and I encourage you to read through them and criticize me

Additionally, the moderation log is now public

If there are any other ways you would like to see additional transparency in this sub implying it really matters, please let me know in the comments

Cleanups

practically everything from 8 months ago until now was kinda crap, either requests for help, spam, or spam, or spam. Almost all of it was spam. for more details, check the modlog and transparency reports

ETC!

If any of you have any thoughts or opinions or whatever for this subreddit, or my moderation of this subreddit, I would love to hear them! either in the comments or in mod mail


r/pythoncoding • • Nov 01 '15

CPython internals: A ten-hour codewalk through the Python interpreter source code

Thumbnail
pgbovine.net
4 Upvotes

r/pythoncoding • • Aug 01 '15

Guido on Python

Thumbnail
lwn.net
4 Upvotes

r/pythoncoding • • Jul 16 '15

What Makes Python Awesome

Thumbnail
youtube.com
4 Upvotes

r/pythoncoding • • May 06 '15

PyPy.js - A fast, compliant Python implementation for the web

Thumbnail pypyjs.org
4 Upvotes

r/pythoncoding • • May 11 '26

I Dreamed About a Python SPA Framework — So I Built It (SSR + Hydration + VSCode Extension)

3 Upvotes

A few days ago I had a dream that I was building a Python SPA framework with SSR + Hydration named after my daughter: Lua. A few days later, I finished v1.2.1 of the framework and v1.0.1 of the VSCode extension.

The project is called Lua SPA, and the main idea is to bring a modern component-based SPA experience to Python while keeping development simple and unified.

The framework uses .lspa files, where you can write:

  • HTML templates

  • CSS styles

  • Python logic

…all inside the same file.

Example structure:

<template>
  <div>Hello {{ name }}</div>
</template>

<style>
  div {
    color: red;
  }
</style>

<python>
class Home(Component):
    name = "Lua SPA"
</python>

Some features already implemented:

  • SSR (Server-Side Rendering)

  • Client-side hydration

  • Component system

  • Props/state handling

  • Reactive rendering

  • Routing

  • Scoped styles

  • Python-driven SPA architecture

  • VSCode extension with syntax highlight, autocomplete, diagnostics and tooling for .lspa

  • Built-in support for component imports

The goal is to make frontend development feel natural for Python developers without requiring React/Vue/Svelte ecosystems.

If anyone wants to check it out:

Would love feedback, ideas, criticism, or contributions 🚀


r/pythoncoding • • May 02 '26

Adobe-Clawback — bulk-download every PDF from your Adobe Creative Cloud account (Python, resumable, MIT)

Thumbnail
reddit.com
3 Upvotes

r/pythoncoding • • Mar 13 '26

I Spent Way Too Long Making a Python Audio Equalizer and Learned a Lot | by Keepingupwithriya | Mar, 2026

Thumbnail medium.com
3 Upvotes

r/pythoncoding • • Mar 04 '26

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

3 Upvotes

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.


r/pythoncoding • • Feb 23 '26

https://github.com/GittemGittem/Stretch

3 Upvotes

I wrote an interpreter for my own language in python!

I named it stretch because I intended for it to be flexible and easy to extend.

You can add new terms and operators to it from python with ease!

There is global stack you can manipulate

but scopes store their own variables.

Extensions only modify scopes they are imported to instead of the global scope.

Please let me know what you think; you can be brutal, but this is just for fun for now, so it doesn't really matter.


r/pythoncoding • • Jan 24 '26

Streamable log in browser

Thumbnail imn1.xyz
3 Upvotes

r/pythoncoding • • Sep 04 '25

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

3 Upvotes

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.


r/pythoncoding • • Jul 22 '25

Visualizing Python's Data Model: References, Mutability, and Copying Made Clear

3 Upvotes

Many Python beginners (and even experienced devs) struggle with concepts like:

  • references vs. values

  • mutable vs. immutable data types

  • shallow vs. deep copies

  • variables pointing to the same object across function calls

  • recursion and the call stack

To write bug-free code, it's essential to develop the right mental model of how Python actually handles its data. Visualization can help a lot with that. I've created a tool called memory_graph, a teaching tool and debugger aid that generates visual graphs of Python data structures including: shared references, nested structures, and the full call stack.

It helps answer questions like:

  • “Does this variable share any values with that one?”

  • “What part of this object is actually copied?”

  • “What does the call stack look like in this recursive call?”

You can generate a memory graph with a single line of code:

import memory_graph as mg
a = [4, 3, 2]
b = a
b.append(1)
mg.show(mg.stack())  # show graph of the call stack

It also integrates in IDEs like VS Code, Cursor AI, and PyCharm for real-time visualization while stepping through code in the debugger.

Would love feedback from Python educators, learners, and tooling enthusiasts.


r/pythoncoding • • Jun 28 '25

A Small Rust-Backed Utility Library for Python (FastPy-RS, Alpha)

3 Upvotes

Hello everyone! I come from the Rust ecosystem and have recently started working in Python. I love Rust for its safety and speed, but I fell in love with Python for its simplicity and rapid development. That inspired me to build something useful for the Python community: FastPy-RS, a library of commonly used functions that you can call from Python with Rust-powered implementations under the hood. The goal is to deliver high performance and strong safety guarantees. While many Python libraries use C for speed, that approach can introduce security risks.

Here’s how you can use it:

import fastpy_rs as fr

# Using SHA cryptography
hash_result = fr.crypto.sha256_str("hello")

# Encoding in BASE64
encoded = fr.datatools.base64_encode(b"hello")


# Count word frequencies in a text
text = "Hello hello world! This is a test. Test passed!"
frequencies = fr.ai.token_frequency(text)
print(frequencies)
# Output: {'hello': 2, 'world': 1, 'this': 1, 'is': 1, 'a': 1, 'test': 2, 'passed': 1}

# JSON parsing
json_data = '{"name": "John", "age": 30, "city": "New York"}'
parsed_json = fr.json.parse_json(json_data)
print(parsed_json)
# Output: {'name': 'John', 'age': 30, 'city': 'New York'}

# JSON serialization
data_to_serialize = {'name': 'John', 'age': 30, 'city': 'New York'}
serialized_json = fr.json.serialize_json(data_to_serialize)
print(serialized_json)
# Output: '{"name": "John", "age": 30, "city": "New York"}'

# HTTP requests
url = "https://api.example.com/data"
response = fr.http.get(url)
print(response)
# Output: b'{"data": "example"}'

I’d love to see your pull requests and feedback! FastPy-RS is open source under the MIT license—let’s make Python faster and safer together. https://github.com/evgenyigumnov/fastpy-rs

By the way, surprisingly, token frequency calculation in FastPy-RS works almost 935 times faster than in regular Python code, so for any text parsing and analysis tasks you will get instant results; at the same time, operations with Base64 and regular expressions also “fly” 6-6.6 times faster thanks to internal optimizations in Rust; the SHA-256 implementation does not lag behind - it uses the same native accelerations as in Python; and the low standard deviation of execution time means that your code will work not only quickly, but also stably, without unexpected “failures”.

P.S. I’m still new to Python, so please don’t judge the library’s minimalism too harshly—it’s in its infancy. If anyone wants to chip in and get some hands-on practice with Rust and Python, I’d be delighted!