BasecampUI
BasecampUI is a FastHTML UI library built on top of the excellent Basecoat. It's design goal is to create complex UI components with minimal boilerplate, while still allowing as much customization as possible.
See live component examples by reading the docs: https://base-camp-ui.solve.it.com/
Quickstart
pip install basecampui
from fasthtml.common import *
from basecampui.all import *
app = FastHTML()
rt = app.route
@rt
def index():
return Div(
Breadcrumb(['Home', 'Documents', 'Doc 1']),
)
serve()
Using Icons
BasecampUI uses fastlucide for icons. For development purposes, basecampui.all provides a standalone Icon function that creates a new SVG for each icon instance, making it easy to quickly iterate.
Div(
Icon("apple")
)
If you are happy with your set of icons, you can predefine them on app setup, and use the fastlucide spritesheet singleton instead of Icon function. This create a reference sprite sheet that all icons icons point to, making it more efficient when rendering a large number of the same icons.
app = FastHTML(icons=["apple"])
Div(
spritesheet("apple")
)
Code highlighting
Code highlight is included by default on app setup. You can disable this to reduce loadtimes if you don’t need highlighting for your project.
app = FastHTML(code_highlight=False)
If you do want code highlighting, you can optionally pass in custom keywords to the app startup.
custom_kws="myFunction myClass CodeHighlightFunc"
app = FastHTML(custom_kws=custom_kws)
Metadata
Release files for basecampui 0.0.2
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 | Actions |
|---|---|---|---|---|
| basecampui-0.0.2.tar.gz | 21.5 kB | Without provenance | Details for basecampui-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| basecampui-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for basecampui-0.0.2-py3-none-any.whl |
Total release size: 43.5 kB
Release files / basecampui-0.0.2.tar.gz
| Download URL | basecampui-0.0.2.tar.gz |
|---|---|
| Size | 21.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
91bc046497122d88c6266b2c62101c8208547d524fb9b75cefb41874fa5332d6
|
|
BLAKE2b-256 checksum How to use checksums |
da943aab524d2dffb094cde2e9c8a601fc325810ca2ddc8300dcc624296576a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|
Release files / basecampui-0.0.2-py3-none-any.whl
| Download URL | basecampui-0.0.2-py3-none-any.whl |
|---|---|
| Size | 22.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f3eb06e05b3aa7f8d1776c7a39b109567857b556e2316f47f331ff56b8421410
|
|
BLAKE2b-256 checksum How to use checksums |
b4d513403b899ec2244d250245a3761cda31ecd1dc7c884c4eb0aa60800936fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|
Security for basecampui 0.0.2
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.