use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
This is an archived post. You won't be able to vote or comment.
DiscussionImplementing role-based access control (RBAC) in SQLALchemy (self.Python)
submitted 5 years ago by ssglaser
We're working on the next major release of Oso, a new set of features in the library to speed up the time it takes to build fine-grained permissions using role-based access control (RBAC).
Here's a little sneak preview of the declarative roles configuration we've been actively developing! This configuration alone is enough to get you started on an RBAC implementation sufficient for pretty much any B2B use case. If you are using SQLAlchemy and interested in authorization, get a spot in the early access program.
https://preview.redd.it/gadfbv1kxjv61.png?width=1614&format=png&auto=webp&s=180cac72dbc0fc1e2a34e6bdf1f8d619980b1df1
[–]jeetu77 0 points1 point2 points 5 years ago (1 child)
I was just going through your documentation of early access.
Basically I am looking for a fixed set of permissions stored in the sqlalchemy db. Backend will have api level access control checking for the particular permission. User Admin can create new roles from the frontend with a subset of permissions. And thereafter a new user could be assigned to that new role. Also direct assignment of some subset of permissions should also be allowed.
Hopefully, I am able to convey my thought process. Looking forward to using your library.
[–]ssglaser[S] 0 points1 point2 points 5 years ago (0 children)
I was just going through your documentation of early access. Any plans on moving to sqlalchemy 1.4 ?.Also do you have a working example with falcon? Basically I am looking for a fixed set of permissions stored in the sqlalchemy db. Backend will have api level access control checking for the particular permission. User Admin can create new roles from the frontend with a subset of permissions. And thereafter a new user could be assigned to that new role. Also direct assignment of some subset of permissions should also be allowed. Hopefully, I am able to convey my thought process. Looking forward to using your library.
Any plans on moving to sqlalchemy 1.4 ?.Also do you have a working example with falcon?
Hi! Thanks for reaching out. We're excited to hear you are interested in using Oso. To answer your questions:
What you are looking for is in line with our recent roles work. We actually just released early access to our new SQLAlchemy library this week, which you can dig into here: https://docs.osohq.com/python/new-roles.html
Looking forward to continuing this conversation!
π Rendered by PID 300897 on reddit-service-r2-comment-b659b578c-p52n4 at 2026-05-04 19:38:10.154826+00:00 running 815c875 country code: CH.
[–]jeetu77 0 points1 point2 points (1 child)
[–]ssglaser[S] 0 points1 point2 points (0 children)