Skip to main content

A lightweight web framework like StillSite

Project description

Bullfinch

Bullfinch — это простой Python-фреймворк для создания веб-приложений с помощью аннотаций (@site) и шаблонов.

Пример

from bullfinch import Bullfinch, site, file_template, start, password, name

app = Bullfinch('super duper')
app.app.config['instance'] = app

password(app.app) = "my_secret"
name(app.app) = "admin_user"

@site('/')
def Home():
    return file_template("index.html")

@start()
def run():
    app.run()

Авторизация

Доступна по /login с логином admin_user и паролем my_secret.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bullfinch-0.1.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bullfinch-0.1.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file bullfinch-0.1.0.tar.gz.

File metadata

  • Download URL: bullfinch-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for bullfinch-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3303c8574a8ffa26fa95391c8175eba53c83947ef4a4d6518c090955be034d85
MD5 cba2b114979c3096aa2400d0a14ad0ca
BLAKE2b-256 27d3426d402d00f66d2d0bc67080da9ecdf2533f52c8c8deaf2180a081a0dd3d

See more details on using hashes here.

File details

Details for the file bullfinch-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: bullfinch-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for bullfinch-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6937b46060a058906d9135a4066ed5b190d48d677f70b8683ede2bbc90dfe5fb
MD5 5f79bfc9a2e5757739d7962537008914
BLAKE2b-256 098034b80bfd57aa9065100c527dcef56dfb1e0101dc4ebe01624ce99b3b0542

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page