pallets-eco / secure-cookie Goto Github PK
View Code? Open in Web Editor NEWSecure cookies and sessions for WSGI
Home Page: https://secure-cookie.readthedocs.io
License: BSD 3-Clause "New" or "Revised" License
Secure cookies and sessions for WSGI
Home Page: https://secure-cookie.readthedocs.io
License: BSD 3-Clause "New" or "Revised" License
secure_cookie.session.FilesystemSessionStore()
does not check if the path provided as second argument exists.
If the directory, a FileNotFoundError
is raised when self.store.save(session)
is called.
I think the __init__()
method should create automatically the directories if they don't exist.
Another solution is to raise an error in the __init__()
method.
What do you think about it? I can do a PR according to your preferences.
Hello,
Any plans for a new release in pypi?
The latest werkzeug version is incompatible with the latest secure-cookie.
There is a link above the directory listing: https://palletsprojects.com/p/secure-cookie/
It points to a 404 error.
The latest version of Werkzeug deprecated things from the contrib package and points users to this library.
DeprecationWarning: 'werkzeug.contrib.sessions' is deprecated as of version 0.15 and will be removed in version 1.0. It has moved to https://github.com/pallets/secure-cookie.
DeprecationWarning: 'werkzeug.contrib.securecookie' is deprecated as of version 0.15 and will be removed in version 1.0. It has moved to https://github.com/pallets/secure-cookie.
The issue is this library appears to be incomplete and there are no releases on PyPI for it at the moment.
Werkzeug version 2.1.0 made several changes which break secure-cookie:
Therefore, the imports no longer work.
I'll make a PR for this.
werkzeug.posixemulation
is an internal module that was only in use by the filesystem session store. Forgot to copy it over to secure-cookie, but it will be deprecated in Werkzeug 2.0 (pallets/werkzeug#1759). Copy it over and release 0.1.1.
Would also be good to evaluate whether it's even needed anymore.
Py36 has reached the end of its life and should not be supported anymore. I'm opening the issue for the sake of documentation, will write PR for it soon.
The GitHub project links to https://palletsprojects.com/p/secure-cookie/ which 404s.
Flask has its own session interface that has probably seen much more development. First step is to investigate the differences to see what needs to be added/deprecated.
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.