anurag90x / flask-pundit Goto Github PK
View Code? Open in Web Editor NEWA flask extension for managing permissions and scopes
License: MIT License
A flask extension for managing permissions and scopes
License: MIT License
Hello,
I was just about to try using Flask-pundit which looks amazing and exactly what I've been searching for. However, I'm using Flask 1.0.2 which pip thinks is incompatible with this extension. I see you already changed the requirements to the new version of Flask, will you be uploading a release soon with this support?
Thanks!
Right now Flask Pundit has a dependency on flask. flask<2,>=1.0.2
https://flask.palletsprojects.com/en/2.0.x/changes/
The major changes are the drop of official support for Py2 but since this lib already supports py3.7, It might be just fine to bump the dependency
Using Python 3.7 I get an IndexError when passing in a resource to the authorize function. It looks like the regex pattern in Python 3 is matching a final, empty string, so when name[-1] is called, it's an error.
The basic fix is pretty easy, just check if the string is empty in the internal dasherize
function and if so, return that empty string.
I'm fixing it anyway for my own usage, so I'll put in a pull request.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.