-----------------------------
This is yet another framework to help develop web applicattions
with python. The difference is that it is oriented to create
applications with The Dojo Toolkit, trying to facilitate a set
of wrappers to generate the javascript sent to the client and
providing help to work with the AMD loader.
Pyojo provides decorators to set up the route map and assign
some functions or classes to certain URLs, but it also can be
used creating python modules in a folder structure, where the
name of the module defines the content type, and the returned
value of a function named GET, POST, PUT or DELETE is the
response.
The minimal "Hello World":
import pyojo
from pyojo import server
@pyojo.route("/")
def Home():
return "Hello World!"
server.main()
A basic example with javascript:
import pyojo
#Redirect to index.html
@pyojo.route("/")
def Home(request):
return request.static("index.html")
And then a couple of modules at ./srv (the default folder) will
handle this request:
srv/index_html.py:
def GET(request):
return '''<html>
<body><script src='main.js'></body>
</html>'''
srv/main_js.py:
def GET(request):
return "alert('Hello World!');"
But the real power is in the pyojo.js modules, offering a set
of code generation utilities for your Dojo application.
Metadata
Release files for pyojo 0.0.2
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 | |
|---|---|---|---|---|
| pyojo-0.0.2.zip | 203.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyojo-0.0.2-py2.7.egg | Legacy Egg format | - | - | Details |
Total release size: 433.1 kB
Release files / pyojo-0.0.2.zip
| Download URL | pyojo-0.0.2.zip |
|---|---|
| Size | 203.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9257563431d117cf3be4cb4dfa7976cc0cefaf70d465a2009e016b01ded631ac
|
|
BLAKE2b-256 checksum How to use checksums |
522b6c3c6c2352b15054c3f3fbdfcaf0027ba6a9467aa8c931c98a1cf758e2ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pyojo-0.0.2-py2.7.egg
| Download URL | pyojo-0.0.2-py2.7.egg |
|---|---|
| Size | 229.7 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
443b2d2ee5086e206ffd0ca489238220d5f18f044df451503a43acb151077934
|
|
BLAKE2b-256 checksum How to use checksums |
4c74c2d530d737b6ba3d8d0c2c4e3407430df9d55e59cfab1d3e0173469e3b4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyojo 0.0.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.