BoneShield
Express-like Python backend for beginners — MongoDB, JWT, WebSockets, nested file routing.
Default port: 313.
Install
pip install boneshield
Create a project
mkdir my-api
cd my-api
boneshield make
python main.py
Or: boneshield run
Beginner style (no imports)
main.py starts with one wiring line, then you use builtins directly:
import boneshield.bootstrap # framework wiring — you can ignore this line
db = connect_mongo()
use("/api", "routes/api.py")
@get("/health")
def health(req):
return makeResponse(200, data={"ok": True})
app.run()
Nest routes up to 5 layers with use("/prefix", "file.py").
Attach controllers like Node: get("/", usersController.list).
See GUIDE.md (routing, @useable, variables) and MONGO.md (database).
Autocomplete in Cursor / VS Code
boneshield make creates:
typings/__builtins__.pyi(Pylance treats these as builtins — no import needed).vscode/settings.json+boneshield.code-snippetspyrightconfig.json
Then reload the window once so suggestions for makeResponse, get, use, … show up while typing.
Commands
boneshield make # scaffold project
boneshield make --force # overwrite scaffold files
boneshield run # run main.py with the loader
boneshield --help
boneshield --version
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file boneshield-0.2.3.tar.gz.
File metadata
- Download URL: boneshield-0.2.3.tar.gz
- Upload date:
- Size: 35.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
012bf3bdb6a665955767ad4f3a8e5d37f1d655e6f0e55864a2c8cae34e419964
|
|
| MD5 |
4884824cd68ddaa6d2560453cbb3bd6a
|
|
| BLAKE2b-256 |
22d2c2ec6421989603293f06a1d195a168f1462728e9e2e4e9553798810be85f
|
File details
Details for the file boneshield-0.2.3-py3-none-any.whl.
File metadata
- Download URL: boneshield-0.2.3-py3-none-any.whl
- Upload date:
- Size: 42.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
689dd8de3eb2c79ffc6960fb3070bb86738bdb4cbd7cf0ac6e7dc0f4fe97f8c5
|
|
| MD5 |
6f4bec00bced182b9d9c60e930eecf61
|
|
| BLAKE2b-256 |
d9148b702b84ef7c72bb9ad04b6653b6317949abd5d0283227a18dcd7d6e1482
|