Registry / devops / arcframework

arcframework

JSON →
library2.7.1pypypi✓ verified 80d ago

A Python micro web framework for creating dynamic websites. Current version 2.7.1, requires Python >=3.8, and follows a stable release cadence.

pip install arcframework
INSTALL
IMPORT
SIG · ARCFRAMEWORK
A
arcframework
devopspythonv2.7.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

App
from arc import App
from arc import Arc

Simple web server with a single route.

from arc import Arc app = Arc() @app.route("/") def home(req, res): return res.html("<h1>Hello, World!</h1>") if __name__ == "__main__": app.run()
Debug
Known issues
breakingIn version 2.0, the API changed significantly. The previous `@app.route` decorator no longer works with the same callback signature. Use `(req, res)` instead of `(req)`.
fix
Update all route handlers to accept two arguments: `def handler(req, res):`.
affects: >=2.0
gotchaThe library is imported as `arc`, not `arcframework`. Using `import arcframework` will raise ModuleNotFoundError.
fix
Always use `from arc import ...` or `import arc`.
affects: all
deprecatedThe `app.run` method's `port` parameter is deprecated in favor of `host` and `port` keyword arguments. In future versions, positional arguments may break.
fix
Use `app.run(host='0.0.0.0', port=8000)` instead of `app.run(8000)`.
affects: >=2.5
Upgrade
Version history
2.7.1latest on PyPI · released Mar 10, 2021
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
16
Amazon
1
OpenAI (training)
1
Resources
arcframework — pip install arcframework · libregistry