Changelog
Every added feature, behavior change, fix and security note, version by version. Generated from CHANGELOG.md.
All notable changes to Lcore will be documented here.
0.0.6 (2026-11-15)
Added
- JSON errors by content negotiation. Any request with
Accept: application/json(listed beforetext/html) gets{"error": "<message>", "status": N}forHTTPError, 404 and 500 alike; browsers still get the HTML page.error.format = 'json'still forces it, and its body now carries the real message instead of the status text.
TestClientcookie jar.Set-Cookieis replayed on later requests (client.cookies;TestClient(app, cookies=False)disables it).TestResponse.get_all(name)returns repeated headers such asSet-Cookie.
rate_limit(single_process=True)silences the in-process warning for single-worker apps.
request.json_or(default),TestClient(follow_redirects=True), and type checking ofvalidate_request(query=...)values (400 with afieldsmap).
run()refuses thewsgirefdevelopment server on a non-loopback host unlessdebug=Trueordev_server_ok=True. Breaking for anyone runningapp.run(host='0.0.0.0')without a real server.
- Port-in-use message instead of a raw
OSError, and a warning when thewsgirefdevelopment server is used.
Changed (behavior)
- Request bodies are capped at 10 MB by default (
config['request.max_body'],0= unlimited). Larger uploads now get 413 unless you raise it.BodyLimitMiddlewarestill overrides per app.
SecurityHeadersMiddlewarenow runs before routing, so unmatched-route 404s get the headers. A handler's own header of the same name now wins, andskip=['security_headers']no longer applies.
X-XSS-Protectiondefault is0(the legacy filter caused holes).CSRFMiddleware(secure=None)now setsSecureautomatically on HTTPS requests.
validate_requestis stricter:null, dicts and lists no longer pass asstr;nan/inf, fractional ints and non-boolean junk forboolare rejected;Optional[...]accepts an explicitnull.
- Static files: ETags are quoted, weak (
W/) and listedIf-None-Matchvalues match, and 416 sendsContent-Range: bytes */size.
Acceptnegotiation honours q-weights when choosing JSON or HTML errors.
- JSON responses honour
json.enable,json.dump_func,json.ascii,json.indent. Defaults changed to match the docs: non-ASCII is emitted as UTF-8 (was\uXXXX), no indentation. A returnedlistof non-strings is now serialised as JSON, as documented; error handlers may return adict; adictthat reaches the response layer without the JSON plugin is a 500, not a key-by-key body.
- Config bool strings are strict:
validate_configaccepts true/1/yes/on and false/0/no/off; anything else is an error. Fieldmax_bodynow matches a literalmax_bodykey beforemax.body.
- Post-routing middleware (request id, logging, compression) now also wraps 404 and 405 responses.
CompressionMiddlewareparsesAccept-Encodingproperly (q=0, case,x-gzip...lookalikes), mergesVary, addsVaryfor every compressible response, compressesimage/svg+xml, and no longer turns error responses into empty 200s.
verify_passwordonly acceptssha256/sha512and at most 10,000,000 iterations from a stored hash.
rate_limit(backend=...)takes any object withconsume(), andmax_bucketsis enforced on every insert.
Router.build/get_urlpercent-encode path values.
run()raisesValueErrorfor an unknown server name;on_shutdownhooks run once;trigger_hookreturns the list of results.
- A text field larger than the in-memory limit in a multipart POST is rejected (400) instead of silently disappearing from
request.forms.
- Signed cookies keep the type of their value (dict, int...) instead of its
str().
- Faster than 0.0.5 on every path (per-request latency, same machine, interleaved A/B): plaintext -39%, JSON -20%, two middleware layers -41%, POST JSON -27%, error pages -18% to -29%. From a cheaper context setup, cached header names, skipped hook calls, a
str/bytesfast path, a single-pass header list, a precomputed middleware chain, a template-free default error page, and one-call small request bodies. Benchmark table in the README and docs updated.
Fixed
- Invalid UTF-8 in a request path crashed the error page (and the last-resort 500 handler). Now a clean 404.
- Chunked request bodies failed when the bytes arrived in one read; they now parse, and over-limit chunked bodies return 413.
request.max_body = 0("unlimited") broke every multipart upload.
- Malformed multipart parts (bad part
Content-Length, unknown charset, invalid UTF-8) and deeply nested JSON returned 500; they return 400.
static_file: NUL in a name returned 500; an unknownRangeunit returned 416;If-Modified-Sincewas honoured despite a non-matchingIf-None-Match.
- Bad template lookups raised
None(aTypeError) instead ofTemplateError.
set_cookieaccepted;inpath/domainand garbagemax_age/expires.set_headeraccepted invalid header names. Generators mixingstrandbytescrashed mid-stream. Text file-likes (StringIO) returned an invalid body.
RequestIDMiddlewareechoed anyX-Request-ID; only[A-Za-z0-9._-]{1,128}is accepted now.RequestLoggerMiddlewarelogged 200 for error responses and uncaught exceptions.auth_basicdid not escape its realm.remote_addrcould return''for emptyX-Forwarded-Forentries.
validate_requestaccepted'abc'forlist;query=values are now coerced likebody=.
_run_asynchid a coroutine's ownRuntimeError.load()allowed dunder attributes. The CLI printed raw tracebacks for a bad app target or port.
- Concurrent writes to one session lost each other's keys (the whole record was overwritten on save). Changes are now merged key by key against the stored record, atomically in
MemorySessionBackend(lock),SQLiteSessionBackend(BEGIN IMMEDIATE) andRedisSessionBackend(WATCH/MULTI); a session revoked meanwhile is no longer resurrected by a late write. New optionalSessionBackend.merge()with a default for custom backends. Same-key races are still last-writer-wins.
RedisSessionBackendtruncated fractional TTLs to 0 (Redis rejects it) and left a session in the old user's index when it was re-saved under another user. The session tests now run against a live Redis too.
- Malformed
Content-Typeparameters (e.g.;charsetwith no value) returned 500; they are now ignored.
- Rate limiter cleanup could raise
RuntimeErrorwhen other threads inserted buckets at the same moment.
redirect()with a line break in the URL returned 500; it now returns 400.
BackgroundTaskPool.submitrebuilt its whole future list on every call (quadratic under bursts); it now uses a set.
- CORS adds
Vary: Originfor rejected origins whenallow_originsis a list.
validate_requesterrors were wrapped in the HTML error page, so clients had to scrape a<pre>tag. The JSON body is now returned as is.
validate_requestskipped validation for an empty body, letting required fields through. It now returns 422.
- Docs said malformed
request.jsonreturnsNone. It raises 400 "Invalid JSON"; docs corrected.
0.0.5 (2026-09-22)
Added
- Server-side sessions.
SessionMiddlewarestores session state in a backend and puts only a signed session id in the cookie, so a session can be revoked after it is issued. Signed cookies alone cannot be taken back, which ruled out forced logout, sign-out-everywhere after a password reset, and server-side cart invalidation.
- Three session backends.
MemorySessionBackendfor development (warns that it is per-process),SQLiteSessionBackendfor single-server production (stdlib only, and WAL journalling plus a busy timeout make it safe across worker processes, so the zero-dependency promise holds), andRedisSessionBackendfor multi-server deployments.SessionBackendis a documented ABC with seven methods for custom stores.
- Two independent revocation mechanisms, implemented by every backend. A per-user index of live session ids powers
list_sessions()for an active-devices page andrevoke_other_sessions(). A per-user epoch counter, stamped into a session when it is bound to a user, invalidates every session issued before abump_epoch()without walking the index.revoke_all()does both, and is what a password reset should call.
- Session fixation protection.
session.bind_user()regenerates the session id by default, so an id planted before login does not survive it.
- Per-process epoch caching. Checking the revocation epoch on every authenticated request meant a second backend round trip on top of loading the session. Backends now cache it for
epoch_cache_ttlseconds (default 5), which removes that read almost entirely: ten authenticated requests cost one lookup instead of ten. A bump in the same process drops the cached entry immediately, so local revocation stays instant; only another worker's bump waits out the TTL, andrevoke_all()deletes those sessions through the index anyway. Setepoch_cache_ttl = 0to read through.
SessionMiddleware(on_backend_error=...). Sessions cannot fail open the way rate limiting does, since ignoring the store means ignoring revocation. The default'unavailable'raises 503, so a login that could not be stored never sets a cookie or reports success.'anonymous'keeps the site up with users signed out, and'raise'defers to your own error handler. A failed idle-TTL refresh is logged and ignored, because the session is valid until its existing TTL expires.
__all__.from lcore import *previously exported 214 names including 28 stdlib modules, shadowing the caller'sos,re,time,sysandhashlib. It now exports 163 names, grouped by area, including the module-level routing shortcuts (get,post,route,mount,hook,use, ...), theRequest/Responsealiases, the template shortcuts (jinja2_template,jinja2_view,mako_template, ...),ext,json_dumps/json_loadsandserver_names, sofrom lcore import *still works for the classic single-file style. The guard that checks__all__against every public definition (tests/test_api_surface.py) now also walks module-level assignments, not justdef/class, since the template shortcuts arefunctools.partial(...)assignments and the first cut of the guard couldn't see those.
Fixed
CompressionMiddlewarestreams large bodies instead of buffering them. An iterable body was collected in full before compressing, so a 20MB streamed response cost about 40MB of RAM per concurrent request and gave up the benefit of streaming entirely. Bodies overstream_threshold(default 256KB) are now compressed incrementally withzlib.compressobj, holding memory flat: the same 20MB response measured 40.5MB peak before and 0.6MB after. Everything smaller is unchanged, including itsContent-Length, and thestr/bytespath that ordinary responses take is byte-for-byte what it was. A streamed body dropsContent-Length, since the compressed size is not known until it ends. The streamed body's source is now closed even if the wrapping generator is discarded before it is ever iterated (a bare generator's ownfinallynever runs in that case), which previously leaked a file/cursor handle whenever a later middleware discarded the response before the WSGI layer touched it.
TimeoutMiddlewareno longer breaks every handler that touchesrequest. It runs the handler in a thread pool, butrequest,responseandctxare thread-locals bound in the serving thread, so a pool thread had none of them. Any handler readingrequestdied withRuntimeError: Request context not initializedand returned 500, which is close to every handler that does real work. The worker's response is now seeded with a snapshot of whatever pre-phase middleware (CORS, CSRF, ...) already set, so a handler can read, overwrite or delete it exactly as it would in a single unthreaded response - an early version of this fix merged the worker's response back additively, which meant a handler deleting a pre-phase-set header crashed withKeyErrorand installingTimeoutMiddlewarealone could silently change which of two conflicting header values (e.g. compression's ownVary: Accept-Encodingvs. CORS'sVary: Origin) survived.ctx.stateandctx._lazyare shared dicts, so sessions and dependency-injection scope survive the hop for free, andctx.user/ctx.route/ctx.request_id(thread-local__slots__, not part of those dicts) are copied back explicitly once the worker finishes. The middleware previously had no tests at all; it now has 18, including the header-delete and raising-handler cases above.
ProxyFixMiddleware(num_proxies=N)now does something. The parameter was accepted and stored but never read, so the documented call silently fell back to trusting loopback addresses only. It now enables hop-count trust: the last NX-Forwarded-Forentries are trusted regardless of peer IP, matching Werkzeug'sProxyFixmodel, falling back toREMOTE_ADDRwhen the chain is shorter than N.remote_addrandurlpartsboth honour it. The default changed from1toNone, so zero-argument behaviour is unchanged.
set_cookie()no longer emits attributes that have no value. Passingdomain=Nonerendered the literal stringDomain=Noneinto theSet-Cookieheader, which browsers reject. Attributes whose value isNoneare now omitted, exceptsamesite, whereNoneis a meaningful explicit value (SameSite=None, the cross-site opt-in) rather than "omit this attribute".delete_cookie()is unaffected: itsexpires=0andmax_age=-1are still emitted.
load()no longer accepts anamespace it ignores.** The parameter was the globals dict for aneval()that has since been replaced by a safegetattrchain, so it could not affect the result. Passing one now raisesTypeErrorinstead of being silently discarded.
- A freshly bound-in session is no longer deleted by another worker's stale epoch cache.
SessionMiddlewarecompared a session's stamped epoch to the cached epoch with!=instead of<. Epochs only increase, so a session stamped moments afterrevoke_all()on one worker could be stamped with epoch 1 while a second worker's 5-second epoch cache still held 0;1 != 0rejected the brand-new, fully valid session and_open()deleted it, repeating on every request from that worker for up toepoch_cache_ttlseconds. Now<, which only rejects sessions stamped *before* the current epoch.
- A concurrent revoke could no longer be undone by its own cache.
cached_epoch()is deliberately unlocked, but a thread already blocked in a backend read for the old epoch could still write it into the cache *after* a same-processbump_epoch()/_forget_epoch()had already run and found nothing to invalidate, silently reviving a just-revoked epoch for up toepoch_cache_ttlseconds in the very process that performed the revoke. A generation counter, bumped alongside the cache invalidation, now detects that race and skips caching the possibly-stale read.
Session.bind_user(regenerate=False)no longer leaves a session cross-linked to the wrong user. Rebinding an existing sid to a different user without regenerating it left the old user's index still pointing at a session that now belonged to someone else, solist_sessions()could show another user's device andrevoke_all()/revoke_other_sessions()could revoke another user's live session.bind_user()now unindexes the sid from its previous user before rebinding it;MemorySessionBackendandRedisSessionBackendimplement the newunindex()hook,SQLiteSessionBackendneeds no override since itsuidcolumn is the source of truth.
MemorySessionBackend(max_sessions=N)is now actually enforced. It only evicted *expired* sessions when at capacity, so a flood of still-live sessions (e.g. one per anonymous visit) grew the store pastmax_sessionswithout bound. It now falls back to evicting the oldest-inserted sessions when nothing has expired.
RedisSessionBackend's per-user index can no longer expire out from under a live session.save()unconditionally reset the index key's TTL to whateverttlthat particular save used, so a shorter-lived save (or a plainbackend.touch(sid, short_ttl)) after a long-lived one could shrink the whole index's expiry below a co-existing longer-lived session's -list_user()/revoke_user()/revoke_all()would then silently see zero sessions for that user while the session itself was still valid. A small Lua script now extends the index's TTL but never shrinks it.
SQLiteSessionBackend.revoke_user()no longer overcounts. It deleted and counted every row for a uid with noexpires > nowfilter, unlikelist_user()'s equivalent query, so an account page could report "signed out of 4 devices" whenlist_user()had only ever shown 1 live one - the extra 3 were rows that had expired but not yet been swept.
Session.pop()/setdefault()/clear()no longer mark the session dirty on a no-op. All three set the dirty flag unconditionally, so the common flash-message idiomrequest.session.pop('flash', None)cost a backend write and a freshSet-Cookieon every request that merely checked for one, defeating the "reads are free" design this feature is built on. They're now dirty only when something actually changed.
- A dependency named
'session'no longer silently collides withSessionMiddleware. Bothapp.inject('session', ...)andSessionMiddlewarepublish throughctx.session; depending on the dependency's lifetime, one would silently shadow the other with no error.SessionMiddlewarenow raises a clearRuntimeErrorif a'session'dependency is already registered. Separately,DependencyContainer.register()rejects any name that resolves through aRequestContext/LocalContextattribute or method (user,route,request_id,lazy, ...), since those are found beforectx.__getattr__ever runs and a same-named dependency was silently unreachable viactx.<name>.
TestClient'swsgi.errorsstream no longer crashes on an unhandled exception. It was aBytesIO, but the framework's own error logging (and WSGI generally) writesstrtowsgi.errors; any exception in a handler tested throughTestClientraisedTypeError: a bytes-like object is required, not 'str'instead of turning into the 500 response the app actually produced. Now aStringIO, matchingtests/helpers.py's existing (correct) setup.
- The
async defroute warning now actually fires.Route._make_callback()checked_is_async()on the callback *after* the plugin loop, butJSONPlugin(auto-installed on every app) already wraps every callback in a plain sync function before that point, so the check only ever saw JSONPlugin's wrapper - the warning was dead code except on a route that explicitly didskip=['json']. It now checks the route's own callback before plugins touch it, so everyasync defroute warns as documented, naming the route, the first time it's invoked.
Internal
- Added an API surface guard (
tests/test_api_surface.py). Three shipped bugs shared one shape: a parameter accepted but never read. None of them raised, none failed a test, and all were invisible with default arguments. The suite now walks lcore's AST and fails if any public parameter is ignored, or stored onselfand never consulted, with an allowlist for contract signatures such as the WSGI and importlib protocols. Cookie attributes and the CSRF and session cookie options are now exercised at non-default values.
- Session backend round trips and lock time reduced.
MemorySessionBackendstores each session's uid alongside its record instead of inside the JSON blob, so dropping or listing a session no longer parses it just to find who owns it.RedisSessionBackend.delete()no longer does aGET+parse purely to locate the per-user index entry to prune (the index already tolerates and lazily prunes dead members on read); it's a singleDEL.SQLiteSessionBackend.bump_epoch()is oneINSERT ... ON CONFLICT DO UPDATEinstead of anUPDATEplus a conditionalINSERTplus a re-read, and its periodic cleanup sweep is now bounded (cleanup_batch, default 1000 rows) instead of a single unboundedDELETEover every session that expired since the last sweep, which could turn one unlucky request into a full-table scan holding a write transaction.RedisRateLimitBackendandRedisSessionBackendnow share one internal helper for constructing and closing the redis-py client instead of duplicating the import guard andfrom_url()call.
- Measured
TimeoutMiddleware's per-request cost, and trimmed the avoidable part of it. It had never been benchmarked: on a trivial handler it costs roughly 30µs/request versus a bare route (~9µs), against a ~7-8µs floor for theThreadPoolExecutorsubmit/result round trip alone. The gap was partly a redundantctx.bind()inside the worker - reallocatingstate={}/_lazy={}and zeroingroute/user/request_idonly to overwrite all of it two lines later - which is now a single direct assignment per slot instead. The remaining gap (response snapshot in, response snapshot out) is inherent:request/responsearethreading.local()-backed singletons, so some copying across the thread boundary is unavoidable without going back to the blank-worker-response design that caused the header-delete crash above. ApplyTimeoutMiddlewareto specific slow/unpredictable routes viaapp.use(TimeoutMiddleware(...), routes='/slow/*')rather than globally if this matters for your workload.
Changed
CSRFMiddlewarewarns whensecret=is omitted. A random per-process secret means that under multi-worker deployment a token cookie signed by one worker fails verification on another, so legitimate submissions are rejected with 403.SessionMiddlewarecarries the same warning, where the symptom is users being logged out at random.
0.0.4 (2026-05-22)
Fixed
- HTTPError.apply() now merges headers instead of replacing them. Headers set by a handler before raising
HTTPErrorare preserved. This meansresponse.set_header('Content-Type', 'application/json')followed byraise HTTPError(401)now correctly returns JSON instead of HTML.
request.jsonand URL-encoded POST body no longer have a silent 100KB limit. They now useself.body.read()which respectsBodyLimitMiddlewareand spills to disk for large payloads. Previously, a JSON body >100KB was rejected with 413 even whenBodyLimitMiddlewareallowed it.
- Multipart
disk_limitnow respectsBodyLimitMiddleware. The multipart parser's disk limit is set from the body max size in environ (default 1GB), so configuringBodyLimitMiddleware(max_size=50*1024*1024)also limits multipart uploads.
skipparameter now works for middleware, not just plugins.app.post('/login', skip=['csrf'])correctly exempts the route fromCSRFMiddleware.
Added
- Pre-routing middleware phase. Middleware classes can now set
phase = 'pre'to run *before* route matching. This fixes CORS preflight (OPTIONSrequests no longer get 405), CSRF cookie setting, and body limit enforcement all running before the router.CORSMiddleware,CSRFMiddleware,BodyLimitMiddleware, andProxyFixMiddlewaredefault tophase = 'pre'.
error.formatconfig key. Setapp.config['error.format'] = 'json'to make all error responses return JSON instead of HTML. No more per-status-code error handlers needed for JSON APIs.
HTTPErrornow acceptscontent_typeparameter.raise HTTPError(401, body=json_dumps({"error": "Unauthorized"}), content_type='application/json')sets the correct Content-Type in one line.
load_dotenv()function. Loads.envfiles intoos.environwith zero dependencies. Called automatically byapp.run(). Also available asfrom lcore import load_dotenv.
app.config['proxy.trusted']config key. Set it to a list of trusted proxy IPs (or comma-separated string) to auto-enable proxy header trust without needingProxyFixMiddleware.request.remote_addrandrequest.urlpartswill trustX-Forwarded-*headers from these IPs.
Changed
validate_requestdecorator improved. Now supportsOptional[type]for optional fields, auto-coerces types (e.g. string to int), strips whitespace from strings, and returns structured JSON errors with{"error": "Validation failed", "fields": {...}}format.
set_cookienow defaults tosamesite='Lax'andhttponly=True. Secure by default; override with explicit keyword arguments when you need JS-readable cookies (e.g. CSRF tokens).
Security
- Chunked transfer parser hardened against slow-loris DoS. Previously read chunk headers one byte at a time with no timeout; now uses buffered reads with a configurable cap.
static_file()TOCTOU fix. The file is now opened before symlink and path-traversal checks, pinning the inode. On Linux, the real path is resolved through/proc/self/fd/<n>for an atomic check.
FileUpload.save()TOCTOU fix. Uses Python's'x'exclusive-create mode instead ofos.path.exists()+open(), eliminating the race between the existence check and the file write.
- Multipart filename sanitization added at parse time. The raw
_MultipartPart.filenamenow strips directory separators viaos.path.basename()as defense-in-depth, beforeFileUpload.filenamedoes its full sanitization pass.
- Error page template no longer uses
repr()in HTML context. The auto-escaping{{ }}template expression handles URL escaping directly.
.envquote stripping fixed. Only strips matching quote pairs ("..."or'...') rather than all leading/trailing quote characters, preventing mangling of values like"it's".
0.0.2 (2026-02-23)
Fixed
- PyPI project page logo not rendering (relative path → absolute URL in README)
0.0.1 (2026-02-23) - Initial Release
First public release of Lcore. 🎉
Framework Core
- Full WSGI compliance - works with Gunicorn, uWSGI, Waitress, Gevent, and 21 server adapters
server='auto'auto-selects the best available server at startup
- Single-file distribution (
lcore.py) - zero external dependencies, pure Python 3.8+ standard library
- Route decorator API -
@app.route,@app.get,@app.post,@app.put,@app.delete,@app.patch
- Typed URL parameters -
<name:int>,<name:float>,<name:path>,<name:uuid>,<name:slug>
- Route groups with shared prefix and middleware
async defroute handler support (WSGI-constrained - worker thread is blocked; documented caveat)
Request / Response
request.json,request.form,request.files,request.query,request.headers,request.cookies
request.remote_addrwithProxyFixMiddlewaresupport
- Fluent response builder -
response.set_header(),response.set_cookie(),response.set_status()
- Built-in JSON serialization via
json(optionalujsondrop-in)
- Streaming and file responses
Middleware (7 built-in)
CORSMiddleware- configurable origins, methods, headers, credentials
CSRFMiddleware- double-submit cookie pattern
SecurityHeadersMiddleware- HSTS, X-Frame-Options, CSP, X-Content-Type-Options
CompressionMiddleware- gzip response compression
BodyLimitMiddleware- max request body size enforcement
RequestIDMiddleware- unique request ID header injection
LoggingMiddleware- structured request/response logging
TimeoutMiddleware- per-request deadline with persistent thread pool
ProxyFixMiddleware- trusted reverse proxy IP and scheme fix
Security
hash_password/verify_password- PBKDF2-SHA256 with per-password salt
- HMAC-SHA256 signed cookies
@rate_limit(n, per=seconds)- in-process token bucket with 64-stripe locking
RedisRateLimitBackend- cross-worker rate limiting; fails open on Redis outage
- Timing-safe string comparison utilities
Dependency Injection
@app.provide- singleton, scoped, and transient lifetimes
- Constructor and parameter injection
Plugin System
setup/applyplugin lifecycle
- Built-in JSON plugin, template plugin
- Custom plugin support
Request Validation
@validate_request(body={...}, query={...})- type-checked JSON body and query params
Templates (4 engines)
- Built-in
SimpleTemplate(no deps)
- Adapters for Jinja2, Mako, and Cheetah
Lifecycle Hooks (12 hooks)
on_request,on_auth,before_handler,after_handler,on_response,on_send,on_error,on_shutdown, and more
Background Tasks
BackgroundTaskPool- fire-and-forget task pool with configurable worker count and graceful shutdown
Module Mounting
app.mount(prefix, sub_app)- compose sub-applications with isolated routes and middleware
Testing
TestClient- in-process test client, no server required
- 449 tests using only
unittestfrom the standard library
Performance
Benchmarked at 100,000 iterations × 3 runs (pure framework overhead, single process):
| Test | Lcore req/s | Flask req/s | vs Flask |
|---|---|---|---|
| Plaintext | 122,715 | 30,500 | 4.0x |
| JSON | 95,910 | 26,403 | 3.6x |
| Route Params | 90,332 | 24,784 | 3.6x |
| Middleware | 53,113 | 24,261 | 2.2x |
| 404 Miss | 37,191 | 16,802 | 2.2x |
| Multi-Route | 96,812 | 27,488 | 3.5x |
| POST JSON | 62,963 | 21,149 | 3.0x |
Compatibility
- Python 3.8, 3.9, 3.10, 3.11, 3.12, 3.13
- Linux, macOS, Windows
- All standard WSGI servers
Links
- PyPI: https://pypi.org/project/lcore/
- Docs: https://lcore.lusansapkota.com.np
- Playground: https://play-lcore.lusansapkota.com.np
- Source: https://github.com/Lusan-sapkota/lcore
_Lcore follows Semantic Versioning. During the 0.x series, minor versions may include breaking changes._