Comments (4)
I hadn't realized that the form submission software was using some sort of markup - it changed the double underscores in my reference to the version attribute to make it bold instead.
from markupsafe.
You can get the version from pgk_resources.
from markupsafe.
Perhaps you could explain more fully how to get the version number using 'pkg_resources'.
As far as I can see, 'pkg_resources' is useful for getting info about a package that is about to be installed.
But what I need is a way to find out the version number of the currently installed 'markupsafe'
so I can indicate to the user if it is necessary to update to a more recent version.
It would be nice if 'markupsafe' would provide a 'version' string attribute - this is done by almost all Python modules. (underscore underscore version underscore underscore)
from markupsafe.
It would be nice if 'markupsafe' would provide a 'version' string attribute - this is done by almost all Python modules. (underscore underscore version underscore underscore)
Seconded. A call to markupsafe.__version__
should return the version of markupsafe. This is explicitly mentioned in the version bookkeeping section section of the PEP 8 style guide for Python code:
Version Bookkeeping
If you have to have Subversion, CVS, or RCS crud in your source file, do it as follows.
__version__ = "$Revision: 2132f8d8bcb4 $"
# $Source$
These lines should be included after the module's docstring, before any other code, separated by a blank line above and below.
from markupsafe.
Related Issues (20)
- start using semver, again one of those dummies talking in miles and fahrenheit not using semver HOT 2
- Unable to install under git bash HOT 2
- Build Error HOT 3
- Removal of soft_unicode has broken many packages HOT 2
- `striptags` doesn't remove tags containing newlines HOT 1
- Python.h no such file or directory HOT 1
- s390x support
- Wheel for Python 3.11 HOT 4
- release 2.1.2 HOT 1
- DEPRECATION: MarkupSafe is being installed using the legacy 'setup.py install' method HOT 1
- Imports from _speedups have side effects HOT 1
- Unable to upgrade Markupsafe due to dependency with Werkzeug and Jinja2, best possible combination only possible with earlier versions HOT 7
- Return type for methods covered by `_simple_escaping_wrapper` is wrong HOT 1
- Missing override to `format_map` HOT 3
- pin markupsafe==2.0.1 HOT 1
- Python 3.12 manylinux wheels HOT 4
- str method argument escaping is inconsistent HOT 3
- Building markupsafe wheel fails on 3.13a1 HOT 7
- Markup.striptags: comments now get replaced with a space HOT 1
- Some sort of mapping function HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from markupsafe.