nsj-rest-lib2
Biblioteca para permitir a distribuição de rotas dinâmicas numa API, configuradas por meio de EDLs declarativos (em formato JSON).
Decision gist · record as of 2026-08-14
Yes, with conditions. Install if you are building Flask applications that need rapid, declarative API generation from entity schemas and can accept an Alpha-stage library. The low install friction and active maintenance are favorable. However, verify the license terms in the GitHub repository first, and confirm that the dependency chain (redis, pydantic, nsj-rest-lib, nsj-multi-database-lib, black, pyyaml) aligns with your infrastructure. Not suitable for production use without thorough testing.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Flask application and Python >= 3.4; depends on nsj-rest-lib, redis, nsj-multi-database-lib, pydantic, black, and pyyaml at runtime.
- Low install friction with a pure-Python wheel distribution.
- Marked as Alpha (Development Status :: 3), last released 154 days ago with active maintenance status.
License · maintenance · safety
(unclear) — License treatment is unclear—no SPDX identifier or raw license text is declared in package metadata. Verify the actual license terms in the GitHub repository before adopting in proprietary or restricted-distribution projects.
last release 2026-03-13 (154 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 133,469 downloads/mo, #11,512 on PyPI
Alternatives
Verify before relying
pip install nsj-rest-lib2
from nsj_rest_lib2.controller.dynamic_controller import setup_dynamic_routes
setup_dynamic_routes(application, edls_path="@schemas/entities")- Whether the package works reliably with modern Python versions given the minimum requirement of >= 3.4.
- Performance characteristics and scalability limits for large numbers of entities or concurrent API requests.
- Production readiness and stability guarantees beyond Alpha status.
What it is and what it does
RestLib2 is a Flask-based framework that generates REST APIs from declarative JSON entity definitions (called EDLs) without requiring traditional imperative programming. You describe your business entities and their relationships in JSON, and the framework automatically exposes them as REST endpoints with standard operations.
The package supports two deployment modes: versioning EDL files in a Git repository for CI/CD-driven compilation, or posting entity definitions directly to a control API for immediate dynamic compilation. It can load EDLs from disk, redis, or both. Configuration is minimal—set an environment variable for scope identification, call setup_dynamic_routes() in your Flask app's initialization, and the framework handles route registration, validation, and request handling.
Use it for
- Rapidly prototype and deploy CRUD APIs for business entities without writing endpoint handlers.
- Build multi-tenant platforms where each tenant's data model is defined declaratively in JSON.
- Enable non-developers to define new API endpoints by editing JSON schemas.
- Manage versioned entity definitions in Git and automatically compile them during CI/CD pipelines.
- Deploy entity definitions dynamically at runtime via the control API without restarting the application.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
Install if you are building Flask applications that need rapid, declarative API generation from entity schemas and can accept an Alpha-stage library. The low install friction and active maintenance are favorable. However, verify the license terms in the GitHub repository first, and confirm that the dependency chain (redis, pydantic, nsj-rest-lib, nsj-multi-database-lib, black, pyyaml) aligns with your infrastructure. Not suitable for production use without thorough testing.
Install
nsj-rest-lib2 on PyPI
Before you install
Low install friction with a pure-Python wheel distribution. Marked as Alpha (Development Status :: 3), last released 154 days ago with active maintenance status.
Requires Flask application and Python >= 3.4; depends on nsj-rest-lib, redis, nsj-multi-database-lib, pydantic, black, and pyyaml at runtime.
License in practice
License treatment is unclear—no SPDX identifier or raw license text is declared in package metadata. Verify the actual license terms in the GitHub repository before adopting in proprietary or restricted-distribution projects.
Quickstart
pip install nsj-rest-lib2
from nsj_rest_lib2.controller.dynamic_controller import setup_dynamic_routes
setup_dynamic_routes(application, edls_path="@schemas/entities")
Verify before relying
- Whether the package works reliably with modern Python versions given the minimum requirement of >= 3.4.
- Performance characteristics and scalability limits for large numbers of entities or concurrent API requests.
- Production readiness and stability guarantees beyond Alpha status.
Package facts
| License | Not declared unclear |
| Python support | Supports the current Python release >=3.4 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 6 packagesnsj-rest-libredisnsj-multi-database-libpydanticblackpyyaml |
| Maintenance | Actively maintained 154 days since the last release |
| First released | |
| Downloads | 133,469 / month, #11,512 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: DevelopersProgramming Language :: Python :: 3Topic :: Software Development :: Libraries |
Evidence: nsj_rest_lib2-0.0.41-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “declarative api generation”
- nsj-rest-lib2Generates REST APIs dynamically from declarative JSON entity schemas…
- nsj-rest-libnsj-rest-lib builds declarative REST APIs for CRUD operations (GET,…
- attrsattrs is a Python library that automatically generates common class…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also nsj-rest-lib · nsj-sql-utils-lib · nsj-gcf-utils · nsj-queue-lib · dydantic · Flask-JSON · marshmallow-mongoengine · xsdata · Flask-RESTful · marshmallow-sqlalchemy