| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A simple website to display Python package support within PyScript.
Use this site to check if a certain Python package is supported in the PyScript ecosystem (both Pyodide and MicroPython).
On the site's front page is a list of the most popular Python packages on PyPI (collected via https://pypistats.org/), along with an indication via RAG (red/amber/green 🚦) of the package's status for use with PyScript. A red status 🟥 means the package is not, or cannot be supported by PyScript, an amber status 🟨 means the status of PyScript support is unknown, and a green status 🟩 means the package is supported by PyScript. Clicking on the package takes you to the page for that package with more details.
At the top of the front page is a search box for package names on PyPI 🔍. Hitting return or pressing the "search" button returns a page for the given package name. If no package exists with this name you'll be prompted to search PyPI for the correct / matching package.
Each package has a page for it. The url for such page will be via the /package?package=<package_name> endpoint.
This page will display three possible states:
The PyScript Packages website offers a simple static API to access package information programmatically.
Retrieve the status and metadata of packages in JSON format by making a GET request to the following endpoint:
GET /api/package/<package_name>.json
This will return a JSON object containing the following metadata (or respond with a 404 status code if the package is not found):
For example, in Python, you can use the requests library to fetch such data about the pandas package:
import requests
response = requests.get("https://packages.pyscript.net/api/package/pandas.json")
if response.status_code == 200:
package_data = response.json()
print(package_data)
else:
print("Package not found or API error.")
If you wish to access data for all packages at once, you can use the following endpoint:
GET api/all.json
Data about the top 100 packages is also available through this endpoint:
GET api/top_100_pypi_packages.json
This is a very simple static website.
$ git clone git@github.com:<YOUR_USERNAME>/packages.git
$ cd packages$ python -m http.server$ python build_data.pyThat's it! Feel free to create PR's via GitHub. Thank you! 💐
Anaconda
Huge thanks to Anaconda for their continued support of PyScript.
| Back | FazBrowse Home | New Git URL |