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.3.tar.gz (35.4 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.3-py3-none-any.whl (42.3 kB view details)

Uploaded Python 3

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

Hashes for boneshield-0.2.3.tar.gz
Algorithm Hash digest
SHA256 012bf3bdb6a665955767ad4f3a8e5d37f1d655e6f0e55864a2c8cae34e419964
MD5 4884824cd68ddaa6d2560453cbb3bd6a
BLAKE2b-256 22d2c2ec6421989603293f06a1d195a168f1462728e9e2e4e9553798810be85f

See more details on using hashes here.

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

Hashes for boneshield-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 689dd8de3eb2c79ffc6960fb3070bb86738bdb4cbd7cf0ac6e7dc0f4fe97f8c5
MD5 6f4bec00bced182b9d9c60e930eecf61
BLAKE2b-256 d9148b702b84ef7c72bb9ad04b6653b6317949abd5d0283227a18dcd7d6e1482

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 files

0.2.2

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