sanic-org / html5tagger Goto Github PK
View Code? Open in Web Editor NEWCreate HTML documents from Python
License: The Unlicense
Create HTML documents from Python
License: The Unlicense
Current work around:
builder.script(HTML("... && ..."))
When adding script, we shouldn't escape entities as it messes with the rendered Javascript.
Hi,
Adding some more advanced examples would be nice.
Thanks :-)
I'm experimenting with using PyInstaller with Sanic, and I'm getting this strange error.
pkg_resources.DistributionNotFound: The 'html5tagger>=1.2.1' distribution was not found and is required by tracerite
[22687] Failed to execute script 'main' due to unhandled exception!
It's strange because I've installed html5tagger==1.3.0
% pip freeze | grep html5tagger
html5tagger==1.3.0
It's also strange because html5tagger
is being picked up by pyinstaller
1123 INFO: Packages required by sanic:
['sanic_routing', 'httptools', 'aiofiles', 'websockets', 'multidict', 'html5tagger', 'tracerite', 'uvloop']
1224 INFO: Packages required by tracerite:
['html5tagger']
I noticed that the __version__
appears to be hard coded in this project (despite the PyPI version being 1.3.0):
__version__ = "1.2.0"
Ref: https://github.com/sanic-org/html5tagger/blob/main/html5tagger/__init__.py#L4
and that differs from something like, tracerite
, where it's using pkg_resources
:
import pkg_resources
__version__ = pkg_resources.require(__name__)[0].version
Ref: https://github.com/sanic-org/tracerite/blob/main/tracerite/__init__.py#L8
I don't know enough about packaging to say that for sure, but perhaps that's an issue in this situation?
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.