Pygaljs is a Python package designed to provide static assets (JavaScript, CSS, fonts, etc.) for the pygal.js JavaScript charting library. It acts as a wrapper, making these web assets easily discoverable and servable within Python-based web applications. The current version is 1.0.2, and its release cadence is infrequent, with the last release in April 2020, indicating a stable but not actively developed state.
pip install pygaljsVerified import paths — ran on the pinned version, not inferred.
The `pygaljs` library is primarily an asset provider for the `pygal.js` JavaScript charting library. The most common 'use case' in Python code is to programmatically locate the installation path of these static assets so that a web framework can serve them. This example demonstrates how to find the root directory of the installed package and a likely location for its JavaScript and CSS files.
If you intend to generate charts directly in Python, consider libraries like `pygal` (the Python charting library) or `matplotlib`, `plotly`, etc. `pygaljs` is for providing the frontend assets if you're using `pygal.js` in a web context.
Inspect the installed `pygaljs` package directory (e.g., `os.path.dirname(pygaljs.__file__)`) to confirm the asset layout. Common subdirectories are 'static' or a direct package subfolder with the library name, like 'pygaljs/pygaljs/'.
Run `pip install pygaljs` in your terminal to install the package.
Use the `pygal` Python library (note: `pygal` not `pygaljs`) for generating SVG charts from Python, or use `pygal.js` (the JavaScript library) on the frontend if you are serving its assets via `pygaljs`.
No dependency data recorded yet.