csstweaks-client
csstweaks-client is the Django companion to the csstweaks browser extension.
It shortens the feedback loop for local CSS work: the extension reads the
stylesheet currently served by Django, lets you adjust it in the browser, and
writes the result back to the source file that Django's static-file finders
resolve.
This is a development helper, not a production editing API. Every view returns
404 unless Django's DEBUG setting is enabled, and projects should mount its
URLs only inside the same DEBUG check.
Install
pip install csstweaks-client
Add csstweaks_client to INSTALLED_APPS, then mount it in the project's root
URL configuration:
if settings.DEBUG:
urlpatterns += [path("__csstweaks__/", include("csstweaks_client.urls"))]
Start Django normally and connect the csstweaks extension to the development
site. The client works with stylesheets found in a STATICFILES_DIRS directory
or an installed app's static/ directory.
Endpoints
GET /__csstweaks__/ping— the extension uses this to find the helper.GET /__csstweaks__/read?path=<STATIC_URL-relative path>— returns raw CSS.POST /__csstweaks__/write—{"path": "...", "content": "..."}overwrites the source file.
For development of the client itself, install this checkout in editable mode:
pip install -e .
Metadata
Release files for csstweaks-client 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| csstweaks_client-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / csstweaks_client-0.1.0-py3-none-any.whl
| Download URL | csstweaks_client-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9c5ae14bc052fdcbde7af0f5591dbc3f83a2aa75bb7b49149b494bd4ec7e1295
|
|
BLAKE2b-256 checksum How to use checksums |
20db3d7a304a03a62b0758bc3de8e2a3c5dd3921ad17d735d7fa625165d706f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.11.17
|
Security for csstweaks-client 0.1.0
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.