This release is a pre-release and may not be stable for production use.
Tanoshi
A fast, asyncio based web-framework, that you'll enjoy using.
Read the docs.
Why Tanoshi and what is it?
Tanoshi is a fast, asyncio based web-framework, that you'll really enjoy using. Tanoshi is built to revolve around your design decisions, not ours. Tanoshi has no boiler-plate code what so ever, allowing you to have an extremely flexible code base structure. Tanoshi can also be a heavy-weight framework if you choose to opt-in to it's heavy-weight features, such as a database ORM, as well as adaptable authentication. Tanoshi allows you to quickly prototype, as well as expand and scale quickly!
It's in the name! - Tanoshi (楽しい) - Enjoyable
Key Features
- Modern
asyncandawaitsyntax. - Seriously impressive performance thanks to Starlette.
- Opt-in heavy-weight features such as a fully-fledged database ORM.
- Extremely flexible.
- Jinja Templating Support.
- Session and Cookie Middleware.
- Quick and easy to get started with.
Examples
from tanoshi import Tanoshi
from tanoshi.shortcuts import render, redirect
app = Tanoshi(
name="MyTanoshiApplication",
debug=True,
templates_directory="templates/"
)
@app.route("/", methods=["GET", "POST"])
async def index(request):
context = {
"message": "Hello Tanoshi!",
"moreData": ["guido", "van", "rossum"]
}
return render(request, "index.html", context)
@app.route("/redirect")
async def redirect_route(request):
return redirect("https://www.python.org/")
Running tanoshi
Running tanoshi on a production server is super simple. Let's use the example above to learn how to run tanoshi. First, you'll need to install a production server such as uvicorn, which is the one I personally recommend. Simply run pip instal uvicorn to install uvicorn. Now, if you placed the example code into a file called main.py, you'd need to run uvicorn main:app inside the directory where your main.py file is housed.
This process is exactly the same as other asgi frameworks, no changes there!
Metadata
Release files for tanoshi 0.0.1a0
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 |
|---|---|---|---|---|
| tanoshi-0.0.1a0.tar.gz | 4.9 kB | Without provenance | Details for tanoshi-0.0.1a0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tanoshi-0.0.1a0-py3-none-any.whl | Python 3 | none | any | Details for tanoshi-0.0.1a0-py3-none-any.whl |
Total release size: 10.5 kB
Release files / tanoshi-0.0.1a0.tar.gz
| Download URL | tanoshi-0.0.1a0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
af12af72d7d9848fd4207bbca4ea8eb9747648523d752887c1c9fc4da0476592
|
|
BLAKE2b-256 checksum How to use checksums |
1554a33066fca647e3cb8ebe5c4c45b4eef79261c272ae38dd253575aae333de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|
Release files / tanoshi-0.0.1a0-py3-none-any.whl
| Download URL | tanoshi-0.0.1a0-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a1df4090b294c630195cf6bdaf35073da970cc7c476860edab57531fa95b3d64
|
|
BLAKE2b-256 checksum How to use checksums |
ae80d077774cbfa79e2f626a4b2b86b8a2cc62524b76c9747ca1697b18cc47ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|
Security for tanoshi 0.0.1a0
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.