Skip to main content

NTC - Nexent Toolkit Console

A powerful CLI scaffolding tool for rapidly bootstrapping modern web and mobile projects.

Overview

NTC (Nexent Toolkit Console) is a command-line interface that generates production-ready project boilerplates for:

  • Backend: Django REST Framework with authentication, Celery, Docker support
  • Frontend: React, React Admin, Next.js
  • Mobile: Flutter

Features

  • Interactive project initialization with step-by-step prompts
  • Django REST Framework scaffolding with JWT authentication, custom User models, and API documentation
  • Environment setup automation (virtual environments, dependency installation)
  • Docker & Docker Compose configuration included
  • Authentication app generator with login, register, password reset endpoints
  • Modular app architecture with pre-configured common utilities

Installation

pip install ntc-dev-kit

Quick Start

Create a new project interactively:

ntc init

Or specify technology directly:

# Django REST API backend
ntc init --technology django

# React frontend
ntc init --technology react

# Next.js full-stack
ntc init --technology nextjs

# Flutter mobile
ntc init --technology flutter

Usage

Interactive Mode

ntc init

A few questions, asked inline: project name, what you're building, where it goes, then the options for that technology (sign-in and Python environment for Django; installing dependencies for the others), a summary, and Create?. The defaults are already selected, so Enter takes them; ↑/↓ move, a number key picks an option at once, Esc cancels without writing anything. Each answer collapses to one line, and the only progress shown is for real work (creating the environment, installing packages).

Without questions

Every answer can be given as a flag; with --yes nothing is asked (scripts, CI, AI agents):

ntc init -t django --name shop-api --with-auth --env venv --yes
ntc init -t nextjs --name site --install --yes
Flag Meaning
-t, --technology django, nextjs, react-admin, react, flutter
--name Project name (. = the current folder)
--path Folder to create the project in (default: current folder)
--with-auth / --no-auth Django: include the sign-in app (custom User model, JWT, migration included)
--env Django: venv, conda, existing (the active virtualenv) or skip
--install / --no-install Others: run npm install / flutter pub get
--apps A workspace instead of one app: backend,website,dashboard,admin,mobile (any of them)
--git Workspace: per-app (default), single or none
--yes, -y Ask nothing; needs --name and --technology (or --apps)

Workspaces: several apps at once

Tick more than one app at What are you building? (Space ticks) - say a backend, a website and an admin dashboard - and they're created side by side in one folder, already connected:

  • each app gets its own port, the frontends point at the backend's API, and the backend allows the frontends' origins (CORS);
  • dependencies install for all apps at once, one line each;
  • git: a repository per app (plus a small one at the root for ntc.toml), one for everything, or none;
  • ntc.toml at the root says how each app is set up and run.
kaya/
├── ntc.toml        # the apps, their ports, setup and run commands, env
├── README.md
├── backend/        # Django REST API   http://127.0.0.1:8000
├── website/        # Next.js           http://127.0.0.1:3000
└── admin/          # React admin       http://127.0.0.1:5173

Then, from anywhere inside the workspace:

ntc start                  # every app in this terminal: a tab each plus "All"
ntc start backend admin    # just these (and what they need)
ntc start --plain          # interleaved output instead (CI, logs)
ntc setup                  # environments, .env files, dependencies - after a clone or a deep clean
ntc clean                  # build output and caches; shows the space freed
ntc clean --deep           # also node_modules and Python environments
ntc add                    # another app, wired in like the rest

In ntc start, All is a grid of up to four terminals, one per app ([ and ] page through more), with each app's port and status on its border and its output colour-coded: errors red, warnings amber, ready/compiled green, HTTP status codes by class. Tab moves between the terminals and the keys act on the focused one: r restarts, s stops or starts, o opens it in the browser (Ctrl+O opens every app that's running), i types into it (Flutter's r hot reload), c clears, Enter opens it full screen (Esc comes back). 1-9 jump to an app's own tab, 0 back to all, q quits and stops everything. Drag the mouse over output to select it and Ctrl+C copies it (with nothing selected, Ctrl+C quits); a click on a URL in the output opens it. Apps wait for the ones they need (the backend) before starting, and a port that's already taken is reported instead of crashing.

The backend allows the frontends

Whenever ntc start runs a Django app, it adds every frontend's origin (http://127.0.0.1:<port> and http://localhost:<port>) to the backend's CORS_ALLOWED_ORIGINS and CSRF_TRUSTED_ORIGINS, so the browser apps can call the API whatever ports they're on. It reads which environment variables the settings use and keeps what they already allow (from the environment, the app's .env, or the settings' default); only the backend's process gets the result, nothing is edited. A setting written out in the settings (not read from the environment) can't be extended from outside: the backend's terminal then says which origins to add. allow_origins = false in the app's section turns this off. New workspaces also get the origins in the backend's .env, for running it on its own.

Existing projects: ntc adopt

Apps that weren't made by ntc can run with it too. In the folder that holds them:

ntc adopt             # finds the apps, shows what it found, writes ntc.toml
ntc adopt --dry-run   # just show

It recognises Django (manage.py), Next.js, Vite and other Node apps (package.json with a dev/start script) and Flutter, and keeps how each already runs: its package manager (npm, pnpm, yarn, bun), its dev script and port (a port clash is moved with --port), and its Python environment (env/, venv/, .venv/, or a conda env named after the project). Folders that aren't apps (documents, tooling) are left out, and a shared name prefix is dropped (shop-backend → backend). Only ntc.toml is written: nothing in the apps changes, no env values are overridden, and setup never runs migrate (the project's .env may point at a shared database). ntc setup copies .env.example when an app has no env file yet.

