{"id":18907919,"url":"https://github.com/cabalamat/frambozenapp","last_synced_at":"2026-04-21T10:02:54.753Z","repository":{"id":53628198,"uuid":"157351810","full_name":"cabalamat/frambozenapp","owner":"cabalamat","description":"Showcasing my Bozen library, which includes a MongoDB ORM, Form library, and web utilities","archived":false,"fork":false,"pushed_at":"2021-03-20T04:40:52.000Z","size":2877,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-01T01:10:33.606Z","etag":null,"topics":["html","mongodb","python36"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cabalamat.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-13T09:11:35.000Z","updated_at":"2021-09-18T02:19:56.000Z","dependencies_parsed_at":"2022-09-01T14:20:29.858Z","dependency_job_id":null,"html_url":"https://github.com/cabalamat/frambozenapp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cabalamat/frambozenapp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cabalamat%2Fframbozenapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cabalamat%2Fframbozenapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cabalamat%2Fframbozenapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cabalamat%2Fframbozenapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cabalamat","download_url":"https://codeload.github.com/cabalamat/frambozenapp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cabalamat%2Fframbozenapp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271643468,"owners_count":24795440,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["html","mongodb","python36"],"created_at":"2024-11-08T09:23:54.734Z","updated_at":"2026-04-21T10:02:54.689Z","avatar_url":"https://github.com/cabalamat.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Frambozenapp\n\n![Frambozen Logo](doc/frambozen_logo.png)\n\n**Frambozenapp** is a Python web application that showcases the\n**Bozen** library.\n\n## About Bozen\n\nBozen is a library that makes web development with Flask and MongoDB\nfaster. (I'm using it in my \n[MeowCat](https://github.com/cabalamat/meowcat2) blogging platform.)\n\nBozen is:\n\n* a Form library: renders and handles HTML forms\n* a MongoDB ORM (terchnically a MongoDB ODM, since MongoDB isn't a \n  relational database)\n* several utility functions for web development\n\n\nThe most important classes in Bozen are:\n\n* **FormDoc**, which handles HTML forms\n* **MonDoc**, a subclass of `FormDoc` which knows how to get data into and out of a MongoDB database\n* the **FieldInfo** classes. Every field has an instance of a subclass of FieldInfo describing what data type it is and how it behaves in a form.\n\nOther Bozen features:\n\n* For a MonDoc, automatically generated **autopages** can perform BREAD \n  (Browse, Read, Edit, Add, Delete) functionality for it.\n* The **Paginator** class enables a table to be paginated so that only a \n  certain number of rows appear on each page.\n\n## Installation\n\nRequirements: Python 3.6, MongoDB, Git (to clone repository).\n\nTo start, first clone the repository locally.\n\n    $ git clone git@github.com:cabalamat/frambozenapp.git\n    $ cd frambozenapp\n    \nCreate a virtual environment called `v3`:\n\n    $ python3 -m venv v3\n    \nGo into your virtual environment:\n\n    $ . v3/bin/activate\n    \nInstall the requirements:\n\n    $ pip install -r requirements.txt\n\nFinally, go into the `app/` directory and run the program. The\n`--debug` flag denotes that you are running it in debugging mode.\n    \n    $ cd app\n    $ python main.py --debug\n\nNow you can point your web browser at \u003chttp://127.0.0.1:9033\u003e to\nview the site.\n\n## Documentation\n\nDocumentation is available in the `./doc/` directory. It's in the \nextended markdown format that \n[CatWiki](https://github.com/cabalamat/catwiki) uses \n(and was created in CatWiki), so is best viewed with CatWiki.\n\n## Screenshots\n\n**Test Form** shows some of the form controls:\n\n![](doc/test_form.png)\n\nThe **Foos** page shows a list of *Foos* (Foo being a collection\nin the database). Note that the pagination is handled by Bozen.\n\n![](doc/foos.png)\n\nThe **Foo** page shows a single *Foo*, and allows you to edit its \nfields. The form is automatically denerated from the database schema\n(in `foo.py`):\n\n```py\nDRINK_CHOICES = [\n    ('beer', \"Beer\"),    \n    ('beer-lager', \"Lager\"),   \n    ('beer-frambozen', \"Frambozen\"), \n    ('wine', \"Wine\"),         \n    ('spirits-whisky', \"Whisky\"),   \n    ('spirits-gin', \"Gin\"), \n] \nFRUIT_CHOICES = [\n    ('apple', \"Apple\"),\n    ('banana', \"Banana\"),\n    ('strawberry', \"Strawberry\"),\n    ('raspberry', \"Raspberry\"),\n]\n\nclass Foo(MonDoc):\n    name = StrField()\n    description = TextAreaField(monospaced=True)\n    aNumber = IntField(minValue=0, maxValue=100)\n    minSpeed = FloatField(title=\"Minimum Speed, mph\", minValue=0.0)\n    maxSpeed = FloatField(title=\"Maximim Speed, mph\", minValue=0.0)\n    favouriteDrink = ChoiceField(choices=DRINK_CHOICES,\n        showNull=True, allowNull=True)\n    fruitsLiked = MultiChoiceField(choices=FRUIT_CHOICES,\n        desc=\"tick all fruits this person likes\") \n    tickyBox = BoolField()\n    aDate = DateField()\n    lastSaved = DateTimeField(desc=\"when this foo was last saved\",\n        readOnly=True)\n    aDateTime = DateTimeField(title=\"A Date and Time\")\n    anything = ObjectField(desc=\"can contain anything\",\n        default=[\"any\", \"thing\"])\n    favouriteBook = FK(models.Book, allowNull=True, showNull=True)\n```\n\n![](doc/foo.png)\n\nGiven the database schema for `Foo` above, the `/foos` and `/foo`\npages could have been automatically generated by this one line:\n\n```py\nFoo.autopages()\n```\n\n(This wasn't done in the Foo example, for didactic purposes).\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcabalamat%2Fframbozenapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcabalamat%2Fframbozenapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcabalamat%2Fframbozenapp/lists"}