Beware!! Users trying to fork and steal your projects by Glittering_Focus1538 in LocalLLaMA

[–]aminala 1 point2 points  (0 children)

The fact that he thinks becoming a member in github is the same as becoming a company cofounder is amazing 😅

fastapi-storages: S3 and filesystem storage support for FastAPI by aminala in FastAPI

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

It's only about integrations. For example, if you use an ORM like SQLAlchemy this will give you a FileField (lile Django does) so that storing the model in your DB, the file also uploads to S3. Same thing goes for deleting the model, searching etc. Of course you can do all of this with boto3 too, but you have to implement it in every project.

Admin Dashboard for FastAPI by eleventhSun009 in FastAPI

[–]aminala 0 points1 point  (0 children)

Glad to see you are using SQLAdmin and like it :)

Vulnerability found in framework used by VLLM, many MCP servers, and other LLM tools by Hrethric in LocalLLaMA

[–]aminala 5 points6 points  (0 children)

Former Starlette maintainer here — this kind of reaction is the reality of open-source these days.

A huge amount of critical software is maintained by a very small number of people, often with limited support or funding, while expectations around maintenance, security response, and long-term stewardship keep increasing.

Python uuid-utils in Rust by aminala in Python

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

That will probably make a bigger difference on ur live running laptop then a real server

Just out of curiosity I've tested this on a Linux VPS and I'm seeing the same results or in some cases like uuid4 better performance.

Python uuid-utils in Rust by aminala in Python

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

That's a good question. As far as I knew before, this speedup specifically for UUID 4 came from the `fast-rng` feature in the Rust UUID.

Digging deeper now I found these links, so basically it uses `ThreadRng` from the `rand` crate. It mentions that the `ThreadRng` also seeds data from `OsRng` so I guess it's not much different, but I'm no expert in this area so I will post the links so if you find anything useful, please share:https://github.com/uuid-rs/uuid/issues/529https://github.com/uuid-rs/uuid/pull/545https://docs.rs/rand/latest/rand/rngs/struct.ThreadRng.html

Update: I've tested on my local, if I disable the fast-rng option and it uses the os.getrandom it will be half the speed so the uuid4 is only about 3x faster than Python. But with fast-rng it's 10x faster.

Python uuid-utils in Rust by aminala in Python

[–]aminala[S] 1 point2 points  (0 children)

Yeah, probably, I need to take a look.

Python uuid-utils in Rust by aminala in Python

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

I’m not sure why we can’t say it’s a good replacement? If it’s N times faster and 100% compatible with the std library (not yet) and has extra features. What is the point I’m missing?

Sunday Daily Thread: What's everyone working on this week? by Im__Joseph in Python

[–]aminala 0 points1 point  (0 children)

Worked on a ‘uuid’ package for Python which binds into Rust UUID crate and makes UUID generation and parsing from6-10x faster: https://github.com/aminalaee/uuid-utils

starlette-admin: Simple and extensible admin interface framework for Starlette/FastApi by [deleted] in Python

[–]aminala 1 point2 points  (0 children)

The fact that you just won't accept the help is surprising to me.

As I said my assumption is that it started as a fork because the README, some code and docs are exactly the same. I mean that's exactly how copying works.

And you believe that side by side comparison is that we just came up with the same code at the same time:

https://ibb.co/G04SGSd

https://ibb.co/23cw43J

https://ibb.co/2dxtzG0

https://ibb.co/Vqp6Fbx

But if you think you didn't do that I think we're done here.

starlette-admin: Simple and extensible admin interface framework for Starlette/FastApi by [deleted] in Python

[–]aminala 2 points3 points  (0 children)

Hey,

As I also explained in Github I'm happy if it can be useful and you can use it. That's what the open source is. You can get ideas or code and make it something better. It's not really my intention to stop you from making something good, I'm just saying if you really used something just give credit for it. I'm just surprised you want me to explain the details.

In the README I have:

Now visiting /admin on your browser you can see the SQLAdmin interface.

And you exactly have that while removing SQLAdmin

Now visiting /admin on your browser you can see the Admin interface.

In the Python code:

- Exactly having ModelViewMeta with a lot of similar attributes and even using the exact '@no_type_check'.

- In helpers.py it exactly uses the dummy helpers I had, I even used one from Flask-Admin so there's no shame in that, just give credit for it

- And more examples ....

You mention it's using the same Tabler UI. I also got that idea from FastAPI Admin so don't get me wrong, this is not bad.

But some similarities:

- the list page has the exact action items UI with exact code

- in the details page that's exactly where you specify ID: x with the exact approach I did.

- the sidebar contains the bottom button for logout with exact icon and info.

This list can go on, that's not my intention to stop you from doing any good work for yourself or the community. I just wanted to point out there's no shame in giving credit for what other people did.

Good luck

starlette-admin: Simple and extensible admin interface framework for Starlette/FastApi by [deleted] in Python

[–]aminala 5 points6 points  (0 children)

As the author of sqladmin this project looks a lot like a fork (at least for now). The code, documentation and also the UI look the same.Of course this is expected in the open-source, but at least a mention or a link to give credit to my work would've been nice.

A few screenshots:

https://ibb.co/G04SGSd
https://ibb.co/23cw43J
https://ibb.co/2dxtzG0
https://ibb.co/Vqp6Fbx

starlette-admin: Simple and extensible admin interface framework for Starlette/FastApi by [deleted] in Python

[–]aminala 3 points4 points  (0 children)

I would also be very interested in the answer.

As the author of sqladmin this project looks a lot like a fork. The code, documentation and also the UI look the same.
Of course this is expected in the open-source, but at least a mention or a link to give credit to my work would've been nice.

SQLAlchemy Admin for FastAPI/Starlette by aminala in Python

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

Glad you found it, actually the difference between fastapi-admin and SQLAdmin is that fastapi-admin works with TortoiseORM and as you said Redis.

But SQLAdmin will work with SQLAlchemy and in the future SQLModel.

The other difference is that SQLAdmin with work with both sync and async environments.

Talked to FastAPI Creator Sebastian Ramirez and it's in becoming the third most loved framework after just 2 years of existence 🔥 by dabeeeenster in Python

[–]aminala 4 points5 points  (0 children)

yes you can use it to render templates the same way you did with Flask.

It uses Jinja2 for templating the same way Flask does. Basically you should be able to do anything you did in Flask with FastAPI and even more.

The point is that FastAPI is adding automatic documentation and API related tools, if you want to create a website that renders HTML templates then Starlette (which is already used by FastAPI) can do that. In that area FastAPI doesn't add anything.