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.tomlat 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. / swaps a
terminal to a shell for that app, (backend running:8000)$: in the app's folder, with its
environment (its venv or conda env, its env variables), so python manage.py migrate or
npm i zod needs nothing activated. The app keeps running, and / on the shell's empty line
swaps back; each side keeps its own scrollback. In the shell, Ctrl+C stops the running
command and ↑/↓ walk the history; cd, clear and exit work. It runs a line at a time
(no full-screen programs like vim), and a reply to a password prompt shows as dots. 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.
Deploying to Nexent Cloud: ntc deploy
ntc deploy # in a workspace
- Sign in. The console opens at a page showing a code; check it matches the terminal's and
approve. The terminal gets an API key named after the computer (revoke it under Security ›
API keys).
ntc login,ntc logoutandntc whoamido just this part. - Workspace. Pick the Nexent Cloud workspace; it's remembered in
ntc.toml(ntc deploy --workspacepicks again). - GitHub or GitLab. If neither is connected to the workspace, the console's Integrations page opens and ntc waits for the connection.
- The plan, and its price. One collection for the workspace's apps, and one app per ntc
app (Flutter apps aren't deployed). Apps without a Dockerfile get one (Next.js:
next starton 3000; Vite: nginx on 80). A Django backend gets its own login and database in a PostgreSQL app of the workspace (an existing one, or a new one from the marketplace). The monthly price of what will be created is shown; nothing is created without a yes. - Repositories. Nexent Cloud creates each app's private repository (or uses the folder's GitHub/GitLab remote). When GitHub doesn't allow that (on some personal accounts), its new-repository page opens with the name filled in, and ntc waits for it. The code is committed and pushed with a token for that one repository, which isn't stored anywhere. For GitLab, only the person who connected it gets one; anyone else pushes with their own git login.
- Environment. Filled in:
DEBUG=False, a newSECRET_KEY,ALLOWED_HOSTS, the frontends' addresses in CORS / CSRF, and each frontend's API address (a build argument, since it's compiled in). Keys from the app's.envwith real values are offered in one checklist, none ticked; empty, localhost and placeholder ones are listed for the console. - Deploy. Each app is built and deployed, and ntc follows them until they're live, then shows their addresses.
What it created is written to ntc.toml ([deploy]) as it goes: a run that stops part-way picks up
where it was, and the next ntc deploy commits and pushes the changes and redeploys. Pushes also
redeploy on their own (deploy on push is on).
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 outputpyyaml- 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
- Issues: GitHub Issues
- Repository: GitHub
Metadata
Release files for ntc-dev-kit 1.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ntc_dev_kit-1.5.0.tar.gz | 251.5 kB | Without provenance | Details for ntc_dev_kit-1.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ntc_dev_kit-1.5.0-py3-none-any.whl | Python 3 | none | any | Details for ntc_dev_kit-1.5.0-py3-none-any.whl |
Total release size: 551.3 kB
Release files / ntc_dev_kit-1.5.0.tar.gz
| Download URL | ntc_dev_kit-1.5.0.tar.gz |
|---|---|
| Size | 251.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c6ef469bb6bcb2cef6e3563935658896ece02e9e46f2bf72c2d938e97d1fdee
|
|
BLAKE2b-256 checksum How to use checksums |
6e60a50f3efe442a928309da864eadacc62eb8cf3e1608e9d7e4a6682ca91c40
|
| 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.5.0-py3-none-any.whl
| Download URL | ntc_dev_kit-1.5.0-py3-none-any.whl |
|---|---|
| Size | 299.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5bb339fb0acd1c13cacd81026de893649579b6740269c97fe11fc4931a383ff0
|
|
BLAKE2b-256 checksum How to use checksums |
774b9aa6545f198d4d7d8f64e43b4552ca10fb7b7286ce38c779aa483268eb0c
|
| 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.5.0
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.