opweb
opweb is a Python package for distributing web development assets including JavaScript, TypeScript, CSS, HTML, and Node.js modules.
Installation
pip install opweb
Usage
from opweb import get_asset_path, list_assets
# Get path to a lesson asset
js_path = get_asset_path("web", "01-node-fundamentals", "code", "async-styles.js")
# Get path to a TypeScript asset
ts_path = get_asset_path("web", "05-typescript", "src", "01-basics.ts")
# Get path to a React asset
react_path = get_asset_path("web", "06-react-hello", "src", "App.js")
# Get path to a fullstack asset
fullstack_path = get_asset_path("web", "09-fullstack", "backend", "server.js")
# List all available top-level asset folders
assets = list_assets()
print(assets)
# List assets in a specific subfolder
web_assets = list_assets("web")
Asset Structure
opweb/assets/
├── css/ # CSS stylesheets
├── html/ # HTML templates
├── js/ # JavaScript files
├── node/ # Node.js modules
├── ts/ # TypeScript files
└── web/ # Web development lessons (from web.zip)
├── 01-node-fundamentals/
│ ├── README.md
│ ├── practice.md
│ └── code/
│ ├── async-styles.js
│ ├── blocking.js
│ ├── event-loop.js
│ ├── non-blocking.js
│ ├── sync-vs-async.js
│ └── test.js
├── 02-http-express/
├── 03-mongodb-models/
├── 04-crud-mvc/
├── 05-typescript/
├── 06-react-hello/
├── 07-react-data-css/
├── 08-react-forms/
└── 09-fullstack/
├── backend/
└── frontend/
License
MIT
Metadata
Release files for opweb 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| opweb-1.0.1.tar.gz | 395.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| opweb-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 828.5 kB
Release files / opweb-1.0.1.tar.gz
| Download URL | opweb-1.0.1.tar.gz |
|---|---|
| Size | 395.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e382e51db43d826ecfb9ca363949364e8bfafa9c92d2f60701730475b56b3e9
|
|
BLAKE2b-256 checksum How to use checksums |
f6466a095aa50c44eec4656c77b5dc8614cb846d4294f5d783be504a3176ddf4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.9
|
Release files / opweb-1.0.1-py3-none-any.whl
| Download URL | opweb-1.0.1-py3-none-any.whl |
|---|---|
| Size | 433.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f8a3b1b119151e9906cff10135bab563b78b4807096fada38234e3cef04885c5
|
|
BLAKE2b-256 checksum How to use checksums |
b0af2154b65e2ce70ffedb523396369875c06f912b1e9d6c9bc99d4eacb9a642
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.9
|
Security for opweb 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.