r/pythoncoding • • Aug 14 '25

How can I get the output of a matplotlib plot as an SVG? I need to take the output of a matplotlib plot and turn it into an SVG path

4 Upvotes

How can I get the output of a matplotlib plot as an SVG? I need to take the output of a matplotlib plot and turn it into an SVG path


r/pythoncoding • • Jul 08 '25

RealVision-ObjectUnderstandingAI: A powerful, real-time object detection and understanding application using Python, OpenCV, and state-of-the-art AI models. Features dual model support (YOLO v8 + MobileNet-SSD), object tracking, performance monitoring, and modern GUI interface.

Thumbnail
github.com
4 Upvotes

r/pythoncoding • • Jul 04 '25

/r/PythonCoding monthly "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.


r/pythoncoding • • May 12 '25

The PYgrammer - A Blog to Learn with Projects

Thumbnail
thepygrammer.blogspot.com
4 Upvotes

r/pythoncoding • • Jan 21 '25

Create a performant Python API using FastAPI and SqlModel and deployment to Kubernetes

Thumbnail
youtu.be
4 Upvotes

r/pythoncoding • • Nov 04 '24

/r/PythonCoding monthly "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.


r/pythoncoding • • Sep 17 '24

Maelstrom 0.12.0: Isolate your tests, and run them fast.

4 Upvotes

We’re excited to announce Maelstrom 0.12.0, a test runner for Python that can run tests locally or on a cluster. Our new UI features real-time information about running tests, output from the build, and a new progress bar.

Maelstrom is a suite of test runners, built on top of a general-purpose clustered job engine. Maelstrom packages your tests into micro-containers, then distributes them to be run on an arbitrarily large cluster of test-runners, or locally on your machine using a custom-built, super-fast container runtime.

https://github.com/maelstrom-software/maelstrom


r/pythoncoding • • Jul 04 '24

/r/PythonCoding monthly "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.


r/pythoncoding • • May 09 '24

InterProcessPyObjects: Fast IPC for Sharing and Modifying Objects Across Processes

Thumbnail
github.com
4 Upvotes

r/pythoncoding • • Jan 13 '24

Suggest me some good python books that love so much!

4 Upvotes

r/pythoncoding • • Oct 19 '23

What’s New In Python 3.12

Thumbnail
docs.python.org
4 Upvotes

r/pythoncoding • • Oct 10 '23

How to capture web pages and linked PDFs and word docs

4 Upvotes

Back in the day web browsers I’m sure let you save a web page and you had the option to save all the sub pages and linked files. Safari and Firefox don’t seem to go beyond the current page your asking it to achieve.

I’m trying to see if I could do something in Python to capture a web page and the next level down of that page along with linked files like pdf or word files etc.

What prompted this was a website I follow has a bunch of links to pdf files, of course you can right lock to save the pdf or click on each link to view and download

I really want the Python code to go to that page see all the links and download the page and all the PDFs for me so I can automate saving the linked PDFs into a folder. So I guess like a site scraper but I don’t want the whole site.

How would I go about that. Any pointers

Thanks


r/pythoncoding • • Sep 11 '23

GitHub - pj8912/flask-google-login: Login app using google OAuth in Flask

Thumbnail
github.com
4 Upvotes

r/pythoncoding • • Aug 04 '23

/r/PythonCoding monthly "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.


r/pythoncoding • • Jul 30 '23

We created an open-source semantic search Python package on top of Postgres

4 Upvotes

Hey everyone! A few months ago my friend and I were working on a sustainability software project and wanted to use semantic search/vector search to help improve search accuracy for materials in our Postgres database.

We found it difficult to do well with standard vector databases and so we ended up making a nice open-source Python package to layer semantic search on top of Postgres with just a few lines of code. It supports Python backends right now, always stays in sync with Postgres via Kafka, doubles as a vector store, and can be deployed anywhere.

We wrote some documentation on it and are curious to see what people do with it! If you encounter any issues or have exciting ideas, feel free to open an issue or contribute alongside us to make it better! Any feedback is warmly appreciated


r/pythoncoding • • Jul 26 '23

PolyLock - Code obfuscation & encryption

4 Upvotes

I made a new project!

Mainly having a focus on obfuscation, PolyLock allows you to lock/encrypt, obfuscate, and compile your code to an executable.

The code you want to be encrypted and obfuscated will not execute/run, unless you give the right key, otherwise it'll just exit.

Obfuscation method being used is Hyperion and the compiler being used is Nuitka. Encryption is being handled by chaeslib.

