Skip to main content

StaticResources for Starlette

Like StaticFile but for package resources.

Example:

import uvicorn

from starlette.applications import Starlette
from starlette_static_resources import StaticResources
from importlib_resources import files


app = Starlette()
app.mount('/', StaticResources(resources=files('example.data')), name='static')

uvicorn.run(app, host='0.0.0.0', port=8008)

Release files for starlette-static-resources 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for starlette-static-resources 0.1.2
File Size Uploaded
starlette-static-resources-0.1.2.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for starlette-static-resources 0.1.2
File Interpreter ABI Platform
starlette_static_resources-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.5 kB

Release files / starlette-static-resources-0.1.2.tar.gz

Download URL starlette-static-resources-0.1.2.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d725b039465bfaddacfeadca29ad38768c3ffa95d5b051f33a19eae04a3a8ee9
BLAKE2b-256 checksum
How to use checksums
c773ba660cc43f5b2ccd05e4ec222311acdfd833233530ab6f360b4d513b2f63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.8 CPython/3.9.5 Linux/5.11.0-40-generic

Release files / starlette_static_resources-0.1.2-py3-none-any.whl

Download URL starlette_static_resources-0.1.2-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e61b84a483fc5b1d9b524ee673e216203069e789b7e81bc45d6361c203fa76c2
BLAKE2b-256 checksum
How to use checksums
e8f6828c462dcdc1eaab6c4d0ae765f66b82ef884b75b28273467ec65b669b38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.8 CPython/3.9.5 Linux/5.11.0-40-generic

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page