Skip to main content

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-snippets
  • pyrightconfig.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

Metadata

Release files for boneshield 0.2.3

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

Source distribution (sdist)

Source distribution for boneshield 0.2.3
File Size Uploaded Provenance Actions
boneshield-0.2.3.tar.gz 35.4 kB Without provenance Details for boneshield-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for boneshield 0.2.3
File Interpreter ABI Platform Actions
boneshield-0.2.3-py3-none-any.whl Python 3 none any Details for boneshield-0.2.3-py3-none-any.whl

Total release size: 77.8 kB

Release files / boneshield-0.2.3.tar.gz

Download URL boneshield-0.2.3.tar.gz
Size 35.4 kB
Tags Source
SHA-256 checksum
How to use checksums
012bf3bdb6a665955767ad4f3a8e5d37f1d655e6f0e55864a2c8cae34e419964
BLAKE2b-256 checksum
How to use checksums
22d2c2ec6421989603293f06a1d195a168f1462728e9e2e4e9553798810be85f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.6

Release files / boneshield-0.2.3-py3-none-any.whl

Download URL boneshield-0.2.3-py3-none-any.whl
Size 42.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
689dd8de3eb2c79ffc6960fb3070bb86738bdb4cbd7cf0ac6e7dc0f4fe97f8c5
BLAKE2b-256 checksum
How to use checksums
d9148b702b84ef7c72bb9ad04b6653b6317949abd5d0283227a18dcd7d6e1482
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.6

Security for boneshield 0.2.3

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.

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