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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

boneshield-0.2.2.tar.gz (35.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

boneshield-0.2.2-py3-none-any.whl (41.2 kB view details)

Uploaded Python 3

File details

Details for the file boneshield-0.2.2.tar.gz.

File metadata

  • Download URL: boneshield-0.2.2.tar.gz
  • Upload date:
  • Size: 35.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.6

File hashes

Hashes for boneshield-0.2.2.tar.gz
Algorithm Hash digest
SHA256 5860b6c968e0c6953415cc9b371c53f31e53afd13acc0d7b8613421f0878e227
MD5 888b3d73d2da4374cd944adf783203ab
BLAKE2b-256 02ef6b26945c3694b0708958edbfcbee09ad789c7f642c6ed79f70ffc9d45bd1

See more details on using hashes here.

File details

Details for the file boneshield-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: boneshield-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 41.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.6

File hashes

Hashes for boneshield-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3bca43a766614c6a8d37873b24fde16636d0b8f441a63eeb1c97fa63517d0059
MD5 0d5eedc820014946ed5c85cf56d8d92b
BLAKE2b-256 6c7c70342de8ff94d09bc49cfa62a6c56fc0f5d2338a20559ab8642a155c227c

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.3

2 files

This release

0.2.2 This release

2 files

0.1.0

2 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