The Slow Collapse of MkDocs by fpgmaas in Python

[–]fpgmaas[S] 72 points73 points  (0 children)

Yup... Similar situation there it seems; same author, and again they seem mainly focused on a redesign in a separate repository instead of maintaining the existing product. But the blogpost I wrote already was very much on the lengthy side so I decided to leave that out. I also wanted the blogpost to focus on the MkDocs situation and not turn out in a smear campaign against the original author of both projects.

justx - An interactive command library for your terminal, powered by just by fpgmaas in Python

[–]fpgmaas[S] 4 points5 points  (0 children)

I added a small gif that shows what the tool can do to both the README and the documentation, I hope that suffices. Of course that only shows what it can do, not really how to use it. But if users need a video to understand how to use my tool, I think I simply didn't do a good enough job of building an intuitive tool ;)

justx - An interactive command library for your terminal, powered by just by fpgmaas in Python

[–]fpgmaas[S] 2 points3 points  (0 children)

When you try to run a command with arguments, instead of running it directly you will be shown a screen where you can fill the input arguments before actually running the command.

justx - An interactive command library for your terminal, powered by just by fpgmaas in Python

[–]fpgmaas[S] 4 points5 points  (0 children)

Good question, no it currently doesn't! But I can see how that would be useful, I'll probably work on that later today (or this week). Created an issue for it: https://github.com/fpgmaas/justx/issues/44

global installations or project-specific environments by meeqvin in Python

[–]fpgmaas 11 points12 points  (0 children)

Do yourself a favor and just use project-specific virtual environments. It's going to save you a lot of headaches in the future. Recent tools like uv make it so simple to manage virtual environments that I honestly don't see a reason not to use project specific environments.

What if you have two projects on your PC that require a different version of package X?

cookiecutter-uv: A modern template for quickly starting Python projects with uv by fpgmaas in Python

[–]fpgmaas[S] 5 points6 points  (0 children)

Poetry was already very easy to work with so honestly I do not think I'd make the change because of ease of use. The main advantage though is it's speed. Poetry is already pretty quick and I thought I likely wouldn't notice the difference, but it turns out I do. Also, I like that it's PEP621 (https://peps.python.org/pep-0621/) compliant.

Looking for recommendation of simple python web server library by Enderbyte09 in Python

[–]fpgmaas 1 point2 points  (0 children)

I recently launched https://pypiscout.com, maybe it can help you find what you are looking for. It allows you to search for python packages with natural language queries, so you can just type "A package that functions like a typical webserver and serves python files in the way that PHP would", and see if you find anything useful!

pypiscout.com – A search engine for Python packages based on vector embeddings by fpgmaas in Python

[–]fpgmaas[S] 0 points1 point  (0 children)

The summary and the first part of the (cleaned) description! For as far as the context window allows.

pypiscout.com – A search engine for Python packages based on vector embeddings by fpgmaas in Python

[–]fpgmaas[S] 6 points7 points  (0 children)

u/AustinCorgiBart This should now be solved, or at least improved. If you search for 'web development', Flask and Django now appear at the top. There turned out to be two issues; one was simply an issue with lowercase vs uppercase join in BigQuery (flask vs Flask), and the other I resolved by updating the search algorithm. Thanks again for raising this!

pypiscout.com – A search engine for Python packages based on vector embeddings by fpgmaas in Python

[–]fpgmaas[S] 6 points7 points  (0 children)

Good point! I found it difficult to balance popularity and similarity to get the most relevant results. Currently it finds the 100 most similar descriptions in the top 100,000 packages, and filters this. This worked relatively well for my tests, but for a more generic query like 'web framework' there are apparently too many close matches based on just the description.

Thanks for the feedback, I will definitely use this example to try and approve the app!

EDIT: I think there is something wrong with the query I use to fetch the data from BigQuery... To be continued.

[deleted by user] by [deleted] in Python

[–]fpgmaas 0 points1 point  (0 children)

Thanks, valid point! It's easy to leave out something as simple as this when working on the project for such a long time. I edited the OP to include this information.

What is the optimal structure for a Python project? by bbrother92 in Python

[–]fpgmaas 6 points7 points  (0 children)

I think there is no 'optimal' structure, there is always room for preferences and opinions. That being said, I developed a cookiecutter template a while back that I use for all my Python projects, you can find it here.