ntc clean only removes what the tools rebuild (.next, dist, __pycache__, caches; with --deep also node_modules and env), never anything git tracks, and skips apps that are running. --dry-run shows what would go.

ntc.toml is plain TOML and meant to be edited and committed (no secrets in it - those stay in each app's .env):

name = "kaya"

[apps.backend]
kind = "django"
path = "backend"
port = 8000
python = "env"
setup = ["{python} -m pip install -r requirements-dev.txt", "{python} manage.py migrate"]
run = "{python} manage.py runserver 127.0.0.1:{port}"
# also = { worker = "{python} -m celery -A kaya worker -B -l INFO" }

[apps.backend.env]
CORS_ALLOWED_ORIGINS = "{frontends.origins}"

[apps.website]
kind = "nextjs"
path = "website"
port = 3000
needs = ["backend"]
run = "npm run dev -- --port {port}"
repo = "git@github.com:you/website.git"   # `ntc setup` clones it when the folder is missing

[apps.website.env]
NEXT_PUBLIC_API_BASE_URL = "{backend.url}/api/v1"

Placeholders: {port}, {url}, {python} (this app's), {<app>.port}, {<app>.url}, {frontends.origins}. Commands are one program with its arguments (no &&), so they run the same on Windows and Unix.

Technology Options

Technology Description
django Django REST Framework with JWT auth, Celery, Docker
react React Vite project with TypeScript
react-admin React Admin dashboard template
nextjs Next.js full-stack application
flutter Flutter mobile application

Additional Commands

# Create a new Django app within your project
ntc create app <app_name>

# Show help
ntc --help

Django Project Structure

When you create a Django project, you get:

myproject/
├── .env                          # Environment variables
├── .gitignore
├── requirements.txt
├── manage.py
├── Dockerfile
├── docker-compose.yml
├── config/                       # Gunicorn & nginx config
├── .entry/                       # Startup scripts
├── .knowledge/                   # AI documentation
├── apps/
│   ├── __init__.py
│   ├── common/                   # Common utilities
│   └── authentication/           # (Optional) Auth app
├── core/                         # Core utilities
│   ├── pagination.py
│   ├── base_model.py
│   ├── response_wrapper.py
│   └── services/                 # Azure/AWS services
└── myproject/                    # Django project settings
    ├── settings/
    ├── urls.py
    ├── asgi.py
    ├── wsgi.py
    └── commands/                 # Management commands

Requirements

  • Python: >= 3.10
  • Operating System: Windows, macOS, Linux

Dependencies

  • colorama - Cross-platform colored terminal output
  • pyyaml - YAML configuration parsing

Development

# Clone repository
git clone https://github.com/nexent/ntc.git
cd ntc

# Install in development mode
pip install -e ".[dev]"

# Run tests
pytest

# Code formatting
black ntc/
ruff check ntc/

License

MIT License - see LICENSE for details.

Support

Metadata

Release files for ntc-dev-kit 1.4.2

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

Source distribution (sdist)

Source distribution for ntc-dev-kit 1.4.2
File Size Uploaded Provenance Actions
ntc_dev_kit-1.4.2.tar.gz 221.0 kB Without provenance Details for ntc_dev_kit-1.4.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ntc-dev-kit 1.4.2
File Interpreter ABI Platform Actions
ntc_dev_kit-1.4.2-py3-none-any.whl Python 3 none any Details for ntc_dev_kit-1.4.2-py3-none-any.whl

Total release size: 495.8 kB

Release files / ntc_dev_kit-1.4.2.tar.gz

Download URL ntc_dev_kit-1.4.2.tar.gz
Size 221.0 kB
Tags Source
SHA-256 checksum
How to use checksums
082e0063a0d75a74ad74a51c5a27433fc88d3b91dcbcccbf9b429e587c42c8ab
BLAKE2b-256 checksum
How to use checksums
8dce655965113363c1a6aa5fa58cb8c5b1fac9681a76c3552bd95b78a51958cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release files / ntc_dev_kit-1.4.2-py3-none-any.whl

Download URL ntc_dev_kit-1.4.2-py3-none-any.whl
Size 274.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0bd5e6aeea178ae0c0c23d8eefadee9c8e7547ce8ed4f3d1e2eaf27f14d11ccc
BLAKE2b-256 checksum
How to use checksums
7bb696ebe8f0bc1386cf8791a3540044efee5c6de57b01b09f4990fba855f135
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Security for ntc-dev-kit 1.4.2

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