I got inspired by another project I came across that did something similar but I didn't like what encryption they used, what obfuscation method they used or the compiler. (Fernet, pyarmor, and pyinstaller). Their code was also a bit messy and not really optimized.

You can find out more here. Link: https://github.com/therealOri/PolyLock


r/pythoncoding • • Jul 19 '23

Notion-based Error Logging in Python

4 Upvotes

Hello,
Just spun up this project quickly for a company I'm involved with. They let me open-source it, and I believe it could be invaluable for a lot of people. It allows you to track the current status of errors within a Notion page. Mark them as pending or resolved, and if they occur again, the record will be updated with the newest log data, and set to unresolved.
You can execute it independently, or import it into your Python project for easy use.
Async version coming within the next day or two.
Check it out-
https://github.com/xozxro/eLog
Enjoy!
Michael


r/pythoncoding • • Jul 18 '23

logistic regression visualization.

4 Upvotes

I have been unable to find the name of the function that produces the heatmap on the left. It depicts the coefficients of each pixel in a logistic regression.

https://ibb.co/M8Rs6xS


r/pythoncoding • • Jul 11 '23

Data-driven CI pipeline monitoring with pytest

Thumbnail
tbrd.co
4 Upvotes

r/pythoncoding • • Jul 07 '23

You Should Use __all__ (A response to Jame Turk's "You Don’t Need __all__")

Thumbnail codecalamity.com
4 Upvotes

r/pythoncoding • • Jul 04 '23

/r/PythonCoding monthly "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.


r/pythoncoding • • Jun 26 '23

Why are people so against using PEP8

4 Upvotes

I just started a research internship at my university in object detection with Python. I currently have 9 people on my team and they all have at least a master's degree in AI along with 8+ years of experience with Python development.

When they create PR's, each file is around 400-500 lines of code (one file is 1000+). But I can quickly reduce that number to less than 200 because they add crazy things like 50 blank lines after function definitions, add comments that are paragraphs long, and use long ass variable names, like this_is_the_first_5_lines_of_the_csv_file. I'm still in high school, I've only been using Python for about 4 years, and all my files are neatly organized thanks to PEP8. Why don't people use the style conventions? I talked with them about it, and they said they disliked the PEP8 style, saying it's too limited.

The only bad thing I can say about PEP8 is the column cut-off. I typically wrap my lines around 90-95 and for documentation, I wrap it around 75.

I don't understand why they refuse to use PEP8. Especially since this code is used in the university. What should I do about this?


r/pythoncoding • • Jun 19 '23

Datalookup - Deep nested data filtering

4 Upvotes

The Datalookup library makes it easier to filter and manipulate your data. The module is inspired by the Django Queryset Api and it's lookups.

Quick examples:

from datalookup import Dataset

data = [
    {
        "id": 1,
        "author": "J. K. Rowling",
        "books": [
            {
                "name": "Harry Potter and the Chamber of Secrets",
                "genre": "Fantasy",
                "published": "1998"
            },
            {
                "name": "Harry Potter and the Prisoner of Azkaban",
                "genre": "Fantasy",
                "published": "1999"
            }
        ]
    },
    {
        "id": 2,
        "author": "Agatha Christie",
        "books": [
            {
                "name": "And Then There Were None",
                "genre": "Mystery",
                "published": "1939"
            }
        ]
    }
]

# Use Dataset to manipulate and filter your data
books = Dataset(data)

# Retrieve an author using the author name
authors = books.filter(author="J. K. Rowling")
assert len(authors) == 1
assert authors[0].author == "J. K. Rowling"

# Retrieve an author using '__in' lookup
authors = books.filter(id__in=[2, 3])
assert len(authors) == 1
assert authors[0].author == "Agatha Christie"

# Retrieve an author using 'exclude' and '__contains' lookup
authors = books.exclude(author__contains="Christie")
assert len(authors) == 1
assert authors[0].author == "J. K. Rowling"

# Retrieve an author using the date when the book was published
authors = books.filter(books__published="1939")
assert len(authors) == 1
assert authors[0].author == "Agatha Christie"

Datalookup does not stop here. The full documentation is in the docs directory or online at https://datalookup.readthedocs.io/en/latest/


r/pythoncoding • • May 29 '23

I automated a YouTube channel using Python and AI

4 Upvotes

Hi! I recently made an automated AI-based YouTube and TikTok channel using Python. You can see an example video here. If you're interested, I made a blog post describing exactly how I did it and analyzing the results.

I am looking for feedbacks on the blog article and the videos themselves. Thank you :)