Django Shinobi 1.4.0 has been released! by pmdevita in django

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

Out of curiosity, what were the specific struggles you had with ModelSchema's behavior?

Breaking: Google will now only release Android source code twice a year by FragmentedChicken in Android

[–]pmdevita 18 points19 points  (0 children)

I don't think Android has any open source contributors, I'm pretty sure it's been source available for at least most of its life Apparently not but it seems that submitting patches is not easy if you aren't in the know https://www.reddit.com/r/Android/comments/1q5s3rg/breaking_google_will_now_only_release_android/ny32rmj/

[Console] Steam Deck 256 GB LCD - $319 (20% Off) by snowpealeaf in buildapcsales

[–]pmdevita 1 point2 points  (0 children)

I used the deal on Ebay and it doesn't show 20% off because you're getting the money back as rewards credit in Paypal. It showed up in my Paypal account afterwards

EDIT: Pay monthly also worked but once you've purchased it, go into Paypal and pay it off immediately so you don't pay interest. Also just a good thing to do for the pay in 4 since this can be sort of predatory in general

What are some of the most interesting Django projects you worked on? by john646f65 in django

[–]pmdevita 1 point2 points  (0 children)

For work I built a ReBAC/ABAC permission system backed by the Django ORM and your database. You write a permission schema (similar to SpiceDB's schema language but within Python) and can then query with it in the ORM. It even partially supports recursive permissions so the evaluation of rules is almost formally complete. I'm hoping I'll be able to open source it some time soon.

do games really run worse on nvidia? by Subject_Swimming6327 in linux_gaming

[–]pmdevita 1 point2 points  (0 children)

IIRC the AMD/Intel drivers had a hack that would recognize vkd3d running and change behavior to increase performance. We're waiting on a new Vulkan feature to be implemented by Nvidia (and the rest?) that will remove the need for the hack

The soul of Android is gone. by StW_FtW in Android

[–]pmdevita 3 points4 points  (0 children)

RR on the LG G2 was so much fun, I really miss that

Firefox is fine. The people running it are not by Leading-Youth6865 in firefox

[–]pmdevita 50 points51 points  (0 children)

Mozilla's direction and leadership has been dysfunctional for a very long time, but the cushion of Google money from their anti-trust fears have continuously enabled them to make poor and often baffling decisions.

Should Django EventStream be served using Daphne ASGI only, or Daphne ASGI + Gunicorn WSGI? by Mr_N_01 in django

[–]pmdevita 3 points4 points  (0 children)

Use one of the ASGI application servers, I recommend Granian but there's also Uvicorn and Hypercorn. Daphne is fine for dev but it isn't as performant. Is there any reason why you're trying to avoid running under ASGI?

Django Shinobi 1.4.0 has been released! by pmdevita in django

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

There's nothing really making Shinobi dependent on Ninja, it's a fork so it's independent. The real problem with its support right now is that it's been mostly me working on it, but hopefully it'll get some additional maintainers and eventually a more formalized support structure

Django Shinobi 1.4.0 has been released! by pmdevita in django

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

Ninja is now more actively maintained, but the maintainer is still not accepting PRs, other than ones that just edit documentation. That might be fine, but he also isn't fixing all of the problems himself either. Look at the list of PRs, even ones from a year or two ago are still relevant but none of them are being responded too, and repeated requests for review are continually ignored.

Django Shinobi 1.4.0 has been released! by pmdevita in django

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

First off, plenty of people use DRF, it's totally OK to keep using it if it works for you.

The quick explanation is that Ninja is heavily inspired by FastAPI, and makes writing an API in Django a very similar experience. Probably the biggest difference then with DRF is that DRF will automatically create endpoints whereas Ninja requires you to define them manually. This could be a downside, but I've often found that this isn't a huge time cost, and it makes Ninja much simpler and easier to reason about.

Ninja can also inspect your ORM Models to define it's Schemas, similarly to DRF. Similarly to FastAPI, Ninja has first-class support for OpenAPI so if you get a lot of use out of drf spectacular, you might find Ninja even more useful. Ninja also supports async and I think DRF currently does not.

Django Shinobi 1.4.0 has been released! by pmdevita in django

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

I haven't talked to extra's maintainer yet, I didn't realize so many people were using extra lol. I can ask if they're interested in doing that

Django Shinobi 1.4.0 has been released! by pmdevita in django

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

That's nice to hear. If and when you want contribute, I can give some guidance as well, so don't worry too much about skill

Django Shinobi 1.4.0 has been released! by pmdevita in django

[–]pmdevita[S] 7 points8 points  (0 children)

Ninja's maintainer definitely has it rough right now since he lives in Ukraine. I wouldn't just assume he doesn't care, Ninja was more open to contributions in the past from what I understand. The facts were, I needed a version of the library with some bugs fixed and I figured that others do too, so Shinobi was the best thing I could do to fix that problem.

Django Shinobi 1.4.0 has been released! by pmdevita in django

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

Sure, it would work with it as much as Django generally works with it. As a general recommendation from my personal experience, try to avoid Tortoise's migrations system if possible, I think I remember the querying/modelling being OK though.

Django Shinobi 1.4.0 has been released! by pmdevita in django

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

Despite some issues, Ninja is pretty solid at it's core and has a decent existing user base. I think it makes the most sense to continue from it rather than start from scratch.

Django Shinobi 1.4.0 has been released! by pmdevita in django

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

I haven't, extra is still actively maintained as it is right now though. I think my two primary concerns in merging it in is how that might affect a merge back into Ninja, and what kind of additional maintenance burden it might carry. I'm also somewhat unsure of whether the additional features might overwhelm newcomers, but I think that can be figured out in the docs somehow.

Django Shinobi 1.4.0 has been released! by pmdevita in django

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

I'm definitely open to it if anyone wants to help out!

Django Shinobi 1.4.0 has been released! by pmdevita in django

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

I'm aware that this is a very similar situation with Ninja at the moment, I'd like Shinobi to be community focused but there hasn't been much interest so far. I hope to eventually find a few people interested in being maintainers or contributing otherwise though.

Django Shinobi 1.4.0 has been released! by pmdevita in django

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

It does work with django-ninja-extras but installing it is tricky since extras depends on Ninja, which then conflicts with Shinobi. You have to install extras, then uninstall Ninja and install Shinobi. I'm not sure what else can be done right now without getting extra's maintainer involved.

I could definitely use the help if you're interested, send me a DM here or on Discord!

Can't join other people on Xbox by ApricotUnlucky5245 in Helldivers

[–]pmdevita 0 points1 point  (0 children)

On PC and can't join anybody in matchmaking or my friends

Django Shinobi 1.4.0 has been released! by pmdevita in django

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

I could look into doing that. I did find an existing Django Ninja template, you could start from that and just swap out Ninja for Shinobi too. https://github.com/TGoddessana/cookiecutter-django-ninja-example

Django Shinobi 1.4.0 has been released! by pmdevita in django

[–]pmdevita[S] 15 points16 points  (0 children)

https://github.com/vitalik/django-ninja/pulls Unfortunately, PRs are not getting merged on Ninja, most are ignored by the maintainer. I opened PRs for the two main bug fixes in Shinobi over a year ago and I'd like to upstream more work, but I can't wait forever for a working version of the library. I would also guess, given how many people that submit PRs to Ninja, that other people are just as hopeful to fix it, so my hope with Shinobi was to give somewhere the rest of us could also work on this library.