what's a yeet?
quickstart
Run app
import os
from controllers import HomeController, ArticlesController
from examples.constants import INIT_QUERIES, DB_SETTINGS
from python_yeet.app import Yeet
from python_yeet.db import Database
app = Yeet(name=os.path.basename(os.getcwd()))
app.add_route(r'^articles/$', ArticlesController(methods=['GET', 'POST']))
app.add_route(r'^.*$', HomeController)
db = Database(db_settings=DB_SETTINGS,
init_queries=INIT_QUERIES)
app.run()
Create model example
import datetime
from python_yeet.orm import BaseModel, BaseManager
class Article(BaseModel):
table_name = "articles"
manager_class = BaseManager
id: int
title: str
text: str
author: int
created_at: datetime.datetime
Create controller example
from examples.models.article import Article
from python_yeet.controllers import BaseController
class ArticlesController(BaseController):
def get(self, path):
return self.render_template('articles.html', articles=self._get_articles())
@staticmethod
def _get_articles():
articles = Article.objects.select("id", "title")
return articles
Metadata
Release files for python-yeet 1.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 | Actions |
|---|---|---|---|---|
| python_yeet-1.0.2.tar.gz | 5.7 kB | Without provenance | Details for python_yeet-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_yeet-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for python_yeet-1.0.2-py3-none-any.whl |
Total release size: 13.1 kB
Release files / python_yeet-1.0.2.tar.gz
| Download URL | python_yeet-1.0.2.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e47b2cef3322b9e4983ca6e649a99e78a1e50d587e6ddb65b8f8a31ccca5eac4
|
|
BLAKE2b-256 checksum How to use checksums |
e872ffd2d5269c4bec910d99c22c5f1e90274a6452866638816228efe5e9b826
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.0 CPython/3.10.2 Windows/10
|
Release files / python_yeet-1.0.2-py3-none-any.whl
| Download URL | python_yeet-1.0.2-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f01f84983cc2fa24eed41c628b72ef56d49c5bf0b2b31975671eb6e9e7ffdcf4
|
|
BLAKE2b-256 checksum How to use checksums |
b57137b2f3076416349fa9802cf6404b3fe413c042ee672066bb59ffd347e09b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.0 CPython/3.10.2 Windows/10
|
Security for python-yeet 1.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.